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

221 lines
4.4 KiB
SCSS
Raw Normal View History

2015-03-11 23:21:59 -04:00
/*
* Side Navigation
*
*/
2015-03-04 14:48:14 -05:00
2015-02-26 09:45:32 -05:00
.side-nav {
background: $mist;
box-shadow: 3px 0px 6px rgba($coal, .3);
2015-03-11 23:21:59 -04:00
width: 232px;
2015-04-19 16:53:18 -04:00
bottom: 0px;
overflow: auto;
2015-02-26 09:45:32 -05:00
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-03-05 00:21:59 -05:00
2015-03-11 23:21:59 -04:00
// SEARCH BOX
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-03-11 23:21:59 -04:00
display: inline-block;
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
}
2015-03-11 23:21:59 -04:00
// PRIMARY SIDENAV BUTTON
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;
2015-04-14 08:22:14 -04:00
&.is-selected {
> a {
background: $fog;
color: $regal;
.side-nav-icon {
color: $regal;
}
}
}
2015-02-26 09:45:32 -05:00
> 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;
2015-02-28 00:38:49 -05:00
text-align: left;
font-weight: 400;
2015-03-01 19:39:17 -05:00
position: relative;
2015-03-11 23:21:59 -04:00
text-decoration: none;
display: block;
2015-04-22 08:33:17 -04:00
text-transform: uppercase;
2015-04-14 08:22:14 -04:00
}
2015-03-01 19:39:17 -05:00
2015-04-14 08:22:14 -04:00
.side-nav-icon {
position: absolute;
top: 0px;
left: 16px;
z-index: $layer-1;
font-size: 19px;
color: $cloud;
line-height: 47px;
}
}
}
2015-03-01 19:39:17 -05:00
2015-04-14 08:22:14 -04:00
// SECONDARY SIDENAV BUTTON
.side-nav-secondary {
@extend .side-nav-primary;
background: $fog;
box-shadow: inset 0px 2px 2px rgba($coal, .24);
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
display: none;
}
2015-04-16 10:24:28 -04:00
&.is-ordered {
> li {
line-height: 40px;
vertical-align: top;
> a {
2015-04-18 12:12:05 -04:00
padding: 0px ($unit * 2) 0px ($unit * 3);
text-transform: none;
font-size: 14px;
2015-04-16 10:24:28 -04:00
}
}
}
2015-04-14 08:22:14 -04:00
> li {
2015-04-26 11:01:04 -04:00
border-bottom: none;
2015-04-14 08:22:14 -04:00
&.is-selected {
> a {
background: transparent;
color: $regal;
2015-03-01 19:39:17 -05:00
}
}
2015-04-14 08:22:14 -04:00
> a {
line-height: ($unit * 5) - 1;
2015-04-22 11:48:20 -04:00
padding: 0px ($unit * 2) 0px ($unit * 4);
2015-04-14 08:22:14 -04:00
font-size: 13px;
}
2015-03-01 19:39:17 -05:00
.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
}
}
}
2015-04-14 08:22:14 -04:00
// SECONDARY SIDENAV BUTTON
.side-nav-tertiary {
padding-bottom: ($unit * 1);
2015-04-19 18:21:21 -04:00
margin: 0px;
2015-04-22 11:48:20 -04:00
padding: 0px;
2015-04-14 08:22:14 -04:00
> li {
2015-04-22 11:48:20 -04:00
margin: 0px;
2015-04-14 08:22:14 -04:00
&.is-selected {
> a {
2015-04-22 11:48:20 -04:00
background: darken($fog, 3%);
color: $blueberry;
2015-04-14 08:22:14 -04:00
}
}
> a {
line-height: ($unit * 3) - 1;
font-size: 13px;
text-transform: none;
text-align: left;
margin: 0px;
2015-04-19 17:26:53 -04:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
2015-04-22 10:49:21 -04:00
text-decoration: none;
font-weight: 400;
2015-04-22 11:48:20 -04:00
padding: 0px $unit 0px ($unit * 7);
2015-04-22 10:49:21 -04:00
line-height: 34px;
2015-04-22 11:48:20 -04:00
color: $metal;
2015-04-14 08:22:14 -04:00
}
}
}
2015-02-26 09:45:32 -05:00
}