mirror of
https://github.com/jlengrand/irma-website.git
synced 2026-03-10 08:21:20 +00:00
37 lines
1.1 KiB
CSS
37 lines
1.1 KiB
CSS
|
|
/* Make menu look good on small screens , based on: https://www.w3schools.com/howto/howto_js_topnav_responsive.asp*/
|
|
|
|
/* Hide the link that should open and close the topnav on small screens */
|
|
.block-header-1--nav .hamburger {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
|
|
@media screen and (max-width: 600px) {
|
|
.block-header-1--nav li:not(.hamburger) {
|
|
display: none
|
|
}
|
|
.block-header-1--nav a.hamburger {
|
|
float: right;
|
|
display: block
|
|
}
|
|
}
|
|
|
|
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
|
|
@media screen and (max-width: 600px) {
|
|
.block-header-1--nav.responsive {
|
|
position: relative
|
|
}
|
|
.block-header-1--nav.responsive a.hamburger {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0
|
|
}
|
|
.block-header-1--nav.responsive li {
|
|
float: none;
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
}
|