2016-05-01 19:56:30 +00:00
|
|
|
@import '../constants/dimensions';
|
|
|
|
@import '../constants/colors';
|
|
|
|
|
|
|
|
.sidebar {
|
2016-06-19 01:24:49 +00:00
|
|
|
position: relative;
|
2016-05-01 19:56:30 +00:00
|
|
|
display: grid;
|
2017-06-27 21:44:23 +00:00
|
|
|
grid-template-rows: @height-nav auto auto minmax(0, 1fr) auto;
|
2016-09-15 22:45:08 +00:00
|
|
|
grid-template-columns: 100%;
|
2016-11-26 00:37:59 +00:00
|
|
|
z-index: 10;
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
background-color: var(--color-bg);
|
|
|
|
color: var(--color-font);
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-06-19 00:40:14 +00:00
|
|
|
width: 100%;
|
2016-05-01 19:56:30 +00:00
|
|
|
height: 100%;
|
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
&.sidebar--collapsed > * > * {
|
2017-04-21 04:30:52 +00:00
|
|
|
display: none;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
2016-09-12 20:04:15 +00:00
|
|
|
&.sidebar--hidden {
|
2017-03-09 06:23:23 +00:00
|
|
|
// It proved difficult to keep the invisible children from overflowing when
|
|
|
|
// hidden, so we're just going to bump it way to the left to be sure.
|
|
|
|
left: -9999px;
|
2016-09-12 20:04:15 +00:00
|
|
|
}
|
2016-08-15 17:04:36 +00:00
|
|
|
|
2016-07-06 20:18:26 +00:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
// ~~~~~~~~~~~~~~ //
|
|
|
|
// Sidebar Header //
|
|
|
|
// ~~~~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__header {
|
2017-01-20 21:54:03 +00:00
|
|
|
border-top: 1px solid @hl-md;
|
|
|
|
border-bottom: 1px solid @hl-md;
|
|
|
|
box-sizing: border-box;
|
2017-01-23 22:41:31 +00:00
|
|
|
background-color: var(--color-bg);
|
|
|
|
color: var(--color-font);
|
2016-06-19 07:37:50 +00:00
|
|
|
width: 100%;
|
2016-08-15 17:04:36 +00:00
|
|
|
height: 100%;
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-11-29 20:55:31 +00:00
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2017-01-23 22:41:31 +00:00
|
|
|
h1, h1 * {
|
|
|
|
font-size: @font-size-xl;
|
|
|
|
}
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ~~~~~~~~~~~~~~~ //
|
|
|
|
// Sidebar Toolbar //
|
|
|
|
// ~~~~~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__filter {
|
|
|
|
// Nothing yet
|
|
|
|
display: grid;
|
2016-08-29 17:58:59 +00:00
|
|
|
font-size: @font-size-sm;
|
2016-09-20 20:53:34 +00:00
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
2016-08-15 17:04:36 +00:00
|
|
|
align-items: center;
|
2017-04-21 04:30:52 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 0 0 @padding-sm;
|
2016-08-15 17:04:36 +00:00
|
|
|
|
|
|
|
.btn {
|
2016-11-29 20:55:31 +00:00
|
|
|
padding: 0 (@padding-md - @padding-xs);
|
2016-08-29 17:58:59 +00:00
|
|
|
margin-right: @padding-xxs;
|
|
|
|
border-radius: @radius-md;
|
2016-11-29 20:55:31 +00:00
|
|
|
margin-left: @padding-xxs;
|
2017-07-17 22:47:45 +00:00
|
|
|
margin-bottom: @padding-sm;
|
2017-04-21 04:30:52 +00:00
|
|
|
height: @line-height-xxs;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
2017-04-21 04:30:52 +00:00
|
|
|
.form-control input {
|
|
|
|
padding: @padding-xs;
|
|
|
|
margin-top: 0;
|
|
|
|
height: auto;
|
|
|
|
background: transparent;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__menu {
|
2016-09-16 02:57:57 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
2017-06-27 21:44:23 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
2016-08-29 17:58:59 +00:00
|
|
|
font-size: @font-size-sm;
|
|
|
|
color: @hl;
|
2017-06-27 21:44:23 +00:00
|
|
|
padding-left: @padding-xs;
|
|
|
|
padding-right: @padding-xs;
|
|
|
|
|
|
|
|
// Make it scroll when too skinny
|
|
|
|
overflow: auto;
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-15 17:04:36 +00:00
|
|
|
|
|
|
|
& > * {
|
2017-06-27 21:44:23 +00:00
|
|
|
flex: 1;
|
2017-04-21 04:30:52 +00:00
|
|
|
margin-top: @padding-xs;
|
2017-06-27 21:44:23 +00:00
|
|
|
margin-bottom: @padding-xs;
|
2017-06-30 02:22:51 +00:00
|
|
|
max-width: 100%;
|
2017-06-27 21:44:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > .dropdown > * {
|
|
|
|
width: 100%;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > *:first-child {
|
2016-08-29 17:58:59 +00:00
|
|
|
margin-right: @padding-xxs;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > *:last-child {
|
2016-08-29 17:58:59 +00:00
|
|
|
margin-left: @padding-xxs;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
2016-06-19 07:21:43 +00:00
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
.sidebar__menu__thing {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2016-06-19 00:27:21 +00:00
|
|
|
|
2017-03-29 23:09:28 +00:00
|
|
|
& > .sidebar__menu__thing__text {
|
2016-08-15 17:04:36 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2016-06-19 00:27:21 +00:00
|
|
|
}
|
2016-11-27 21:42:38 +00:00
|
|
|
|
|
|
|
i.fa {
|
|
|
|
// Bump the drop down caret down a bit
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
.btn {
|
|
|
|
border-radius: 900px;
|
2016-08-29 17:58:59 +00:00
|
|
|
height: @line-height-xxs;
|
|
|
|
padding-left: @padding-xxs;
|
|
|
|
padding-right: @padding-xxs;
|
2017-01-23 22:41:31 +00:00
|
|
|
color: var(--color-font);
|
2016-08-15 17:04:36 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-01-20 21:54:03 +00:00
|
|
|
opacity: 1;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidebar--skinny .sidebar__filter {
|
|
|
|
grid-template-columns: 100%;
|
2017-04-21 04:30:52 +00:00
|
|
|
padding-right: @padding-sm;
|
2016-08-15 17:04:36 +00:00
|
|
|
|
|
|
|
& > *:first-child {
|
2016-08-29 17:58:59 +00:00
|
|
|
margin-right: @padding-xs;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > *:last-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
// ~~~~~~~~~~~~ //
|
|
|
|
// Sidebar List //
|
|
|
|
// ~~~~~~~~~~~~ //
|
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
.sidebar__list-root {
|
|
|
|
// Add some space above so it's not so squished
|
2017-01-24 00:48:28 +00:00
|
|
|
border-top: 1px solid @hl-sm;
|
2017-05-03 17:48:23 +00:00
|
|
|
padding-top: @padding-xxs;
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-bottom: @padding-md;
|
2017-01-20 21:54:03 +00:00
|
|
|
box-shadow: inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.03);
|
2016-05-01 19:56:30 +00:00
|
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover::-webkit-scrollbar {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-26 00:37:59 +00:00
|
|
|
.sidebar__list--collapsed > * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
// ~~~~~~~~~~~ //
|
|
|
|
// Sidebar Row //
|
|
|
|
// ~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__row {
|
2016-07-19 16:59:26 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&.sidebar__row--dragging {
|
|
|
|
// Set opacity on children so we can still see the separator
|
|
|
|
& > * {
|
2017-01-20 21:54:03 +00:00
|
|
|
opacity: 0.3;
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidebar__row--dragging-below::after,
|
|
|
|
&.sidebar__row--dragging-above::before {
|
|
|
|
position: absolute;
|
2016-07-20 23:16:28 +00:00
|
|
|
height: 0;
|
2016-07-21 16:33:35 +00:00
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2017-01-23 22:41:31 +00:00
|
|
|
border-bottom: 2px dotted var(--color-surprise);
|
2016-07-19 16:59:26 +00:00
|
|
|
content: " ";
|
2016-07-20 23:16:28 +00:00
|
|
|
display: block
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ~~~~~~~~~~~~ //
|
|
|
|
// Sidebar Item //
|
|
|
|
// ~~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__item {
|
|
|
|
display: grid;
|
2016-09-20 20:53:34 +00:00
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
2016-08-29 17:58:59 +00:00
|
|
|
grid-template-rows: @line-height-xs;
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
& > button {
|
|
|
|
color: @hl;
|
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
& > * {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidebar__item--big {
|
2016-08-29 17:58:59 +00:00
|
|
|
grid-template-rows: @line-height-sm;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
&.sidebar__item--active > button {
|
|
|
|
color: var(--color-font);
|
2017-01-24 22:18:11 +00:00
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
.tag {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2017-01-20 21:54:03 +00:00
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
// Active sidebar request
|
|
|
|
&.sidebar__item--request > button {
|
|
|
|
border-left: @padding-xs solid transparent;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
&.sidebar__item--active.sidebar__item--request > button,
|
2017-03-12 00:31:23 +00:00
|
|
|
&.sidebar__item--active.sidebar__item--request > .sidebar__actions,
|
2017-01-23 22:41:31 +00:00
|
|
|
&:hover > button,
|
2017-01-24 02:52:48 +00:00
|
|
|
& > button:focus,
|
|
|
|
&:hover .sidebar__actions {
|
2017-03-12 00:31:23 +00:00
|
|
|
transition: background-color 130ms ease-out;
|
2017-01-23 22:41:31 +00:00
|
|
|
background-color: @hl-xs;
|
2017-01-20 21:54:03 +00:00
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
.tag {
|
|
|
|
padding-left: 0;
|
|
|
|
text-align: left;
|
2016-11-29 22:28:55 +00:00
|
|
|
width: 3em;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-08 06:02:40 +00:00
|
|
|
.sidebar__item__icon {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-right: @padding-sm;
|
2016-07-08 06:02:40 +00:00
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
// ~~~~~~~~~~~~~~~~~ //
|
|
|
|
// Sidebar Clickable //
|
|
|
|
// ~~~~~~~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__clickable {
|
2016-07-08 06:02:40 +00:00
|
|
|
display: grid;
|
2016-09-20 20:53:34 +00:00
|
|
|
grid-template-columns: auto minmax(0, 1fr);
|
2016-07-08 06:02:40 +00:00
|
|
|
align-items: center;
|
2016-12-21 23:37:48 +00:00
|
|
|
height: 100%;
|
2016-09-20 20:53:34 +00:00
|
|
|
|
|
|
|
& > *:last-child {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
// Padding for nested folders
|
2016-05-01 19:56:30 +00:00
|
|
|
|
|
|
|
.sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__list .sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md * 2;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
2016-07-19 16:59:26 +00:00
|
|
|
.sidebar__list .sidebar__list .sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md * 3;
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md * 4;
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md * 5;
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md * 6;
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__list .sidebar__clickable {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding-left: @padding-md * 7;
|
2016-07-19 16:59:26 +00:00
|
|
|
}
|
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
// ~~~~~~~~~~~~~~~ //
|
|
|
|
// Sidebar Actions //
|
|
|
|
// ~~~~~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__actions {
|
|
|
|
& > * {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > button,
|
|
|
|
& > .dropdown > button {
|
|
|
|
display: none;
|
2016-08-29 17:58:59 +00:00
|
|
|
color: @hl;
|
2016-05-01 19:56:30 +00:00
|
|
|
height: 100%;
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: 0 @padding-sm;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > button:hover,
|
|
|
|
& > .dropdown:hover > button {
|
2017-01-23 22:41:31 +00:00
|
|
|
color: var(--color-font);
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__item:hover .sidebar__actions > button,
|
|
|
|
.sidebar__item:hover .sidebar__actions > .dropdown > button {
|
|
|
|
display: initial;
|
|
|
|
}
|
2016-10-21 17:20:36 +00:00
|
|
|
|
|
|
|
// ~~~~~~~~~~~~~~ //
|
|
|
|
// Sidebar Footer //
|
|
|
|
// ~~~~~~~~~~~~~~ //
|
|
|
|
|
|
|
|
.sidebar__footer {
|
2016-11-11 23:06:24 +00:00
|
|
|
height: @line-height-xs;
|
|
|
|
border-top: 1px solid @hl-md;
|
2016-12-22 07:24:28 +00:00
|
|
|
width: 100%;
|
2016-11-11 23:06:24 +00:00
|
|
|
}
|
|
|
|
|
2016-11-12 08:38:55 +00:00
|
|
|
.sidebar__footer > button,
|
2016-11-11 23:06:24 +00:00
|
|
|
.sidebar__footer .dropdown > button {
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
padding: @padding-xs @padding-md;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
2016-10-21 17:20:36 +00:00
|
|
|
color: @hl;
|
2016-10-24 23:30:37 +00:00
|
|
|
box-sizing: border-box;
|
2016-12-30 23:06:27 +00:00
|
|
|
overflow: hidden;
|
2016-10-21 17:20:36 +00:00
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|