insomnia/app/css/layout/sidebar.scss
2016-03-23 10:15:19 -07:00

71 lines
1.1 KiB
SCSS

@import '../constants/dimensions';
@import '../constants/colors';
.sidebar {
height: 100%;
.pane__body {
overflow-y: auto;
width: $sidebar-width;
}
.pane__header, .pane__body {
border-left: 0;
}
ul {
li.active > .sidebar__item {
color: inherit;
}
.sidebar__item, .sidebar__item-btn {
height: $line-height-sm;
line-height: $line-height-sm;
padding: 0 $padding-md;
&:hover {
background: $hl-xs;
}
&:active {
background: $hl-md;
}
}
& > li > .sidebar__item {
display: flex;
align-items: center;
color: $hl;
box-sizing: border-box;
width: 100%;
text-align: left;
&.sidebar__item--right-menu {
padding-right: 0;
}
}
& > li {
& > ul > li {
& > .sidebar__item {
padding-left: $padding-sm * 5;
}
& > ul > li {
& > .sidebar__item {
padding-left: $padding-md * 3;
}
}
}
}
}
}
@media (max-width: $breakpoint-sm) {
.sidebar {
.pane__body {
overflow-y: auto;
width: $sidebar-width-sm;
}
}
}