2013-10-24 20:25:52 +02:00
|
|
|
//
|
|
|
|
// Sidebar
|
|
|
|
//
|
|
|
|
|
|
|
|
._sidebar {
|
|
|
|
position: absolute;
|
2018-08-11 17:17:55 +02:00
|
|
|
z-index: var(--sidebarZ);
|
2017-02-26 23:18:27 +01:00
|
|
|
top: 0;
|
2013-10-24 20:25:52 +02:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
2018-08-11 17:17:55 +02:00
|
|
|
padding-top: var(--headerHeight);
|
|
|
|
background: var(--sidebarBackground);
|
2016-08-07 17:34:38 +02:00
|
|
|
background-clip: content-box;
|
2013-10-24 20:25:52 +02:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
-ms-overflow-style: none; // IE 10 doesn't support pointer-events
|
2017-02-26 15:58:41 +01:00
|
|
|
@extend %border-box;
|
2013-10-24 20:25:52 +02:00
|
|
|
@extend %user-select-none;
|
|
|
|
|
2017-08-06 18:32:02 +02:00
|
|
|
&:focus { outline: none; }
|
|
|
|
|
2017-06-26 00:01:27 +02:00
|
|
|
._overlay-scrollbars & {
|
2017-02-26 23:18:27 +01:00
|
|
|
padding-top: 0;
|
2018-08-11 17:17:55 +02:00
|
|
|
top: var(--headerHeight);
|
2017-02-26 23:18:27 +01:00
|
|
|
}
|
|
|
|
|
2017-06-26 00:01:27 +02:00
|
|
|
body:not(._native-scrollbars) & {
|
|
|
|
&::-webkit-scrollbar { width: 10px; }
|
|
|
|
&::-webkit-scrollbar-track {
|
2018-08-11 17:17:55 +02:00
|
|
|
background: var(--contentBackground);
|
2017-06-26 00:01:27 +02:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border-width: 3px;
|
|
|
|
&:hover, &:active { border-width: 2px; }
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
}
|
2014-04-13 23:02:49 +02:00
|
|
|
|
2017-08-07 22:34:37 +02:00
|
|
|
._sidebar-hidden & {
|
|
|
|
transform: translateX(-95%);
|
|
|
|
transform: translateX(calc(.5rem - 100%));
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not(.no-hover),
|
|
|
|
&.show {
|
|
|
|
transform: none;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
2015-02-17 04:29:06 +01:00
|
|
|
._resizer {
|
|
|
|
position: absolute;
|
2018-08-11 17:17:55 +02:00
|
|
|
z-index: var(--headerZ);
|
|
|
|
top: var(--headerHeight);
|
|
|
|
bottom: var(--headerHeight);
|
|
|
|
left: var(--sidebarWidth);
|
2015-02-17 04:29:06 +01:00
|
|
|
margin-left: -2px;
|
|
|
|
width: 3px;
|
|
|
|
cursor: col-resize;
|
2016-04-10 17:50:24 +02:00
|
|
|
|
2017-02-26 15:58:41 +01:00
|
|
|
._sidebar-hidden & { display: none; }
|
2017-03-04 16:20:44 +01:00
|
|
|
._sidebar-hidden ._sidebar.show ~ & { display: block; }
|
2015-02-17 04:29:06 +01:00
|
|
|
}
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
//
|
|
|
|
// List
|
|
|
|
//
|
|
|
|
|
|
|
|
._list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2018-08-11 17:17:55 +02:00
|
|
|
width: var(--sidebarWidth);
|
|
|
|
box-shadow: inset -1px 0 var(--sidebarBorder);
|
2014-11-10 04:14:38 +01:00
|
|
|
@extend %border-box;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
2018-08-11 17:17:55 +02:00
|
|
|
@include mobile { width: var(--sidebarMediumWidth); }
|
2013-10-24 20:25:52 +02:00
|
|
|
|
2017-02-26 15:58:41 +01:00
|
|
|
._sidebar > & { min-height: 100%; }
|
2016-06-27 00:20:30 +02:00
|
|
|
|
|
|
|
a:focus { outline: 0; }
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
2014-02-13 03:29:50 +01:00
|
|
|
._list-title {
|
2014-04-19 17:05:56 +02:00
|
|
|
position: relative;
|
|
|
|
margin: .5rem 0 0;
|
2017-08-07 23:57:43 +02:00
|
|
|
padding: 0 .75rem 0 2.125rem;
|
2014-04-19 17:05:56 +02:00
|
|
|
line-height: 2rem;
|
2014-02-13 03:29:50 +01:00
|
|
|
font-size: .75rem;
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--textColorLight);
|
2014-02-13 03:29:50 +01:00
|
|
|
text-transform: uppercase;
|
2014-04-19 18:36:38 +02:00
|
|
|
cursor: default;
|
2014-02-13 03:29:50 +01:00
|
|
|
}
|
|
|
|
|
2017-08-06 17:59:50 +02:00
|
|
|
._list-title-link {
|
|
|
|
display: none;
|
|
|
|
float: right;
|
|
|
|
font-weight: normal;
|
|
|
|
text-transform: none;
|
|
|
|
|
|
|
|
._list-title:hover > & { display: block; }
|
|
|
|
}
|
|
|
|
|
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;
|
2018-08-11 17:17:55 +02:00
|
|
|
background: var(--sidebarBackground);
|
|
|
|
box-shadow: inset -1px 0 var(--sidebarBorder);
|
2017-03-05 18:30:57 +01:00
|
|
|
@extend %truncate-text;
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
&, &:hover {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.focus,
|
|
|
|
&.focus:hover,
|
|
|
|
&.active,
|
|
|
|
&.active:hover {
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--focusText);
|
|
|
|
background: var(--focusBackground);
|
|
|
|
box-shadow: inset -1px 0 var(--focusBorder);
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&.active:hover {
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--selectionText);
|
|
|
|
background: var(--selectionBackground);
|
|
|
|
box-shadow: inset -1px 0 var(--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;
|
2016-06-19 23:37:29 +02:00
|
|
|
@extend %doc-icon;
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-23 22:12:05 +01:00
|
|
|
._list-text {
|
|
|
|
display: block;
|
|
|
|
pointer-events: none;
|
2017-03-05 18:30:57 +01:00
|
|
|
@extend %truncate-text;
|
2016-01-23 22:12:05 +01:00
|
|
|
}
|
|
|
|
|
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 {
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--textColorLighter);
|
2015-02-08 20:46:08 +01:00
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
._list-disabled:hover > & { display: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-enable {
|
|
|
|
display: none;
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--linkColor);
|
2015-02-08 20:46:08 +01:00
|
|
|
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 {
|
2017-08-06 17:01:52 +02:00
|
|
|
padding-left: 2.125rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
._list-disabled {
|
|
|
|
@extend %_list-dir;
|
|
|
|
|
2018-08-11 17:17:55 +02:00
|
|
|
&, &:hover { color: var(--textColorLight); }
|
2013-10-24 20:25:52 +02:00
|
|
|
&:before { opacity: .7; }
|
|
|
|
}
|
|
|
|
|
|
|
|
._list-arrow {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: .25rem;
|
2017-08-06 17:01:52 +02:00
|
|
|
padding: .5rem .375rem .5rem .5rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2013-10-24 20:25:52 +02:00
|
|
|
cursor: pointer;
|
2018-08-11 17:17:55 +02:00
|
|
|
fill: var(--absolute);
|
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;
|
|
|
|
}
|
|
|
|
|
2017-08-06 17:01:52 +02:00
|
|
|
.open > &, .open-title > & {
|
|
|
|
-webkit-transform: rotate(90deg);
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
2013-10-24 20:25:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
._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; }
|
2017-09-09 18:29:08 +02:00
|
|
|
> ._list-disabled { padding-left: 3.75rem; }
|
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 {
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--linkColor);
|
2013-10-24 20:25:52 +02:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--linkColorHover);
|
2013-10-24 20:25:52 +02:00
|
|
|
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;
|
2018-08-11 17:17:55 +02:00
|
|
|
background: var(--transparentSelectionText);
|
|
|
|
box-shadow: 0 -3px var(--transparentSelectionText), // top line
|
|
|
|
0 3px var(--transparentSelectionText); // 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;
|
2018-08-11 17:17:55 +02:00
|
|
|
color: var(--textColorLight);
|
2014-08-23 23:51:40 +02:00
|
|
|
|
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;
|
2018-08-11 17:17:55 +02:00
|
|
|
z-index: var(--hoverZ);
|
2013-11-19 22:11:48 +01:00
|
|
|
left: 0;
|
2018-08-11 17:17:55 +02:00
|
|
|
min-width: var(--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;
|
|
|
|
|
2018-08-11 17:17:55 +02:00
|
|
|
@include mobile { min-width: var(--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 {
|
|
|
|
._list-item { cursor: pointer; }
|
|
|
|
._list-sub > ._list-item { padding-left: 2.375rem; }
|
|
|
|
}
|
|
|
|
|
2017-08-07 17:32:09 +02:00
|
|
|
._list-picker-head {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
position: -webkit-sticky;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
|
|
|
margin-right: 1px;
|
|
|
|
padding: .5rem .75rem .25rem .75rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
font-size: .75rem;
|
2018-08-11 17:17:55 +02:00
|
|
|
font-weight: var(--bolderFontWeight);
|
|
|
|
color: var(--textColorLight);
|
2017-08-07 17:32:09 +02:00
|
|
|
text-transform: uppercase;
|
2018-08-11 17:17:55 +02:00
|
|
|
background: linear-gradient(to bottom, var(--sidebarBackground), var(--sidebarBackground) 75%, var(--transparentSidebarBackground));
|
2017-08-07 17:32:09 +02:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
._list-link {
|
|
|
|
display: block;
|
2017-02-26 15:58:41 +01:00
|
|
|
padding: .75rem 0;
|
2013-10-24 20:25:52 +02:00
|
|
|
font-size: .8125rem;
|
|
|
|
text-align: center;
|
|
|
|
@extend %external-link;
|
|
|
|
|
|
|
|
&:after { visibility: hidden; }
|
|
|
|
&:hover:after { visibility: visible; }
|
|
|
|
}
|