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

287 lines
5.0 KiB
SCSS
Raw Normal View History

2015-03-11 23:21:59 -04:00
/*
* Side Navigation
*
* Left Navigation used in Documenation
2015-03-11 23:21:59 -04:00
*/
2015-03-04 14:48:14 -05:00
/*
* Variables
*/
$sidenav: '.sidenav'; // Classname
$sidenav-background: $blue-grey-50;
$sidenav-background-dark: $blue-grey-200;
$sidenav-color: $blue-grey-400;
$sidenav-color-selected: $blue-600;
$sidenav-width: 240px;
/*
* Class
*/
#{$sidenav} {
background: $sidenav-background;
box-shadow: 3px 0px 6px rgba($black, .24);
padding-bottom: 72px;
width: $sidenav-width;
2015-04-19 16:53:18 -04:00
bottom: 0px;
overflow: auto;
2015-02-26 09:45:32 -05:00
// MOBILE STYLE FOR DROPDOWN & TOGGLE
@include respond-to('mobile') {
box-shadow: 0px 3px 6px rgba($black, .24);
2015-03-05 00:00:46 -05:00
width: auto;
left: 0;
right: 0;
2015-03-05 00:21:59 -05:00
bottom: auto;
padding-bottom: 0;
2015-03-05 00:21:59 -05:00
#{$sidenav}-links {
2015-03-05 00:25:37 -05:00
display: none;
}
2015-03-05 00:25:37 -05:00
&.is-visible {
bottom: 0;
padding-bottom: 72px;
2015-03-05 00:21:59 -05:00
#{$sidenav}-links {
display: block;
2015-03-05 00:21:59 -05:00
}
}
2015-02-26 09:45:32 -05:00
}
.is-hidden {
display: none;
}
}
/*
* Side Nav Search
*/
#{$sidenav}-search {
background: $sidenav-background-dark;
box-sizing: border-box;
box-shadow: none;
padding: $unit;
height: $unit * 6;
position: relative;
@include respond-to('mobile') {
border-bottom: none;
padding-right: $unit * 14;
overflow: hidden;
2016-04-21 14:29:39 -04:00
}
2015-03-11 23:21:59 -04:00
input {
border: none;
border-radius: 200px;
box-sizing: border-box;
color: $sidenav-color;
display: inline-block;
font-size: 14px;
height: 32px;
2015-02-26 09:45:32 -05:00
margin: 0px;
padding: 0px $unit;
width: 100%;
2015-02-26 09:45:32 -05:00
// PLACEHOLDER TEXT
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: $blue-grey-100;
font-size: 12px;
}
&::-moz-placeholder { /* Firefox 19+ */
color: $blue-grey-100;
font-size: 12px;
2015-03-05 00:21:59 -05:00
}
&:-ms-input-placeholder { /* IE 10+ */
color: $blue-grey-100;
font-size: 12px;
}
&:-moz-placeholder { /* Firefox 18- */
color: $blue-grey-100;
font-size: 12px;
}
}
2015-03-05 00:21:59 -05:00
.mobile-trigger {
position: absolute;
top: 0;
right: $unit * 0.2;
border: none;
background: darken($tin, 5%);
color: $snow;
padding-right: $unit * 4;
display: none;
2015-02-26 09:45:32 -05:00
@include respond-to('mobile') {
display: inline-block;
}
2015-04-14 08:22:14 -04:00
.icon {
position: absolute;
top: 5px;
right: $unit;
z-index: $layer-1;
font-size: 20px;
opacity: .87;
}
}
}
2015-04-14 08:22:14 -04:00
/*
* Section Dividers
*/
2015-03-01 19:39:17 -05:00
#{$sidenav} #{$sidenav}-section-divider {
background: $sidenav-background-dark;
border: none;
color: $white;
font-size: 10px;
line-height: $unit * 3;
margin: 0;
padding: 0;
text-transform: uppercase;
h3 {
font-weight: 400;
margin: 0;
padding: 0 ($unit * 2);
2015-04-14 08:22:14 -04:00
}
}
2015-03-01 19:39:17 -05:00
2015-04-14 08:22:14 -04:00
/*
* Navigation Links
*/
2015-04-14 08:22:14 -04:00
#{$sidenav}-links {
list-style-type: none;
margin: 0px;
padding: 0px;
2016-04-21 14:29:39 -04:00
// SIDENAV MAIN SECTIONS
#{$sidenav}-section {
border-bottom: 1px solid rgba($blue-grey-100, .56);
color: $sidenav-color;
margin: 0;
padding: 0;
2016-04-21 14:29:39 -04:00
&.no-border {
border: none;
2016-04-21 14:29:39 -04:00
> a {
line-height: $unit * 6;
}
}
2016-04-21 14:29:39 -04:00
> a {
box-sizing: border-box;
color: $sidenav-color;
display: block;
font-size: 13px;
font-weight: 400;
line-height: ($unit * 6) - 1;
text-decoration: none;
padding: 0 ($unit * 2);
position: relative;
&.is-selected {
background: rgba($blue-grey-100, .56);
color: $sidenav-color-selected;
font-weight: 600;
2015-04-16 10:24:28 -04:00
}
2016-04-21 14:29:39 -04:00
&.is-selected.is-parent {
box-shadow: 0 2px 2px rgba($black, .24);
}
2015-04-16 10:24:28 -04:00
}
.inline-arrow-down-svg {
opacity: .56;
position: absolute;
right: $unit;
top: $unit + 4;
z-index: $layer-1;
}
2015-04-14 08:22:14 -04:00
ul {
background: rgba($blue-grey-100, .56);
list-style: none;
padding: 0;
margin: 0
}
2015-03-01 19:39:17 -05:00
li {
margin: 0;
padding: 0;
2016-04-21 14:29:39 -04:00
&.is-selected {
> a {
background: rgba($blue-grey-100, .87);
color: $sidenav-color-selected;
font-weight: 600;
2016-04-21 14:29:39 -04:00
}
}
}
2015-04-14 08:22:14 -04:00
li a {
color: $sidenav-color;
font-size: 12px;
display: block;
line-height: $unit * 4;
padding: 0 ($unit * 2);
transition: all .2s;
2016-04-21 14:29:39 -04:00
&:hover {
background: rgba($white, .24);
color: $sidenav-color-selected;
text-decoration: none;
}
2015-02-26 09:45:32 -05:00
}
}
2015-04-14 08:22:14 -04: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;
2015-04-14 08:22:14 -04:00
#{$sidenav}-icon {
color: $regal;
2016-04-21 14:29:39 -04:00
}
}
2015-04-14 08:22:14 -04:00
}
> a {
line-height: ($unit * 6) - 1;
padding: 0px ($unit * 2) 0px ($unit * 6);
color: $metal;
font-size: 14px;
text-align: left;
font-weight: 400;
position: relative;
text-decoration: none;
display: block;
text-transform: uppercase;
}
2016-04-21 14:29:39 -04:00
#{$sidenav}-icon {
position: absolute;
top: 0px;
left: 16px;
z-index: $layer-1;
font-size: 19px;
color: $cloud;
line-height: 47px;
2016-04-21 14:29:39 -04:00
}
2015-04-14 08:22:14 -04:00
}
}