ensl.org/app/assets/stylesheets/layout/_navigation.scss
Luke Barratt ac0b47eca9 Improved styling for contests and referee admin pages
Fixes deleting maps form contests
2014-04-25 23:15:15 +01:00

133 lines
2.4 KiB
SCSS

/*
Navigation
*/
#menu {
@include span-columns(12);
font-family: $montserrat;
height: em(60);
margin-top: - em(60);
nav {
@include outer-container;
}
}
ul.navigation {
position: relative;
margin: 0;
padding: 0;
list-style: none;
float: left;
width: 100%;
background: transparent;
max-width: $max-width;
max-height: em(60);
> li {
float: left;
width: (100%/7);
border-right: 0.1em solid transparent;
.count {
float: right;
font-size: em(14);
border-radius: em(25);
background-color: $light-blue;
display: inline-block;
color: white;
line-height: em(14);
padding: em(5) em(8);
margin-top: - em(2);
}
> a {
width: 100%;
color: white;
height: em(60);
line-height: em(16);
padding: em(22);
float: left;
position: relative;
background-color: $navbar-primary;
&:hover,
&.active {
background-color: $navbar-secondary;
.count {
background-color: lighten($light-blue, 20);
}
}
}
&:last-child {
border-right: 0;
}
&.icon {
i {
color: lighten($light-blue, 30);
max-height: 60px;
position: absolute;
top: 0;
right: 0;
font-size: em(24);
line-height: 1em;
padding: em(12);
padding-right: em(14);
}
}
&.dropdown {
ul {
display: none;
z-index: 10;
}
&:hover {
position: relative;
ul {
box-shadow: $content-shadow;
display: block;
position: absolute;
top: em(60);
left: 0;
min-width: 100%;
background-color: $navbar-primary;
list-style: none;
padding: 0;
margin: 0;
li {
border-bottom: em(1) solid $navbar-secondary;
&:first-child {
border-top: em(1) solid $navbar-secondary;
}
&:last-child {
border-bottom: none;
}
a {
white-space: nowrap;
display: block;
height: em(60);
line-height: em(16);
padding: em(22);
color: $navbar-text;
}
&:hover a {
background: $light-blue;
}
}
}
}
}
}
}