2013-10-24 20:25:52 +02:00
|
|
|
//
|
|
|
|
// Sidebar
|
|
|
|
//
|
|
|
|
|
|
|
|
._sidebar {
|
|
|
|
position: absolute;
|
|
|
|
z-index: $sidebarZ;
|
|
|
|
top: $headerHeight;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2014-11-10 04:14:38 +01:00
|
|
|
margin-top: 1px;
|
2013-10-24 20:25:52 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
2014-11-10 04:14:38 +01:00
|
|
|
background: $sidebarBackground;
|
2013-10-24 20:25:52 +02:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
-ms-overflow-style: none; // IE 10 doesn't support pointer-events
|
|
|
|
@extend %user-select-none;
|
|
|
|
|
2014-11-10 04:14:38 +01:00
|
|
|
&::-webkit-scrollbar { -webkit-appearance: none; width: 10px; }
|
2013-10-24 20:25:52 +02:00
|
|
|
&::-webkit-scrollbar-button { display: none; }
|
2014-11-10 04:14:38 +01:00
|
|
|
&::-webkit-scrollbar-track { background: $contentBackground; }
|
2013-10-24 20:25:52 +02:00
|
|
|
&::-webkit-scrollbar-thumb {
|
2014-11-10 04:14:38 +01:00
|
|
|
min-height: 2rem;
|
|
|
|
background: $scrollbarColor;
|
2013-10-24 20:25:52 +02:00
|
|
|
background-clip: padding-box;
|
2014-11-10 04:14:38 +01:00
|
|
|
border: 3px solid $contentBackground;
|
2013-10-24 20:25:52 +02:00
|
|
|
border-radius: 5px;
|
|
|
|
|
|
|
|
&:active {
|
2014-11-10 04:14:38 +01:00
|
|
|
background-color: $scrollbarColorHover;
|
2013-10-24 20:25:52 +02:00
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
}
|
2014-04-13 23:02:49 +02:00
|
|
|
|
|
|
|
a:focus { outline: 0; }
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
2015-02-17 04:29:06 +01:00
|
|
|
._resizer {
|
|
|
|
position: absolute;
|
|
|
|
z-index: $sidebarZ + 1;
|
|
|
|
top: $headerHeight;
|
|
|
|
bottom: 0;
|
|
|
|
left: $sidebarWidth;
|
|
|
|
margin-left: -2px;
|
|
|
|
width: 3px;
|
|
|
|
cursor: col-resize;
|
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
//
|
|
|
|
// List
|
|
|
|
//
|
|
|
|
|
|
|
|
._list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
width: $sidebarWidth;
|
2014-11-10 04:14:38 +01:00
|
|
|
box-shadow: inset -1px 0 $sidebarBorder;
|
|
|
|
@extend %border-box;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
@media #{$mediumScreen} { width: $sidebarMediumWidth; }
|
|
|
|
|
|
|
|
._sidebar > & {
|
|
|
|
min-height: 100%;
|
|
|
|
padding-bottom: 3.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-13 03:29:50 +01:00
|
|
|
._list-title {
|
2014-04-19 17:05:56 +02:00
|
|
|
position: relative;
|
|
|
|
margin: .5rem 0 0;
|
|
|
|
padding-left: 2.25rem;
|
|
|
|
line-height: 2rem;
|
2014-02-13 03:29:50 +01:00
|
|
|
font-size: .75rem;
|
|
|
|
color: $textColorLight;
|
|
|
|
text-transform: uppercase;
|
2014-04-19 18:36:38 +02:00
|
|
|
cursor: default;
|
2014-02-13 03:29:50 +01:00
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
._list-item {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2013-12-14 09:34:43 +01:00
|
|
|
padding: .25rem .75rem;
|
2014-11-10 04:14:38 +01:00
|
|
|
line-height: 1.5rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
font-size: .875rem;
|
|
|
|
cursor: default;
|
2014-11-10 04:14:38 +01:00
|
|
|
background: $sidebarBackground;
|
|
|
|
box-shadow: inset -1px 0 $sidebarBorder;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
&, &:hover {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.focus,
|
|
|
|
&.focus:hover,
|
|
|
|
&.active,
|
|
|
|
&.active:hover {
|
2014-11-10 04:14:38 +01:00
|
|
|
color: $focusText;
|
|
|
|
background: $focusBackground;
|
|
|
|
box-shadow: inset -1px 0 $focusBorder;
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&.active:hover {
|
2014-11-10 04:14:38 +01:00
|
|
|
color: $selectionText;
|
|
|
|
background: $selectionBackground;
|
|
|
|
box-shadow: inset -1px 0 $selectionBorder;
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
float: left;
|
2014-11-10 04:14:38 +01:00
|
|
|
margin: .25rem .625rem 0 0;
|
2013-10-24 20:25:52 +02:00
|
|
|
@extend %icon;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-23 22:12:05 +01:00
|
|
|
._list-item, ._list-text {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
word-wrap: normal;
|
|
|
|
overflow-wrap: normal;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-text {
|
|
|
|
display: block;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2015-02-08 20:46:08 +01:00
|
|
|
._list-count, ._list-enable {
|
2013-10-24 20:25:52 +02:00
|
|
|
float: right;
|
|
|
|
font-size: .75rem;
|
2016-01-23 22:12:05 +01:00
|
|
|
margin-left: .375rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
.focus > &,
|
|
|
|
.active > & {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-08 20:46:08 +01:00
|
|
|
._list-count {
|
|
|
|
color: $textColorLighter;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
._list-disabled:hover > & { display: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-enable {
|
|
|
|
display: none;
|
|
|
|
color: $linkColor;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover { text-decoration: underline; }
|
2015-12-06 17:51:35 +01:00
|
|
|
._list-disabled:hover > &, ._list-result > & { display: block; }
|
2016-01-31 20:07:35 +01:00
|
|
|
._list-result.active > & { margin-right: -1rem; }
|
2015-02-08 20:46:08 +01:00
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
//
|
|
|
|
// List hierarchy
|
|
|
|
//
|
|
|
|
|
2016-01-23 18:29:37 +01:00
|
|
|
._list-dir:not(._list-rdir),
|
2013-10-24 20:25:52 +02:00
|
|
|
%_list-dir {
|
|
|
|
padding-left: 2.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-disabled {
|
|
|
|
@extend %_list-dir;
|
|
|
|
|
|
|
|
&, &:hover { color: $textColorLight; }
|
|
|
|
&:before { opacity: .7; }
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-arrow {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: .25rem;
|
|
|
|
padding: .5rem;
|
|
|
|
cursor: pointer;
|
2014-11-10 04:14:38 +01:00
|
|
|
opacity: .4;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
2014-11-10 04:14:38 +01:00
|
|
|
&:hover { opacity: .65; }
|
2013-10-24 20:25:52 +02:00
|
|
|
|
2016-01-23 18:29:37 +01:00
|
|
|
._list-rdir > & {
|
|
|
|
left: auto;
|
|
|
|
right: .25rem;
|
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
&:before {
|
2015-02-08 23:50:03 +01:00
|
|
|
@if $style == 'dark' {
|
|
|
|
@extend %icon, %icon-dir-white;
|
|
|
|
} @else {
|
|
|
|
@extend %icon, %icon-dir;
|
|
|
|
}
|
2013-10-24 20:25:52 +02:00
|
|
|
|
2014-04-30 04:16:05 +02:00
|
|
|
.open > &, .open-title > & {
|
2013-10-24 20:25:52 +02:00
|
|
|
-webkit-transform: rotate(90deg);
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-sub {
|
2016-01-23 18:29:37 +01:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
.open + & { display: block; }
|
|
|
|
> ._list-item { padding-left: 2.375rem; }
|
|
|
|
> ._list-dir, > ._list-sub > ._list-item { padding-left: 2.75rem; }
|
2016-01-23 21:17:43 +01:00
|
|
|
> ._list-disabled { padding-left: 3.875rem; }
|
2013-10-24 20:25:52 +02:00
|
|
|
> ._list-item:before { content: none; }
|
2014-11-10 04:14:38 +01:00
|
|
|
> ._list-dir { line-height: 1.375rem; }
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
._list-arrow {
|
|
|
|
left: 1rem;
|
2014-11-10 04:14:38 +01:00
|
|
|
padding: .4375rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// List pagination
|
|
|
|
//
|
|
|
|
|
|
|
|
._list-pagelink {
|
|
|
|
color: $linkColor;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $linkColorHover;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-21 11:52:31 +01:00
|
|
|
//
|
|
|
|
// Search results
|
|
|
|
//
|
|
|
|
|
|
|
|
._list-result.active {
|
|
|
|
padding-right: 1.75rem;
|
|
|
|
|
|
|
|
> ._list-reveal { display: block; }
|
2016-01-23 22:12:05 +01:00
|
|
|
> ._list-count { display: none; }
|
2013-11-21 11:52:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
._list-reveal {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
2016-01-23 22:12:05 +01:00
|
|
|
width: 2rem;
|
2013-11-21 11:52:31 +01:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
bottom: 50%;
|
2016-01-23 22:12:05 +01:00
|
|
|
left: .75rem;
|
2013-11-21 11:52:31 +01:00
|
|
|
width: .75rem;
|
|
|
|
height: 1px;
|
2014-11-10 04:14:38 +01:00
|
|
|
background: rgba($selectionText, .9);
|
|
|
|
box-shadow: 0 -3px rgba($selectionText, .9), // top line
|
|
|
|
0 3px rgba($selectionText, .9); // bottom line
|
2013-11-21 11:52:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-08 15:53:10 +01:00
|
|
|
//
|
|
|
|
// List note
|
|
|
|
//
|
|
|
|
|
|
|
|
._list-note {
|
2015-03-29 21:12:58 +02:00
|
|
|
padding: .5rem .75rem;
|
2014-08-23 23:51:40 +02:00
|
|
|
line-height: 1.25rem;
|
|
|
|
font-size: .8125rem;
|
|
|
|
color: $textColorLight;
|
|
|
|
|
2015-03-29 21:12:58 +02:00
|
|
|
& + & { padding-top: 0; }
|
2014-08-23 23:51:40 +02:00
|
|
|
}
|
|
|
|
|
2015-02-08 15:53:10 +01:00
|
|
|
._list-note-link { cursor: pointer; }
|
2014-08-23 23:51:40 +02:00
|
|
|
|
2013-11-19 22:11:48 +01:00
|
|
|
//
|
|
|
|
// List hover clone
|
|
|
|
//
|
|
|
|
|
|
|
|
._list-hover.clone {
|
|
|
|
position: fixed;
|
2016-01-23 22:12:05 +01:00
|
|
|
overflow: visible;
|
2013-11-19 22:11:48 +01:00
|
|
|
z-index: $hoverZ;
|
|
|
|
left: 0;
|
2014-11-10 04:14:38 +01:00
|
|
|
min-width: $sidebarWidth;
|
2013-12-14 09:34:43 +01:00
|
|
|
padding: .25rem .75rem;
|
2013-11-19 22:11:48 +01:00
|
|
|
pointer-events: none;
|
|
|
|
-webkit-font-smoothing: subpixel-antialiased;
|
|
|
|
-webkit-transform: translate3d(0, 0, 0);
|
|
|
|
transform: translate3d(0, 0, 0);
|
2014-11-10 04:14:38 +01:00
|
|
|
@extend %border-box;
|
|
|
|
|
|
|
|
@media #{$mediumScreen} { min-width: $sidebarMediumWidth; }
|
2013-11-19 22:11:48 +01:00
|
|
|
|
2016-01-23 22:12:05 +01:00
|
|
|
> ._list-text { display: inline; }
|
|
|
|
|
2013-11-19 22:11:48 +01:00
|
|
|
&:not(._list-result) {
|
|
|
|
padding-left: 2.75rem;
|
|
|
|
|
|
|
|
&:before { content: none; }
|
|
|
|
}
|
2016-01-23 22:12:05 +01:00
|
|
|
|
|
|
|
._list-reveal, ._list-enable { display: none; }
|
2013-11-19 22:11:48 +01:00
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
//
|
|
|
|
// List picker
|
|
|
|
//
|
|
|
|
|
2016-01-23 18:29:37 +01:00
|
|
|
._list-picker {
|
|
|
|
opacity: 0;
|
|
|
|
transition: .2s;
|
|
|
|
|
|
|
|
&._in { opacity: 1; }
|
|
|
|
._list-item { cursor: pointer; }
|
|
|
|
._list-sub > ._list-item { padding-left: 2.375rem; }
|
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
._list-checkbox {
|
|
|
|
position: absolute;
|
|
|
|
top: .5rem;
|
2016-01-23 18:29:37 +01:00
|
|
|
right: .75rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
transition: .2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-link {
|
|
|
|
display: block;
|
|
|
|
margin-top: .75rem;
|
|
|
|
font-size: .8125rem;
|
|
|
|
text-align: center;
|
|
|
|
@extend %external-link;
|
|
|
|
|
|
|
|
&:after { visibility: hidden; }
|
|
|
|
&:hover:after { visibility: visible; }
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Footer
|
|
|
|
//
|
|
|
|
|
|
|
|
._sidebar-footer {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: $sidebarWidth;
|
2014-11-10 04:14:38 +01:00
|
|
|
background: $sidebarBackground;
|
|
|
|
box-shadow: inset -1px 0 $sidebarBorder;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
@media #{$mediumScreen} { width: $sidebarMediumWidth; }
|
|
|
|
|
2015-08-03 23:08:36 +02:00
|
|
|
._max-width & {
|
|
|
|
left: calc(50% - #{$maxWidth} / 2);
|
|
|
|
@media (max-width: #{$maxWidth}) { left: 0; }
|
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
bottom: 100%;
|
|
|
|
left: 0;
|
|
|
|
right: 1px;
|
|
|
|
height: 1em;
|
2014-11-10 04:14:38 +01:00
|
|
|
background-image: -webkit-linear-gradient(top, rgba($sidebarBackground, 0), rgba($sidebarBackground, .95));
|
|
|
|
background-image: linear-gradient(to bottom, rgba($sidebarBackground, 0), rgba($sidebarBackground, .95));
|
2013-10-24 20:25:52 +02:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
._sidebar-footer-link {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
2015-02-08 23:50:03 +01:00
|
|
|
overflow: hidden;
|
2013-10-24 20:25:52 +02:00
|
|
|
height: 2.5rem;
|
|
|
|
line-height: 1rem;
|
2015-08-03 23:08:36 +02:00
|
|
|
padding: .75rem .25rem .75rem .75rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
font-size: .875em;
|
|
|
|
cursor: pointer;
|
|
|
|
@extend %border-box;
|
|
|
|
|
|
|
|
&, &:hover {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
float: left;
|
|
|
|
margin-right: .625rem;
|
|
|
|
@extend %icon;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
._sidebar-footer-edit {
|
2015-02-08 23:50:03 +01:00
|
|
|
@if $style == 'dark' {
|
|
|
|
&:before { @extend %icon-settings-white; }
|
|
|
|
} @else {
|
|
|
|
&:before { @extend %icon-settings; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
._sidebar-footer-light {
|
|
|
|
float: right;
|
2015-08-03 23:08:36 +02:00
|
|
|
width: 2rem;
|
2015-02-08 23:50:03 +01:00
|
|
|
padding: 0;
|
2015-08-03 23:08:36 +02:00
|
|
|
opacity: .65;
|
2015-02-08 23:50:03 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
float: none;
|
|
|
|
position: absolute;
|
|
|
|
top: .75rem;
|
2015-08-03 23:08:36 +02:00
|
|
|
left: .25rem;
|
2015-02-08 23:50:03 +01:00
|
|
|
|
|
|
|
@if $style == 'dark' {
|
|
|
|
@extend %icon-light-white;
|
|
|
|
} @else {
|
|
|
|
@extend %icon-light;
|
|
|
|
}
|
|
|
|
}
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
2015-08-03 23:08:36 +02:00
|
|
|
._sidebar-footer-layout {
|
|
|
|
float: right;
|
|
|
|
width: 2rem;
|
|
|
|
padding: 0;
|
|
|
|
opacity: .65;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
float: none;
|
|
|
|
position: absolute;
|
|
|
|
top: .75rem;
|
|
|
|
left: .375rem;
|
|
|
|
@if $style == 'dark' {
|
|
|
|
@extend %icon-expand-white;
|
|
|
|
} @else {
|
|
|
|
@extend %icon-expand;
|
|
|
|
}
|
|
|
|
|
|
|
|
._max-width & {
|
|
|
|
@if $style == 'dark' {
|
|
|
|
@extend %icon-contract-white;
|
|
|
|
} @else {
|
|
|
|
@extend %icon-contract;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: #{$maxWidth + .1rem}) { display: none; }
|
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
._sidebar-footer-save {
|
|
|
|
margin-right: 1px;
|
|
|
|
font-weight: bold;
|
2014-11-10 04:14:38 +01:00
|
|
|
background: $noteGreenBackground;
|
|
|
|
box-shadow: inset 0 1px $noteGreenBorder,
|
|
|
|
1px 0 $noteGreenBorder;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
2015-02-08 23:50:03 +01:00
|
|
|
@if $style == 'dark' {
|
|
|
|
&:before { @extend %icon-check-white; }
|
|
|
|
} @else {
|
|
|
|
&:before { @extend %icon-check; }
|
|
|
|
}
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|