site-accueil-insa/assets/css/menu.css

125 lines
1.8 KiB
CSS
Raw Normal View History

2022-04-12 01:14:59 +02:00
.menu {
2022-04-05 21:18:29 +02:00
position: fixed;
bottom: -2px;
2022-04-12 01:14:59 +02:00
left: 0;
width: 100%;
2022-04-11 19:11:25 +02:00
height: auto;
2022-04-05 21:56:56 +02:00
z-index: 2;
2022-04-12 01:14:59 +02:00
overflow: visible;
2022-04-17 16:31:54 +02:00
transition: transform 0.3s;
2022-04-12 01:14:59 +02:00
}
.tuyau {
position: fixed;
bottom: -2px;
2022-04-12 01:14:59 +02:00
right: 3vw;
width: 8%;
min-width: 6.3vmax;
2022-04-12 01:14:59 +02:00
height: auto;
z-index: 2;
2022-06-10 21:48:25 +02:00
cursor: pointer;
2022-04-12 01:14:59 +02:00
2022-04-17 16:31:54 +02:00
transition: transform 0.3s;
2022-04-12 01:14:59 +02:00
overflow: visible;
}
.menu-link use {
transition: transform 50ms;
transform-origin: center;
}
.menu-link.menu-bottom-line use {
transform-origin: bottom;
}
2022-04-12 01:14:59 +02:00
.menu-link text {
transition: transform 50ms;
}
2022-06-10 21:48:25 +02:00
.menu .menu-link:hover text {
2022-04-12 01:14:59 +02:00
fill: #FFDC00;
transform: translateY(-1px);
}
.menu-link:hover use {
transform: scaleY(1.1);
}
.menu svg {
overflow: visible;
}
2022-06-10 21:48:25 +02:00
.mobile-menu {
display: block;
position: fixed;
top: 0; left: 0;
overflow: hidden;
width: 100%;
z-index: 20;
height: 0;
background: rgba(15, 15, 23, 0);
transition: background-color 0.2s linear;
}
.mobile-menu .containerF3g {
width: 100%; height: 100%;
overflow: auto;
}
.mobile-grid {
display: flex;
flex-wrap: wrap;
padding: 2vh 60px;
min-height: 100vh;
justify-content: center;
align-content: center;
}
.mobile-menu-link {
min-width: 100px;
width: 50%;
display: block;
opacity: 0;
2022-06-11 21:02:30 +02:00
cursor: pointer;
2022-06-10 21:48:25 +02:00
transform: translateY(10%);
transition: transform 0.2s ease-out, opacity 0.2s linear 0.05s;
}
nav.mobile-menu.open .mobile-menu-link {
transform: translateY(0);
opacity: 1;
}
.menu-link:hover text {
fill: #FFDC00;
}
.mobile-brick {
display: block;
}
span.close-mobile-menu {
color: #FFF;
font-size: 80px;
display: block;
position: absolute;
2022-06-11 21:02:30 +02:00
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
cursor: pointer;
2022-06-10 21:48:25 +02:00
bottom: 0;
right: 20px;
2022-06-11 21:02:30 +02:00
transition: color 0.5s;
2022-06-10 21:48:25 +02:00
}
span.close-mobile-menu:hover {
color: #FFDC00;
}