insomnia/app/css/layout/sidebar.scss

108 lines
1.8 KiB
SCSS
Raw Normal View History

2016-03-23 05:26:27 +00:00
@import '../constants/dimensions';
@import '../constants/colors';
.sidebar {
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-04-07 01:11:16 +00:00
height: 100%;
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 {
position: absolute;
right: 0;
top: 0;
bottom: 0;
color: $hl-xl;
& > button,
& > .dropdown > button {
2016-04-07 01:11:16 +00:00
display: none;
2016-04-04 07:15:30 +00:00
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-10 05:03:18 +00:00
.tag {
padding-left: 0;
}
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-07 01:11:16 +00:00
&:hover .sidebar__item__btn > button,
&:hover .sidebar__item__btn > .dropdown > button {
2016-04-04 07:15:30 +00:00
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 {
2016-04-07 03:34:40 +00:00
opacity: 0.4;
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-10 05:03:18 +00:00
ul .sidebar__item__row > button {
2016-04-07 03:34:40 +00:00
padding-left: $padding-md !important;
}
2016-04-10 05:03:18 +00:00
ul ul .sidebar__item__row > button {
2016-04-07 03:34:40 +00:00
padding-left: $padding-md * 2 !important;
2016-03-23 05:26:27 +00:00
}
2016-04-10 05:03:18 +00:00
ul ul ul .sidebar__item__row > button {
padding-left: $padding-md * 3 !important;
}
2016-03-23 05:26:27 +00:00
}