2020-06-16 02:32:55 +00:00
|
|
|
@import '../variables.less';
|
|
|
|
@import '../mixins.less';
|
|
|
|
|
2020-06-10 22:02:22 +00:00
|
|
|
.toc {
|
|
|
|
position: fixed;
|
2020-06-11 22:31:13 +00:00
|
|
|
z-index: -1; // So that it is below float objects in content
|
2020-06-11 19:42:21 +00:00
|
|
|
top: @header-height;
|
2020-06-11 19:36:26 +00:00
|
|
|
left: 0;
|
2021-01-11 16:45:52 +00:00
|
|
|
max-width: 450px;
|
2020-06-10 22:02:22 +00:00
|
|
|
padding: @margin-side;
|
2021-01-12 20:13:24 +00:00
|
|
|
color: var( --color-base--subtle );
|
2020-06-10 22:02:22 +00:00
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0; // Hide bar on toc
|
|
|
|
}
|
|
|
|
|
|
|
|
&title {
|
|
|
|
h2 {
|
|
|
|
margin: 0;
|
2021-01-12 20:13:24 +00:00
|
|
|
color: var( --color-base--subtle ) !important;
|
|
|
|
font-size: @ui-menu-text;
|
|
|
|
font-weight: normal;
|
|
|
|
letter-spacing: 0.75px;
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-09 20:56:45 +00:00
|
|
|
&toggle {
|
|
|
|
&span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&checkbox:checked ~ ul {
|
|
|
|
display: block !important; // Force display
|
|
|
|
}
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
&.toclevel-2,
|
|
|
|
&.toclevel-3,
|
|
|
|
&.toclevel-4,
|
|
|
|
&.toclevel-5,
|
|
|
|
&.toclevel-6 {
|
2020-06-11 19:36:26 +00:00
|
|
|
border-left: 1px dashed;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin-left: 9px;
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active {
|
2021-01-12 20:13:24 +00:00
|
|
|
color: var( --color-primary );
|
2020-06-10 22:02:22 +00:00
|
|
|
|
|
|
|
> a {
|
|
|
|
border-color: currentColor;
|
2021-01-11 16:45:52 +00:00
|
|
|
color: inherit !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
li {
|
2021-01-12 20:13:24 +00:00
|
|
|
color: var( --color-base );
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
2020-06-11 19:52:05 +00:00
|
|
|
padding-left: 9px;
|
2020-06-11 19:36:26 +00:00
|
|
|
border-left: 3px solid transparent;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: @content-margin-top / 4 0;
|
2021-01-12 20:13:24 +00:00
|
|
|
color: var( --color-base--subtle );
|
2020-06-10 22:02:22 +00:00
|
|
|
|
|
|
|
&:hover {
|
2021-01-12 20:13:24 +00:00
|
|
|
color: var( --color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: var( --color-base--subtle );
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&number {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2020-06-11 19:36:26 +00:00
|
|
|
margin: 0 !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2021-01-11 16:45:52 +00:00
|
|
|
display: block;
|
|
|
|
overflow: visible auto;
|
2020-06-17 02:49:41 +00:00
|
|
|
max-width: ~'calc( (100vw - '@page-width + @margin-side * 4 ~' ) / 2 )';
|
|
|
|
max-height: ~'calc( 100vh - '@header-height * 2 + @margin-side * 4 ~' )';
|
2021-01-11 16:45:52 +00:00
|
|
|
border-left: 1px dashed;
|
|
|
|
margin: @content-margin-top * 0.75 0 0 0 !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
overscroll-behavior: contain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( max-width: @screen3 ) {
|
|
|
|
.toc {
|
|
|
|
z-index: 10;
|
2020-07-04 02:02:12 +00:00
|
|
|
height: 100%;
|
2020-06-10 22:02:22 +00:00
|
|
|
padding: 0;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin-top: -@header-height;
|
2020-11-24 15:32:14 +00:00
|
|
|
transform: translateX( -100% );
|
2020-06-10 22:02:22 +00:00
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
content: unset; // Disable fade
|
|
|
|
}
|
|
|
|
|
2020-08-09 20:56:45 +00:00
|
|
|
&toggle {
|
|
|
|
&span {
|
|
|
|
display: block;
|
|
|
|
font-size: 0 !important;
|
|
|
|
}
|
2020-06-10 22:02:22 +00:00
|
|
|
|
2020-08-09 20:56:45 +00:00
|
|
|
&label {
|
2020-06-10 22:02:22 +00:00
|
|
|
position: fixed;
|
|
|
|
z-index: 7;
|
2020-11-23 05:44:09 +00:00
|
|
|
right: -100vw;
|
2020-06-10 22:02:22 +00:00
|
|
|
bottom: 0;
|
2021-01-11 16:45:52 +00:00
|
|
|
display: block;
|
2020-06-10 22:02:22 +00:00
|
|
|
width: 39px;
|
|
|
|
height: 56px;
|
2021-01-11 16:45:52 +00:00
|
|
|
padding: 0 @margin-side / 2;
|
|
|
|
margin: @margin-side;
|
2021-01-12 20:13:24 +00:00
|
|
|
background-color: var( --background-color-dp-06 );
|
2020-06-10 22:02:22 +00:00
|
|
|
border-radius: 100%;
|
|
|
|
.boxshadow(4);
|
|
|
|
|
|
|
|
&:hover {
|
2021-01-12 20:13:24 +00:00
|
|
|
background-color: var( --background-color-dp-12 );
|
2020-06-10 22:02:22 +00:00
|
|
|
.boxshadow(5);
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
opacity: @opacity-icon-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-12 20:13:24 +00:00
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-dp-02 );
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
.resource-loader-icon;
|
|
|
|
display: block;
|
|
|
|
opacity: @opacity-icon;
|
|
|
|
}
|
|
|
|
}
|
2020-08-09 21:32:12 +00:00
|
|
|
|
2020-08-09 20:57:37 +00:00
|
|
|
&checkbox:not( :checked ) ~ ul {
|
2020-11-23 02:48:42 +00:00
|
|
|
transform: translateX( -300px - @margin-side );
|
2020-08-09 20:56:45 +00:00
|
|
|
}
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&title h2 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
2020-08-09 20:56:45 +00:00
|
|
|
display: block !important; // So that animation is visible
|
2020-06-11 20:33:35 +00:00
|
|
|
max-width: none;
|
2020-08-09 20:56:45 +00:00
|
|
|
height: 100%;
|
2020-06-11 20:06:02 +00:00
|
|
|
max-height: ~'calc( 100vh - '@header-height + @margin-side * 3 ~')';
|
2021-01-11 16:45:52 +00:00
|
|
|
padding: @header-height + @margin-side @margin-side @margin-side * 2 @margin-side / 2 !important; // More scroll spaces
|
2021-01-12 20:13:24 +00:00
|
|
|
border-color: transparent;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 0 !important;
|
2021-01-12 20:13:24 +00:00
|
|
|
background: var( --background-color-dp-16 );
|
2020-08-09 20:56:45 +00:00
|
|
|
border-radius: 0 @border-radius-large @border-radius-large 0;
|
2020-11-24 15:32:14 +00:00
|
|
|
transform: translateX( 100% );
|
2020-06-10 22:02:22 +00:00
|
|
|
transition: @transition-transform;
|
2021-01-11 16:45:52 +00:00
|
|
|
.boxshadow(3);
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
.skin-citizen-dark {
|
2020-06-10 22:02:22 +00:00
|
|
|
.toc {
|
2020-08-09 20:56:45 +00:00
|
|
|
&togglelabel {
|
2020-06-10 22:02:22 +00:00
|
|
|
&:before {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
2020-08-10 03:33:45 +00:00
|
|
|
}
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|