insomnia/app/css/layout/sidebar.scss

96 lines
1.6 KiB
SCSS
Raw Normal View History

2016-03-23 05:26:27 +00:00
@import '../constants/dimensions';
@import '../constants/colors';
.sidebar {
2016-04-06 07:19:36 +00:00
border-right: 1px solid $hl-sm;
box-shadow: 0 0 1.5rem 0 rgba(0, 0, 0, 0.1);
2016-03-23 05:26:27 +00:00
height: 100%;
2016-04-05 20:49:28 +00:00
width: $sidebar-width;
flex-shrink: 0;
2016-03-23 05:26:27 +00:00
2016-04-05 05:35:21 +00:00
.sidebar__scroll {
overflow-y: auto;
2016-03-23 05:26:27 +00:00
}
2016-04-04 07:15:30 +00:00
.sidebar__item__row {
width: 100%;
text-align: left;
box-sizing: border-box;
color: inherit;
&:hover {
2016-04-05 05:35:21 +00:00
background-color: $hl-xxs;
2016-03-23 17:15:19 +00:00
}
2016-04-04 07:15:30 +00:00
& > button {
2016-04-05 06:08:03 +00:00
padding: $padding-sm;
2016-04-04 07:15:30 +00:00
color: inherit;
height: 100%;
width: 100%;
}
}
.sidebar__item__btn {
display: none;
position: absolute;
right: 0;
top: 0;
bottom: 0;
color: $hl-xl;
& > button,
& > .dropdown > button {
padding: 0 $padding-sm;
height: 100%;
color: inherit;
2016-03-23 17:15:19 +00:00
&:hover {
2016-04-04 07:15:30 +00:00
color: $font-dark-bg;
2016-03-23 17:15:19 +00:00
}
2016-04-04 07:15:30 +00:00
}
}
.sidebar__item {
color: $hl;
box-sizing: border-box;
width: 100%;
position: relative;
2016-03-23 17:15:19 +00:00
2016-04-04 07:15:30 +00:00
&.sidebar__item--active {
color: $font-dark-bg;
.tag {
opacity: 1;
2016-03-23 17:15:19 +00:00
}
2016-03-23 05:26:27 +00:00
}
2016-04-04 07:15:30 +00:00
&.sidebar__item--right-menu {
padding-right: 0;
}
2016-03-23 05:26:27 +00:00
2016-04-04 07:15:30 +00:00
&:hover .sidebar__item__btn {
display: block;
2016-03-23 05:26:27 +00:00
}
2016-04-04 07:15:30 +00:00
&.sidebar__item--bordered {
2016-04-05 05:35:21 +00:00
border-top: 1px solid $hl-sm;
2016-04-04 01:05:34 +00:00
}
2016-04-04 07:15:30 +00:00
.tag {
opacity: $faint-opacity;
2016-04-05 05:35:21 +00:00
width: 4em;
margin-right: 0;
text-align: left;
2016-03-23 05:26:27 +00:00
}
}
2016-04-05 05:35:21 +00:00
// This removes the border on the first request group if there are no requests above it
.sidebar__request-list li:first-child .sidebar__item--bordered {
border-top: 0;
}
2016-04-04 07:15:30 +00:00
ul ul .sidebar__item__row > button {
padding-left: $padding-sm * 3 !important;
2016-03-23 05:26:27 +00:00
}
}