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

128 lines
2.6 KiB
SCSS
Raw Normal View History

2015-03-04 14:48:14 -05:00
.swiftype-widget {
.autocomplete {
left: $unit !important;
}
}
2015-02-26 09:45:32 -05:00
.side-nav {
background: $mist;
box-shadow: 3px 0px 6px rgba($coal, .3);
width: 224px;
2015-03-05 00:00:46 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
2015-03-05 00:21:59 -05:00
box-shadow: 0px 3px 6px rgba($coal, .3);
2015-03-05 00:00:46 -05:00
width: auto;
2015-03-05 00:21:59 -05:00
left: 0px;
right: 0px;
bottom: auto;
2015-03-05 00:00:46 -05:00
}
2015-02-26 09:45:32 -05:00
a {
text-decoration: none;
display: block;
}
2015-03-05 00:21:59 -05:00
2015-02-26 09:45:32 -05:00
.side-nav-search {
background: $tin;
2015-03-04 14:48:14 -05:00
padding: $unit;
2015-02-26 09:45:32 -05:00
height: $unit * 6;
border-bottom: 1px solid $fog;
2015-03-04 14:48:14 -05:00
position: relative;
2015-02-26 09:45:32 -05:00
2015-03-05 00:21:59 -05: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 09:45:32 -05:00
input {
border: none;
border-radius: 200px;
width: 100%;
box-sizing: border-box;
height: 30px;
2015-02-26 09:45:32 -05:00
padding: 0px $unit;
2015-03-04 14:48:14 -05:00
margin: 0px;
2015-03-05 00:21:59 -05:00
font-size: 14px !important;
2015-02-26 09:45:32 -05:00
}
2015-03-05 00:21:59 -05:00
.mobile-trigger {
position: absolute;
top: $unit;
right: $unit;
border: none;
background: darken($tin, 5%);
color: $snow;
padding-right: $unit * 4;
2015-03-05 00:25:37 -05: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-05 00:21:59 -05:00
.icon {
position: absolute;
top: 5px;
right: $unit;
z-index: $layer-1;
font-size: 20px;
opacity: .87;
}
}
2015-02-26 09:45:32 -05:00
}
.side-nav-primary {
list-style-type: none;
margin: 0px;
padding: 0px;
2015-03-05 00:21:59 -05: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 09:45:32 -05:00
> li {
margin: 0px;
padding: 0px;
border-bottom: 1px solid $fog;
> a {
2015-03-01 23:02:34 -05:00
line-height: ($unit * 6) - 1;
2015-03-01 19:39:17 -05:00
padding: 0px ($unit * 2) 0px ($unit * 6);
color: $metal;
font-size: 14px;
text-transform: uppercase;
2015-02-28 00:38:49 -05:00
text-align: left;
font-weight: 400;
2015-03-01 19:39:17 -05:00
position: relative;
&.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 09:45:32 -05:00
}
}
}
}