TEC : Animations menu
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
/* Style pour le header et la navigation */
|
||||
/* Style pour le header */
|
||||
.header {
|
||||
background-color: #F9E7DB;
|
||||
box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, .1);
|
||||
position: fixed;
|
||||
top:40px;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
align-items: center;
|
||||
@@ -22,6 +20,29 @@
|
||||
padding: 0.5rem;
|
||||
border-right: 1px solid #F9E7DB;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
|
||||
.header li a {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
padding-bottom: 4px; /* pour éviter que la ligne touche le texte */
|
||||
}
|
||||
|
||||
.header li a::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 0%;
|
||||
height: 2px;
|
||||
background-color: #CC4331;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.header li a:hover::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.header li a:hover,
|
||||
@@ -118,7 +139,7 @@
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* Styles pour les écrans plus petits (téléphones) */
|
||||
/* Styles pour les écrans plus grand (hors téléphones) */
|
||||
@media (min-width: 48em) {
|
||||
|
||||
.header {
|
||||
|
||||
Reference in New Issue
Block a user