forked from rebillar/site-accueil-insa
139 lines
2.1 KiB
CSS
139 lines
2.1 KiB
CSS
.menu {
|
|
position: fixed;
|
|
width: 98vw;
|
|
z-index: 2;
|
|
overflow: visible;
|
|
transition: transform 0.3s;
|
|
bottom: 0;
|
|
border-radius: 20px;
|
|
margin-left: 1vw;
|
|
margin-right: 1vw;
|
|
margin-bottom: 1vh;
|
|
}
|
|
|
|
|
|
#menu ul {
|
|
flex-wrap: wrap;
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: center;
|
|
color: #fff;
|
|
height: auto;
|
|
align-items: center;
|
|
background-color:#FFF2C8;
|
|
background-image: url("../img/bordure-sans-fond.svg");
|
|
border-radius: 5px;
|
|
}
|
|
|
|
|
|
|
|
#menu li {
|
|
margin: 0 10px;
|
|
font-weight: 900;
|
|
|
|
}
|
|
|
|
#menu a {
|
|
display: block; /* Add this line to make the link fill the entire menu item */
|
|
padding: 15px; /* Add some padding for better readability and clickable area */
|
|
color: #6D071A;
|
|
text-decoration: none;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: cover;
|
|
font-size: 30px !important;
|
|
background-color: rgba(45, 47, 45, 0);
|
|
border-radius: 5px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
#menu a:hover{
|
|
color: #09c758;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
|
|
|
|
|
|
/*hide the mobile menu by default*/
|
|
|
|
.topnav{
|
|
visibility: hidden;
|
|
height: 0px;
|
|
}
|
|
|
|
|
|
|
|
/* Add styles for smartphones screens */
|
|
@media all and (max-width: 800px) {
|
|
|
|
|
|
.menu{
|
|
visibility: hidden;
|
|
height: 0px;
|
|
}
|
|
|
|
|
|
/* Style the navigation menu */
|
|
.topnav {
|
|
visibility: visible;
|
|
overflow-y: scroll;
|
|
background-color: #333;
|
|
position: fixed;
|
|
width: 95%;
|
|
z-index: 100;
|
|
border-radius: 10px;
|
|
margin-top: 1vh;
|
|
height: auto;
|
|
margin-left: 2.5%;
|
|
margin-right: 2.5%;
|
|
}
|
|
|
|
/* Hide the links inside the navigation menu (except for logo/home) */
|
|
.topnav #mobile_menu_links {
|
|
display: none;
|
|
}
|
|
|
|
/* Style navigation menu links */
|
|
.topnav a {
|
|
color: white;
|
|
padding: 1vh 1vw;
|
|
text-decoration: none;
|
|
font-size: 4vh;
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.topnav li {
|
|
display: flex;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Style the hamburger menu */
|
|
.topnav a.icon {
|
|
background: black;
|
|
display: block;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
/* Add a grey background color on mouse-over */
|
|
.topnav a:hover {
|
|
background-color: #ddd;
|
|
color: black;
|
|
}
|
|
|
|
.active {
|
|
background-color: rgb(27, 170, 22);;
|
|
color: white;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|