2019-05-20 20:41:39 +02:00
|
|
|
.elv-toc {
|
|
|
|
font-size: 1rem; /* Reset */
|
|
|
|
}
|
2020-08-21 23:27:47 +02:00
|
|
|
.elv-toc details {
|
|
|
|
--details-force-closed: (max-width: 63.9375em); /* 1023px */
|
|
|
|
}
|
|
|
|
.elv-toc details > summary {
|
|
|
|
font-size: 1.375rem; /* 22px /16 */
|
|
|
|
margin-bottom: .5em;
|
|
|
|
}
|
2019-05-20 20:41:39 +02:00
|
|
|
@media (min-width: 64em) { /* 1024px */
|
|
|
|
.elv-toc {
|
|
|
|
position: absolute;
|
2020-08-21 23:27:47 +02:00
|
|
|
left: 3rem;
|
2019-05-20 20:41:39 +02:00
|
|
|
width: 16rem;
|
2020-08-21 23:27:47 +02:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
.elv-toc details > summary {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
.js .elv-toc details > summary {
|
|
|
|
display: none;
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.elv-toc-list {
|
2020-08-21 23:27:47 +02:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
2019-05-20 20:41:39 +02:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2020-08-21 23:27:47 +02:00
|
|
|
margin: 0 0 2.5em;
|
2019-05-20 20:41:39 +02:00
|
|
|
list-style: none;
|
|
|
|
}
|
2020-08-21 23:27:47 +02:00
|
|
|
.elv-toc-list li {
|
|
|
|
font-size: 0.9375em; /* 15px /16 */
|
|
|
|
line-height: 1.466666666667; /* 22px /15 */
|
|
|
|
}
|
2019-05-20 20:41:39 +02:00
|
|
|
/* Nested lists */
|
|
|
|
.elv-toc-list ul {
|
2020-08-21 23:27:47 +02:00
|
|
|
padding: 0 0 .75em 0;
|
|
|
|
margin: 0;
|
2019-05-20 20:41:39 +02:00
|
|
|
list-style: none;
|
|
|
|
}
|
2020-08-21 23:27:47 +02:00
|
|
|
|
|
|
|
/* Menus nested 2 or more deep */
|
|
|
|
.elv-toc-list ul ul {
|
|
|
|
padding-bottom: 0;
|
|
|
|
padding-left: 0.625rem; /* 10px /16 */
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
2020-08-21 23:27:47 +02:00
|
|
|
/* Hide inactive menus 3 or more deep */
|
|
|
|
.elv-toc-list ul ul > li:not(.elv-toc-active) > ul > li:not(.elv-toc-active) {
|
|
|
|
display: none;
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* List items */
|
2020-08-21 23:27:47 +02:00
|
|
|
.elv-toc summary,
|
|
|
|
.elv-toc-list a {
|
|
|
|
padding: .15em .25em;
|
|
|
|
}
|
|
|
|
.elv-toc-list a {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-05-20 20:41:39 +02:00
|
|
|
.elv-toc-list a:not(:hover) {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.elv-toc-list li {
|
2020-08-21 23:27:47 +02:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.elv-toc-list > li {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-basis: 14.375rem; /* 230px /16 */
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
|
|
|
/* Top level links */
|
|
|
|
.elv-toc-list > li > a {
|
|
|
|
color: #222;
|
2020-08-21 23:27:47 +02:00
|
|
|
font-weight: 600;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
margin-bottom: 0.25em; /* 4px /16 */
|
|
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.elv-toc-list > li > a {
|
|
|
|
color: #fff;
|
|
|
|
border-color: #444;
|
|
|
|
}
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Active links */
|
|
|
|
.elv-toc-list li.elv-toc-active > a {
|
2020-08-21 23:27:47 +02:00
|
|
|
background-color: #dff7ff;
|
|
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.elv-toc-list li.elv-toc-active > a {
|
|
|
|
background-color: #353535;
|
|
|
|
}
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
2020-08-21 23:27:47 +02:00
|
|
|
.elv-toc-list ul .elv-toc-active > a:after {
|
|
|
|
content: "";
|
2019-05-20 20:41:39 +02:00
|
|
|
}
|
2020-08-21 23:27:47 +02:00
|
|
|
|
2019-05-20 20:41:39 +02:00
|
|
|
/* Show only active nested lists */
|
|
|
|
.elv-toc-list ul.elv-toc-active,
|
|
|
|
.elv-toc-list li.elv-toc-active > ul {
|
|
|
|
display: block;
|
2020-08-21 23:27:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Footer catgory navigation */
|
|
|
|
.elv-cat-list-active {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|