Files
Iris/src/scss/components/_sidebar.scss

152 lines
2.3 KiB
SCSS
Raw Normal View History

aside{
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 96;
2017-07-26 15:24:18 +12:00
width: 220px;
2016-10-24 21:26:01 +13:00
overflow: hidden;
background: $darkest_grey;
border-right: 1px solid lighten($dark_grey, 2%);
2017-07-23 10:15:02 +12:00
color: $white;
2017-07-26 15:24:18 +12:00
box-sizing: border-box;
2016-11-21 21:46:53 +13:00
2016-11-22 11:10:30 +13:00
.liner {
overflow-y: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 120px;
2016-11-22 11:10:30 +13:00
box-sizing: border-box;
z-index: 2;
overflow-y: auto;
2017-06-16 15:40:39 +12:00
}
.branding {
height: 50px;
margin-top: 30px;
opacity: 0.2;
background: {
image: url('../assets/icon.svg');
position: 50% 50%;
repeat: no-repeat;
size: contain;
}
}
nav {
z-index: 2;
position: relative;
padding-top: 20px;
line-height: 1em;
a {
2017-06-20 19:55:47 +12:00
@include gradient_overlay(3px);
2017-07-24 06:03:09 +12:00
font-family: "Overpass";
font-weight: 500;
font-size: 14px;
2017-07-23 10:15:02 +12:00
color: $white;
text-decoration: none;
display: block;
2018-05-13 16:03:51 +12:00
padding: 10px 10px 8px;
margin: 0 16px;
border-radius: 3px;
2016-10-24 21:26:01 +13:00
.icon {
padding-right: 6px;
2018-05-13 16:03:51 +12:00
font-size: 0.8em;
2016-10-24 21:26:01 +13:00
}
2018-02-20 08:25:46 +13:00
.status {
margin-left: 5px;
float: right;
}
&.active {
background: $turquoise;
color: $white;
2017-06-19 08:02:24 +12:00
&:before {
opacity: 0.15;
}
}
&[disabled] {
opacity: 0.3;
cursor: not-allowed;
}
&:hover:not([disabled]){
&:before {
opacity: 0.15;
}
}
}
section {
2017-06-20 19:55:47 +12:00
padding-bottom: 25px;
title {
display: block;
2017-06-19 16:53:27 +12:00
padding: 0 26px 5px 26px;
2017-06-18 05:47:36 +12:00
font-size: 10px;
text-transform: uppercase;
opacity: 0.5;
2017-06-16 20:05:32 +12:00
color: $mid_grey;
}
}
}
.close {
display: none;
position: absolute;
bottom: 10px;
right: 10px;
padding: 10px 8px;
display: inline-block;
opacity: 0.5;
z-index: 99;
}
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2017-08-23 07:52:25 +12:00
@include animate(0.15s);
width: 220px;
left: auto;
right: -220px;
padding-bottom: 0;
position: fixed;
z-index: 100;
.sidebar-open & {
-ms-transform: translate(-220px, 0);
-webkit-transform: translate(-220px, 0);
transform: translate(-220px, 0);
}
.liner {
bottom: 0 !important;
2017-10-21 21:58:53 +13:00
padding-bottom: 30px;
}
.thumbnail {
display: none;
}
.close {
display: block;
}
nav {
section {
padding-bottom: 10px;
title {
padding-bottom: 2px;
}
}
}
}
}