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

180 lines
2.8 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;
2018-10-13 14:28:46 +13:00
background: colour(darkest_grey);
border-right: 1px solid lighten(colour(dark_grey), 2%);
color: colour(white);
2017-07-26 15:24:18 +12:00
box-sizing: border-box;
2016-11-21 21:46:53 +13:00
2018-08-24 16:10:41 +12:00
.light-theme & {
2018-10-13 14:28:46 +13:00
background: lighten(colour(faint_grey), 2%);
2018-08-27 08:21:41 +12:00
border-right: none;
2018-08-24 16:10:41 +12: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/app-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;
2018-10-13 14:28:46 +13:00
color: colour(white);
text-decoration: none;
display: block;
2018-05-13 16:03:51 +12:00
padding: 10px 10px 8px;
margin: 0 16px;
border-radius: 3px;
2018-08-24 16:10:41 +12:00
.light-theme & {
2018-10-13 14:28:46 +13:00
color: colour(dark_grey);
2018-08-24 16:10:41 +12:00
font-weight: 600;
}
2016-10-24 21:26:01 +13:00
.icon {
2018-05-16 21:08:45 +12:00
padding-right: 8px;
2018-05-15 21:30:57 +12:00
vertical-align: top;
margin-top: -1px;
font-size: 14px;
2016-10-24 21:26:01 +13:00
}
2018-02-20 08:25:46 +13:00
.status {
margin-left: 5px;
float: right;
2018-05-20 20:42:20 +12:00
.icon {
padding-right: 0;
padding-left: 8px;
}
2018-02-20 08:25:46 +13:00
}
&.active {
2018-10-13 14:28:46 +13:00
background: colour(turquoise);
color: colour(white);
2017-06-19 08:02:24 +12:00
.status {
.icon {
2018-10-13 14:28:46 +13:00
color: colour(white) !important;
}
}
&:before {
opacity: 0.15;
}
}
&[disabled] {
opacity: 0.3;
cursor: not-allowed;
}
&:hover:not([disabled]){
&:before {
opacity: 0.15;
}
}
&:active {
@include noanimate();
transform: translate(1px,1px);
}
}
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;
2018-10-13 14:28:46 +13:00
color: colour(mid_grey);
}
}
}
.close {
display: none;
position: absolute;
2018-05-20 20:42:20 +12:00
bottom: 4px;
right: 4px;
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;
}
}
}
}
}