Compare commits

...

2 Commits

Author SHA1 Message Date
Iziram
af7b5b01fb fix effet bord menu formsemestre 2024-08-13 17:11:31 +02:00
Iziram
330036c1be fix esthétique menu formsemestre 2024-08-13 17:04:57 +02:00

View File

@ -10,19 +10,15 @@
*/ */
/* CSS défaut */ /* CSS défaut */
* { :root{
margin: 0;
padding: 0;
box-sizing: border-box;
--sco-formsemestre-color-primary: rgb(214, 233, 248); --sco-formsemestre-color-primary: rgb(214, 233, 248);
--sco-formsemestre-color-accent: rgb(103, 167, 227); --sco-formsemestre-color-accent: rgb(103, 167, 227);
} }
body { .menu-wrapper *{
font-family: Arial, sans-serif; margin: 0;
color: #333; padding: 0;
background-color: #f4f4f4; box-sizing: border-box;
} }
html{ html{
@ -117,15 +113,20 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
border: none; border: none;
text-transform: none;
text-transform: uppercase; font-weight: normal;
font-weight: bold;
font-size: 12px; font-size: 12px;
padding: 4px 8px; padding: 4px 8px;
border-radius: 4px; border-radius: 4px;
} }
.sco-formsemestre-menu-menu>.dropdown>summary {
text-transform: uppercase;
font-weight: bold;
font-size: 14px !important;
}
.sco-formsemestre-menu-link { .sco-formsemestre-menu-link {
color: #333; color: #333;
text-decoration: none; text-decoration: none;
@ -322,6 +323,7 @@
list-style: none; list-style: none;
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
border-radius: 4px; border-radius: 4px;
font-size: small;
} }
.sco-formsemestre-menu .dropdown>summary::marker { .sco-formsemestre-menu .dropdown>summary::marker {
@ -432,7 +434,7 @@
{# Macro génération dropdown #} {# Macro génération dropdown #}
{% macro dropdown(category, items) %} {% macro dropdown(category, items) %}
<details class="dropdown"> <details class="dropdown">
<summary class="sco-formsemestre-menu-item">{{category}}</summary> <summary class="">{{category}}</summary>
<div class="dropdown-content"> <div class="dropdown-content">
{% for item in items %} {% for item in items %}
{% if item.submenu is defined %} {% if item.submenu is defined %}
@ -452,6 +454,7 @@
{% endmacro %} {% endmacro %}
{# Menu HTML #} {# Menu HTML #}
<div class="menu-wrapper">
<nav class="sco-formsemestre-menu"> <nav class="sco-formsemestre-menu">
<div class="sco-formsemestre-menu-container"> <div class="sco-formsemestre-menu-container">
{# Icône menu hamburger #} {# Icône menu hamburger #}
@ -467,3 +470,4 @@
</ul> </ul>
</div> </div>
</nav> </nav>
</div>