angular-cn/public/resources/css/module/_main-nav.scss

166 lines
3.1 KiB
SCSS
Raw Normal View History

/*
* Main Navigation
*
* Top main navigation for website
*/
/*
* Variables
*/
$main-nav-height: $unit * 7;
$main-nav-background: $blue-700;
/*
* Class
*/
2015-02-19 20:13:47 -05:00
.main-nav {
background: $main-nav-background;
height: $main-nav-height;
min-height: $main-nav-height;
padding: 0px;
box-shadow: 0px 2px 5px 0 rgba($black, 0.24);
2015-03-04 23:54:55 -05:00
.feedback-button {
margin-top: 10px;
}
2015-02-24 09:38:30 -05:00
h1 {
margin: 0 ($unit * 9) 0 0;
2015-02-24 09:38:30 -05:00
padding: 0px;
height: $main-nav-height;
width: 168px;
2015-02-25 10:15:46 -05:00
float: left;
2015-02-24 16:44:23 -05:00
.md-button, a {
background: url('/resources/images/logos/standard/logo-nav.png') 16px 8px no-repeat;
border-radius: 0;
2015-02-24 16:44:23 -05:00
display: block;
height: $main-nav-height;
2015-02-24 16:44:23 -05:00
overflow: hidden;
text-indent: -3000px;
margin:0;
padding: 0;
2015-03-05 09:11:04 -05:00
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
background: url('/resources/images/logos/standard/logo-nav@2x.png') 16px 8px no-repeat;
2015-03-05 09:11:04 -05:00
background-size: 135px 36px;
}
&:hover {
background-color: $blue-600;
}
2015-02-24 16:44:23 -05:00
}
2015-02-24 09:38:30 -05:00
}
2015-02-19 20:13:47 -05:00
ul {
list-style-type: none;
margin: 0px;
padding: 0px;
li {
2015-02-25 10:15:46 -05:00
margin: 0px 0px 0px 0px;
2015-03-04 10:13:59 -05:00
}
.main-nav-button,
.main-nav-button.md-button {
@include respond-to('mobile') {
2015-03-04 23:27:30 -05:00
display: block;
float: none;
line-height: $unit * 6;
text-align: left;
font-size: 14px;
padding: 0px ($unit * 5);
&.has-icon {
padding: 0px ($unit * 5);
position: static;
}
.icon {
display: none;
}
}
}
// Make main nav icons disappear in favor of site map menu
@include respond-to('mobile') {
background: $main-nav-background;
2015-03-04 10:13:59 -05:00
box-shadow: 0px 2px 5px rgba(0, 0, 0, .3);
float: none;
position: absolute;
2015-03-11 20:56:08 -04:00
top: 56px;
right: 0px;
left: 0px;
2015-03-04 23:27:30 -05:00
z-index: $layer-6;
2015-03-04 10:13:59 -05:00
display: none;
li {
display: block;
float: none;
}
2015-02-19 20:13:47 -05:00
}
}
2015-02-24 09:38:30 -05:00
2015-03-04 23:27:30 -05:00
// NAV BUTTON STYLES
.main-nav-button,
.main-nav-button.md-button {
2015-02-25 10:15:46 -05:00
line-height: 56px;
display: inline-block;
color: $white;
2015-02-25 10:15:46 -05:00
text-decoration: none;
padding: 0px ($unit * 2);
text-transform: uppercase;
font-family: $brand-font;
font-weight: 400;
2015-02-25 10:15:46 -05:00
font-size: 16px;
2015-03-04 23:27:30 -05:00
border: none;
background: none;
border-radius: 0;
position: relative;
letter-spacing: 0.16px;
2016-01-28 11:29:37 -05:00
margin: 0;
min-width: auto;
transition: all .3s;
2015-02-25 10:15:46 -05:00
&:hover {
background-color: $blue-600;
2015-02-25 10:15:46 -05:00
}
// ICONS
&.has-icon {
position: relative;
padding-left: 30px + ($unit * 2);
}
.icon {
font-size: 22px;
position: absolute;
top: 15px;
left: ($unit * 2);
z-index: $layer-1;
}
2015-03-04 23:27:30 -05:00
}
// DROPDOWN TRIGGER BUTTON
.main-nav-button.main-nav-mobile-trigger {
2015-03-04 23:27:30 -05:00
display: none;
2015-03-04 23:54:55 -05:00
padding: 0px (24px + $unit) 0px $unit;
font-size: 14px;
2015-03-04 23:27:30 -05:00
.icon {
left: auto;
2015-03-04 23:54:55 -05:00
right: ($unit );
2015-03-04 23:27:30 -05:00
opacity: .56;
}
2015-02-25 10:15:46 -05:00
// Show sitemap menu
@include respond-to('mobile') {
2015-03-04 23:27:30 -05:00
display: inline-block;
2015-03-04 10:13:59 -05:00
}
2015-02-24 09:38:30 -05:00
}
2015-02-19 20:13:47 -05:00
}