127 lines
2.6 KiB
SCSS
Raw Normal View History

2015-03-11 20:21:59 -07:00
/*
* Side Navigation
*
*/
2015-03-04 11:48:14 -08:00
2015-02-26 06:45:32 -08:00
.side-nav {
background: $mist;
box-shadow: 3px 0px 6px rgba($coal, .3);
2015-03-11 20:21:59 -07:00
width: 232px;
2015-02-26 06:45:32 -08:00
2015-03-04 21:00:46 -08:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
2015-03-04 21:21:59 -08:00
box-shadow: 0px 3px 6px rgba($coal, .3);
2015-03-04 21:00:46 -08:00
width: auto;
2015-03-04 21:21:59 -08:00
left: 0px;
right: 0px;
bottom: auto;
2015-03-04 21:00:46 -08:00
}
2015-03-04 21:21:59 -08:00
2015-03-11 20:21:59 -07:00
// SEARCH BOX
2015-02-26 06:45:32 -08:00
.side-nav-search {
background: $tin;
2015-03-04 11:48:14 -08:00
padding: $unit;
2015-02-26 06:45:32 -08:00
height: $unit * 6;
border-bottom: 1px solid $fog;
2015-03-04 11:48:14 -08:00
position: relative;
2015-02-26 06:45:32 -08:00
2015-03-04 21:21:59 -08:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
border-bottom: none;
padding-right: $unit * 14;
}
2015-02-26 06:45:32 -08:00
input {
border: none;
border-radius: 200px;
width: 100%;
box-sizing: border-box;
height: 30px;
2015-02-26 06:45:32 -08:00
padding: 0px $unit;
2015-03-04 11:48:14 -08:00
margin: 0px;
2015-03-04 21:21:59 -08:00
font-size: 14px !important;
2015-03-11 20:21:59 -07:00
display: inline-block;
2015-02-26 06:45:32 -08:00
}
2015-03-04 21:21:59 -08:00
.mobile-trigger {
position: absolute;
top: $unit;
right: $unit;
border: none;
background: darken($tin, 5%);
color: $snow;
padding-right: $unit * 4;
2015-03-04 21:25:37 -08:00
display: none;
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
display: inline-block;
}
2015-03-04 21:21:59 -08:00
.icon {
position: absolute;
top: 5px;
right: $unit;
z-index: $layer-1;
font-size: 20px;
opacity: .87;
}
}
2015-02-26 06:45:32 -08:00
}
2015-03-11 20:21:59 -07:00
// PRIMARY SIDENAV BUTTON
2015-02-26 06:45:32 -08:00
.side-nav-primary {
list-style-type: none;
margin: 0px;
padding: 0px;
2015-03-04 21:21:59 -08:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
display: none;
}
2015-02-26 06:45:32 -08:00
> li {
margin: 0px;
padding: 0px;
border-bottom: 1px solid $fog;
> a {
2015-03-01 20:02:34 -08:00
line-height: ($unit * 6) - 1;
2015-03-01 16:39:17 -08:00
padding: 0px ($unit * 2) 0px ($unit * 6);
color: $metal;
font-size: 14px;
text-transform: uppercase;
2015-02-27 21:38:49 -08:00
text-align: left;
font-weight: 400;
2015-03-01 16:39:17 -08:00
position: relative;
2015-03-11 20:21:59 -07:00
text-decoration: none;
display: block;
2015-03-01 16:39:17 -08:00
&.is-selected {
background: $fog;
color: $regal;
.side-nav-icon {
color: $regal;
}
}
}
.side-nav-icon {
position: absolute;
top: 0px;
left: 16px;
z-index: $layer-1;
font-size: 19px;
color: $cloud;
line-height: 47px;
2015-02-26 06:45:32 -08:00
}
}
}
}