armentieres: style burger menu and fix header (#70745)
This commit is contained in:
parent
1c642f16dc
commit
e05fa7c6c2
|
@ -22,6 +22,10 @@ h4 {
|
|||
// Layout
|
||||
div#main-content-wrapper {
|
||||
max-width: none;
|
||||
|
||||
@media ($max-mobile-viewport) {
|
||||
margin-top: $header-height;
|
||||
}
|
||||
}
|
||||
|
||||
.central-content {
|
||||
|
|
|
@ -2,66 +2,171 @@ div#top {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
padding-top: 0.5rem;
|
||||
padding: 0 15px;
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
div#header {
|
||||
padding: 0;
|
||||
max-width: calc(#{$width} + 100px);
|
||||
}
|
||||
|
||||
#logo{
|
||||
&.has-logo a::before {
|
||||
background-position: center;
|
||||
margin-top: 15px;
|
||||
margin-right: 80px;
|
||||
}
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
width: 100%;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
nav.site-nav {
|
||||
flex-grow: 1;
|
||||
@media($max-mobile-viewport) {
|
||||
position: absolute;
|
||||
top: 75px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
div.gru-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.gru-nav-button {
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
left: auto;
|
||||
|
||||
&.toggled .icon-bar {
|
||||
background: $nav-button-color;
|
||||
}
|
||||
|
||||
& + ul {
|
||||
position: static;
|
||||
width: 100%;
|
||||
|
||||
&:before {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
position: static;
|
||||
margin: 0;
|
||||
flex-grow: 1;
|
||||
|
||||
&--link {
|
||||
padding: 0;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
font-weight: normal;
|
||||
|
||||
@media ($min-desktop-viewport) {
|
||||
height: $header-height;
|
||||
margin-right: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
&--link {
|
||||
padding: 20px 25px;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.gru-nav > ul {
|
||||
margin: 0;
|
||||
@media($max-mobile-viewport) {
|
||||
@media($max-mobile-viewport) {
|
||||
// Header always visible on scroll
|
||||
div#top {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
z-index: 1001;
|
||||
width: 100%;
|
||||
height: $header-height;
|
||||
|
||||
background: white;
|
||||
}
|
||||
|
||||
li a {
|
||||
font-weight: normal;
|
||||
padding: 30px 20px;
|
||||
nav.site-nav {
|
||||
position: absolute;
|
||||
top: $header-height;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
div#header {
|
||||
max-width: calc(#{$width} + 100px);
|
||||
div.gru-nav {
|
||||
height: 0;
|
||||
|
||||
&.toggled {
|
||||
height: calc(100vh - #{$header-height});
|
||||
}
|
||||
|
||||
// right-to-left slide menu
|
||||
> .gru-nav-button + ul {
|
||||
top: $header-height;
|
||||
transform: translateX(100vw);
|
||||
}
|
||||
|
||||
.menu, .submenu {
|
||||
&--item {
|
||||
padding: 0;
|
||||
border-top: 1px solid $gray;
|
||||
|
||||
&, &:hover, &:focus-within, &.selected {
|
||||
> a {
|
||||
border-bottom: none;
|
||||
color: $gray-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&--link {
|
||||
padding: 1rem 1.5rem;
|
||||
font-size: $font-size;
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
right: 3.5rem;
|
||||
|
||||
content: '\f054';
|
||||
font-family: FontAwesome;
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
&--link {
|
||||
padding-left: 3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div#toplinks {
|
||||
position: static;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
padding-right: 2rem;
|
||||
|
||||
max-width: 100%;
|
||||
padding: 1rem 2rem;
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
padding: 0;
|
||||
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
padding-right: 50px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.logged-in, .login {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
span {
|
||||
display: flex;
|
||||
a:first-child {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> * {
|
||||
margin: 0 .3rem;
|
||||
}
|
||||
|
@ -83,4 +188,3 @@ div#toplinks {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ $fz-xsmall: 11em / $base-font;
|
|||
$font-size: 1rem;
|
||||
|
||||
// General
|
||||
$width: 1280px;
|
||||
$border-radius: 5px;
|
||||
$notification_error_color: $red-light;
|
||||
$notification_warning_color: #e5e5e5;
|
||||
|
@ -40,25 +41,31 @@ $back-top-display: block;
|
|||
$back-top-icon-character: "\f062";
|
||||
|
||||
// Header
|
||||
$header-logo-size: 250px 60px;
|
||||
$header-logo-size: 187px 47px;
|
||||
$header-height: 100px;
|
||||
$toplinks-style: none;
|
||||
$sidebar-width: 26%;
|
||||
$nav-after-image: false;
|
||||
|
||||
$nav-color: $gray;
|
||||
$nav-submenu-color: $gray;
|
||||
$nav-item-hover-background: transparent;
|
||||
$nav-item-selected-mode: bottom-border;
|
||||
$nav-item-selected-border: $primary-color 3px solid;
|
||||
$nav-item-hover-border: $primary-color 3px solid;
|
||||
$nav-button-background: transparent;
|
||||
$nav-button-color: $primary-color;
|
||||
$nav-border-color: transparent;
|
||||
$nav-mobile-menu-item-hover-color: black;
|
||||
$nav-button-bar-height: 3px;
|
||||
$nav-button-background: transparent;
|
||||
$nav-button-bar-height: 4px;
|
||||
$nav-button-color: $primary-color;
|
||||
$nav-color: $gray;
|
||||
$nav-item-hover-background: transparent;
|
||||
$nav-item-hover-border: $primary-color 4px solid;
|
||||
$nav-item-hover-color: #333333;
|
||||
$nav-item-selected-border: $primary-color 4px solid;
|
||||
$nav-item-selected-color: #333333;
|
||||
$nav-item-selected-mode: bottom-border;
|
||||
$nav-mobile-bottom-bar-item-hover-color: black;
|
||||
$nav-mobile-bottom-bar-item-selected-background: $primary-color;
|
||||
$nav-mobile-bottom-bar-item-selected-color: black;
|
||||
$nav-mobile-menu-background: white;
|
||||
$nav-mobile-menu-item-color: $gray;
|
||||
$nav-mobile-menu-item-hover-color: $gray-dark;
|
||||
$nav-submenu-color: $gray;
|
||||
$responsive-menu: left-to-right;
|
||||
|
||||
// Title
|
||||
$title-padding: 0;
|
||||
|
|
Loading…
Reference in New Issue