Skip to content

Commit

Permalink
Moved too wide header menu selector to #header
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Nov 7, 2017
1 parent 5b26a4e commit b92b9fb
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions core/css/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,6 @@
-ms-user-select: none;
}

/* Header menu */
.menu {
position: absolute;
top: 45px;
background-color: $color-main-background;
box-shadow: 0 1px 10px $color-box-shadow;
border-radius: 0 0 3px 3px;
display: none;
box-sizing: border-box;
z-index: 2000;

/* Dropdown arrow */
&:after {
border: 10px solid transparent;
border-bottom-color: $color-main-background;
bottom: 100%;
content: ' ';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
}

/* removed until content-focusing issue is fixed */
#skip-to-content a {
position: absolute;
Expand Down Expand Up @@ -96,6 +72,29 @@
}

#header {
/* Header menu */
.menu {
position: relative;
top: 45px;
background-color: $color-main-background;
filter: drop-shadow(0 1px 3px $color-box-shadow);
border-radius: 0 0 3px 3px;
display: none;
box-sizing: border-box;
z-index: 2000;

/* Dropdown arrow */
&:after {
border: 10px solid transparent;
border-bottom-color: $color-main-background;
bottom: 100%;
content: ' ';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
}
.logo {
display: inline-flex;
background-image: url($image-logo);
Expand Down Expand Up @@ -211,7 +210,7 @@ nav {
left: -100%;
width: 160px;
background-color: $color-main-background;
box-shadow: 0 1px 10px $color-box-shadow;
filter: drop-shadow(0 1px 3px $color-box-shadow);
&:after {
/* position of dropdown arrow */
left: 47%;
Expand Down

0 comments on commit b92b9fb

Please sign in to comment.