2019-08-30 00:02:35 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
|
2019-11-25 17:00:48 +00:00
|
|
|
.toc {
|
2019-08-30 00:02:35 +00:00
|
|
|
display: none;
|
|
|
|
position: relative;
|
|
|
|
margin: 1em 0;
|
2019-09-11 12:19:47 +00:00
|
|
|
padding: 0.2em 0.5em;
|
2019-08-30 00:02:35 +00:00
|
|
|
background-color: @colorGray15;
|
|
|
|
border: solid 1px @grayLightest;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toctogglecheckbox ~ ul {
|
2020-11-25 20:01:08 +00:00
|
|
|
visibility: hidden;
|
|
|
|
height: 0;
|
2019-08-30 00:02:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toctogglecheckbox:checked ~ ul {
|
2020-11-25 20:01:08 +00:00
|
|
|
visibility: visible;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toctitle {
|
|
|
|
padding: 0 25px 0 32px;
|
|
|
|
|
|
|
|
.mw-ui-icon {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toctogglespan + .mw-ui-icon {
|
|
|
|
top: 8px;
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
2019-08-30 00:02:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toctogglelabel {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 50px;
|
|
|
|
z-index: @z-indexAboveContent;
|
|
|
|
}
|
|
|
|
|
2019-11-25 17:00:48 +00:00
|
|
|
.client-js .toc {
|
2019-08-30 00:02:35 +00:00
|
|
|
.toctitle {
|
|
|
|
@toctitle-vertical-padding: 1.4em / 2;
|
|
|
|
visibility: hidden;
|
|
|
|
background-position: right center;
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: 0;
|
|
|
|
|
|
|
|
h2 {
|
2019-09-11 12:19:47 +00:00
|
|
|
display: inline-block;
|
2020-03-08 03:34:44 +00:00
|
|
|
font-family: @font-family-base;
|
2019-08-30 00:02:35 +00:00
|
|
|
font-size: unit( 18/16, em );
|
2019-09-11 12:19:47 +00:00
|
|
|
vertical-align: middle;
|
2019-08-30 00:02:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tocnumber {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
2020-11-25 20:01:08 +00:00
|
|
|
// Account for the icon spaces left and right.
|
|
|
|
margin: 0 unit( @icon-glyph-size-md / @font-size-minerva-small, em ) 0 32px;
|
|
|
|
// Reset `.client-js .toc > ul`.
|
|
|
|
padding-left: 0;
|
2019-08-30 00:02:35 +00:00
|
|
|
font-size: @font-size-minerva-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
2019-11-25 17:00:48 +00:00
|
|
|
.client-js .toc {
|
2019-08-30 00:02:35 +00:00
|
|
|
// Reset the rule for mobile mode (but not for .client-nojs)
|
|
|
|
display: table;
|
|
|
|
|
|
|
|
.toctitle {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|