mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 05:51:22 +00:00
139 lines
2.6 KiB
SCSS
139 lines
2.6 KiB
SCSS
/*
|
|
Navigation
|
|
*/
|
|
|
|
$navigation-height: 50px;
|
|
|
|
#menu {
|
|
@include span-columns(12);
|
|
font-family: $header-font-family;
|
|
height: $navigation-height;
|
|
margin-top: -50px;
|
|
background: image-url('layout/nav-background.png') top center repeat-x;
|
|
height: 100px;
|
|
|
|
nav {
|
|
@include outer-container;
|
|
}
|
|
}
|
|
|
|
ul.navigation {
|
|
z-index: 100;
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
float: right;
|
|
max-width: $max-width;
|
|
max-height: 60px;
|
|
margin-top: 5px;
|
|
|
|
> li {
|
|
float: left;
|
|
border: none;
|
|
height: 60px;
|
|
position: relative;
|
|
|
|
a {
|
|
font-weight: 400;
|
|
font-size: 15px;
|
|
height: $navigation-height;
|
|
line-height: $navigation-height;
|
|
padding: 0 20px;
|
|
text-transform: uppercase;
|
|
color: #5f5f5f;
|
|
|
|
&:hover,
|
|
&.active {
|
|
color: #3dcfff;
|
|
}
|
|
}
|
|
|
|
> a {
|
|
width: 100%;
|
|
float: left;
|
|
position: relative;
|
|
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;
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
@include background-image(radial-gradient(50% -10%, ellipse cover, transparentize(#2abdfb, 0.6), transparent 60%));
|
|
border-top: 1px solid #266d98;
|
|
|
|
&:before,
|
|
&:after {
|
|
@include linear-gradient(#266d98, #15181a);
|
|
z-index: 100;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.dropdown {
|
|
position: relative;
|
|
|
|
ul {
|
|
background: image-url('layout/drop-menu-background.png') top center repeat-y;
|
|
width: 130px;
|
|
position: absolute;
|
|
box-shadow: $content-shadow;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
z-index: 10;
|
|
top: 60px;
|
|
left: 0;
|
|
min-width: 100%;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
&:hover {
|
|
|
|
ul {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
border-radius: $base-border-radius;
|
|
|
|
li {
|
|
|
|
a {
|
|
white-space: nowrap;
|
|
display: block;
|
|
padding: 0 20px;
|
|
line-height: 40px;
|
|
height: 40px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
&:hover a {
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|