Commit 1cf1fd93 authored by Hanna Schraffenberger's avatar Hanna Schraffenberger
Browse files

Menu responsive

parent 67b9b677
......@@ -80,7 +80,8 @@ header {
background-color: #fff;
position: fixed;
top: 0;
width: 100%
width: 100%;
height: 60px
}
}
......@@ -88,22 +89,26 @@ header {
/* 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-2--nav a:not(:first-child) {display: none;}
.block-header-2--nav li:not(:first-child) {
display: none
}
.block-header-2--nav a.icon {
float: right;
display: block;
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-2--nav.responsive {position: relative;}
.block-header-2--nav.responsive {
position: relative
}
.block-header-2--nav.responsive a.icon {
position: absolute;
right: 0;
top: 0;
top: 0
}
.block-header-2--nav.responsive a {
.block-header-2--nav.responsive li {
float: none;
display: block;
text-align: left;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment