Feat: responsive header mobile + variables breakpoints
- variables.css : --breakpoint-mobile (700px) et --breakpoint-tablet (912px)
- Header : .navbar-item { display: none } en dessous de 700px
- Header/Menu : annotation des media queries avec les variables de référence
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a1785743c9
commit
d44c886e8c
3 changed files with 12 additions and 4 deletions
|
|
@ -168,13 +168,14 @@
|
|||
transition-delay: 0.1s;
|
||||
}
|
||||
|
||||
/* Mobile — var(--breakpoint-mobile) = 700px */
|
||||
@media screen and (max-width: 700px) {
|
||||
.navbar-item {
|
||||
font-size: var(--font-size-paragraph-mobile);
|
||||
padding: 1vmax 1.5vmax;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet — var(--breakpoint-tablet) = 912px */
|
||||
@media screen and (min-width: 701px) and (max-width: 912px) {
|
||||
.navbar-item {
|
||||
font-size: var(--font-size-paragraph-tablet);
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Mobile */
|
||||
/* Mobile — var(--breakpoint-mobile) = 700px */
|
||||
@media screen and (max-width: 700px) {
|
||||
.menu-list {
|
||||
font-size: var(--font-size-subtitle-mobile);
|
||||
|
|
@ -268,7 +268,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* Tablet */
|
||||
/* Tablet — var(--breakpoint-tablet) = 912px */
|
||||
@media screen and (min-width: 701px) and (max-width: 912px) {
|
||||
.menu-list {
|
||||
font-size: var(--font-size-title-section-tablet);
|
||||
|
|
|
|||
|
|
@ -6,6 +6,13 @@
|
|||
--color-background: #000;
|
||||
--color-text: #fff;
|
||||
|
||||
/* BREAKPOINTS (référence — non utilisables directement dans @media)
|
||||
* --breakpoint-mobile : 700px
|
||||
* --breakpoint-tablet : 912px
|
||||
*/
|
||||
--breakpoint-mobile: 700px;
|
||||
--breakpoint-tablet: 912px;
|
||||
|
||||
/* Z-INDEX SCALE
|
||||
* --z-base : éléments décoratifs (lignes verticales, bg)
|
||||
* --z-content : contenu de slides (textes, overlays légers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue