2018-03-21 14:09:23 -04:00
|
|
|
// Base
|
|
|
|
.sidebar {
|
|
|
|
max-width: @sidebar-width;
|
|
|
|
background-color: @sidebar-bg;
|
2017-01-23 21:07:22 -05:00
|
|
|
position: fixed;
|
|
|
|
height: 100%;
|
2018-03-21 14:09:23 -04:00
|
|
|
z-index: @sidebar-z-index;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
.transition(transform);
|
|
|
|
.transition-duration(200ms);
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
@media (min-width: @screen-md-min) {
|
|
|
|
width: 100%;
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&.sidebar--toggled {
|
|
|
|
.translate3d((-@sidebar-width - 15px), 0, 0);
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
@media (max-width: @screen-sm-max) {
|
|
|
|
width: 85%;
|
|
|
|
box-shadow: 0 0 1.3rem rgba(0, 0, 0, 0.1);
|
|
|
|
.translate3d((-@sidebar-width - 1rem), 0, 0);
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&.sidebar--toggled {
|
|
|
|
.translate3d(0, 0, 0);
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.sidebar__inner {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 1;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
// Logo
|
|
|
|
.logo {
|
|
|
|
padding: @sidebar-padding;
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
align-items: flex-start;
|
|
|
|
margin-bottom: 1.15rem;
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.logo__img {
|
|
|
|
height: 4rem;
|
|
|
|
margin: -0.6rem 0.55rem 0 -0.75rem;
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.logo__title {
|
|
|
|
& > h2 {
|
|
|
|
font-weight: @font-weight-normal;
|
|
|
|
line-height: 100%;
|
|
|
|
font-size: 1.33rem;
|
2017-01-23 21:07:22 -05:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
& > small {
|
|
|
|
display: block;
|
|
|
|
margin-top: 0.33rem;
|
|
|
|
padding-left: 1px;
|
|
|
|
color: @text-muted-color;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
max-width: @sidebar-width - 80;
|
|
|
|
.text-overflow();
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2017-12-29 08:15:44 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
// Buckets
|
|
|
|
.buckets {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: auto;
|
|
|
|
flex-shrink: 0;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.buckets__search {
|
|
|
|
padding: 0 @sidebar-padding;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-22 13:58:48 -04:00
|
|
|
.buckets__list {
|
|
|
|
height: calc(~"100vh - 246px");
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.buckets__item {
|
|
|
|
padding: 0.8rem @sidebar-padding 0.8rem @sidebar-padding*2.2;
|
|
|
|
background: url(../../img/icons/bucket.svg) no-repeat left 2.2rem center;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
& > a {
|
|
|
|
&, &:focus, &:hover {
|
|
|
|
color: @headings-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.buckets__item__actions {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.buckets__item--active {
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
#gradient > .horizontal(#f3f3f3; @white);
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.buckets__item__actions {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0.5rem;
|
|
|
|
right: 0.5rem;
|
|
|
|
.transition(opacity);
|
|
|
|
.transition-duration(300ms);
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&:not(.open) {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Backdrop for mobile
|
|
|
|
@media(min-width: @screen-md-min) {
|
|
|
|
.sidebar-backdrop {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
@media(max-width: @screen-sm-max) {
|
|
|
|
.sidebar-backdrop {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: @sidebar-z-index - 1;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar--toggled {
|
|
|
|
& + .content {
|
|
|
|
.sidebar-backdrop {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|