ensl.org/app/assets/stylesheets/layout/_navigation.scss

174 lines
3.2 KiB
SCSS
Raw Normal View History

2014-04-06 14:14:03 +00:00
/*
Navigation
*/
$navigation-height: 50px;
2014-04-06 14:14:03 +00:00
#menu {
@include span-columns(12);
2014-05-03 01:21:29 +00:00
font-family: $header-font-family;
height: $navigation-height;
2014-05-03 01:21:29 +00:00
margin-top: -50px;
background: image-url('layout/nav-background.png') top center repeat-x;
height: 100px;
position: relative;
z-index: 25;
.wrapper {
position: relative;
}
#logo {
position: absolute;
bottom: -15px;
left: -10px;
a {
height: 180px;
display: block;
float: left;
position: relative;
z-index: 50;
img {
height: 180px;
}
}
2014-04-06 14:14:03 +00:00
}
}
ul.navigation {
z-index: 100;
2014-04-06 14:14:03 +00:00
position: relative;
margin: 0;
padding: 0;
list-style: none;
float: right;
max-width: $max-width;
max-height: 60px;
2014-05-03 01:21:29 +00:00
margin-top: 5px;
2014-04-06 14:14:03 +00:00
> li {
float: left;
2014-05-03 01:21:29 +00:00
border: none;
height: 60px;
position: relative;
a {
font-weight: 400;
font-size: 15px;
height: $navigation-height;
line-height: $navigation-height;
2014-05-03 01:21:29 +00:00
padding: 0 20px;
text-transform: uppercase;
color: #5f5f5f;
&:hover,
&.active {
color: #3dcfff;
}
.count {
border-radius: $base-border-radius;
display: inline-block;
margin-left: 20px;
background: darken(#5a5a5a, 15%);
line-height: 20px;
padding: 0 3px;
color: lighten(#5f5f5f, 20%);
}
&.active .count,
&:hover .count {
color: $light-blue;
}
}
> a {
width: 100%;
float: left;
position: relative;
2014-05-03 01:21:29 +00:00
border-top: 1px solid #54585b;
&:before,
&:after {
@include box-sizing(border-box);
display: block;
content: '';
position: absolute;
width: 1px;
height: 100%;
top: 0;
}
&:before {
@include linear-gradient(#54585b, #15181a);
left: 0;
}
&:after {
@include linear-gradient(#54585b, #15181a);
right: -1px;
}
2014-04-06 14:14:03 +00:00
&:hover,
&.active {
2014-05-03 01:21:29 +00:00
@include background-image(radial-gradient(50% -10%, ellipse cover, transparentize(#2abdfb, 0.6), transparent 60%));
border-top: 1px solid #266d98;
2014-05-03 01:21:29 +00:00
&:before,
&:after {
@include linear-gradient(#266d98, #15181a);
z-index: 100;
}
2014-04-06 14:14:03 +00:00
}
}
&.dropdown {
position: relative;
2014-04-06 14:14:03 +00:00
ul {
background: image-url('layout/drop-menu-background.png') top center repeat-y;
width: 176px;
position: absolute;
box-shadow: $content-shadow;
visibility: hidden;
pointer-events: none;
opacity: 0;
2014-04-06 14:14:03 +00:00
z-index: 10;
top: 60px;
left: 0;
min-width: 100%;
list-style: none;
padding: 0;
margin: 0;
2014-04-06 14:14:03 +00:00
}
&:hover {
ul {
visibility: visible;
opacity: 1;
pointer-events: auto;
border-radius: $base-border-radius;
2014-04-06 14:14:03 +00:00
li {
a {
white-space: nowrap;
2014-04-06 14:14:03 +00:00
display: block;
padding: 0 20px;
line-height: 30px;
height: 40px;
2014-04-06 14:14:03 +00:00
}
2014-04-18 00:07:07 +00:00
&:hover a {
2014-05-03 01:21:29 +00:00
2014-04-18 00:07:07 +00:00
}
2014-04-06 14:14:03 +00:00
}
}
}
}
}
}