mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 05:51:22 +00:00
1c0830f8b1
Improves spacing Improves button layout on forums
144 lines
2.7 KiB
SCSS
144 lines
2.7 KiB
SCSS
/*
|
|
Navigation
|
|
*/
|
|
|
|
$navigation-height: 50px;
|
|
|
|
#menu {
|
|
@include span-columns(12);
|
|
font-family: $montserrat;
|
|
height: $navigation-height;
|
|
margin-top: - $navigation-height;
|
|
background: $blue;
|
|
|
|
nav {
|
|
@include outer-container;
|
|
}
|
|
}
|
|
|
|
ul.navigation {
|
|
z-index: 100;
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
float: right;
|
|
background: transparent;
|
|
max-width: $max-width;
|
|
max-height: $navigation-height;
|
|
|
|
> li {
|
|
float: left;
|
|
border-left: 1px solid $dark-blue;
|
|
|
|
.count {
|
|
position: absolute;
|
|
top: $navigation-height/2 - ($navigation-height/2)/2;
|
|
right: 12px;
|
|
border-radius: $navigation-height/2;
|
|
background-color: $light-blue;
|
|
display: inline-block;
|
|
color: white;
|
|
line-height: $navigation-height/2;
|
|
padding: 0 8px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
height: $navigation-height/2;
|
|
}
|
|
|
|
a {
|
|
font-weight: 400;
|
|
font-size: 15px;
|
|
height: $navigation-height;
|
|
line-height: $navigation-height;
|
|
padding: 0 50px 0 20px;
|
|
}
|
|
|
|
> a {
|
|
width: 100%;
|
|
color: white;
|
|
float: left;
|
|
position: relative;
|
|
background-color: $navbar-primary;
|
|
|
|
&:hover,
|
|
&.active {
|
|
background-color: $navbar-secondary;
|
|
|
|
.count {
|
|
background-color: lighten($light-blue, 20);
|
|
}
|
|
}
|
|
|
|
&.gathers {
|
|
padding-right: 70px;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
border-right: 1px solid $dark-blue;
|
|
}
|
|
|
|
&.icon {
|
|
|
|
i {
|
|
color: white;
|
|
max-height: $navigation-height;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
font-size: 18px;
|
|
line-height: 1em;
|
|
padding: $navigation-height/3;
|
|
}
|
|
}
|
|
|
|
&.dropdown {
|
|
|
|
ul {
|
|
display: none;
|
|
z-index: 10;
|
|
}
|
|
|
|
&:hover {
|
|
position: relative;
|
|
|
|
ul {
|
|
box-shadow: $content-shadow;
|
|
display: block;
|
|
position: absolute;
|
|
top: $navigation-height;
|
|
left: 0;
|
|
min-width: 100%;
|
|
background-color: $navbar-primary;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
li {
|
|
border-bottom: 1px solid $navbar-secondary;
|
|
|
|
&:first-child {
|
|
border-top: 1px solid $navbar-secondary;
|
|
}
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
a {
|
|
white-space: nowrap;
|
|
display: block;
|
|
color: $navbar-text;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
&:hover a {
|
|
background: $light-blue;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|