Adds dynamic TOC menu for plugins page
This commit is contained in:
parent
597a492cdf
commit
1003f6a0f2
@ -103,11 +103,13 @@ h2:target {
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 2em;
|
||||
margin-top: 1.5em;
|
||||
padding-top: .5em;
|
||||
color: black;
|
||||
font-weight: 500;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.1em;
|
||||
font-weight: 500;
|
||||
@ -476,9 +478,14 @@ table.plugins td:first-child a {
|
||||
padding-bottom: .333em;
|
||||
}
|
||||
|
||||
#toc-copy hr {
|
||||
background-color: transparent;
|
||||
margin: 0 0 .5em;
|
||||
}
|
||||
|
||||
#toc-copy ul {
|
||||
display: none;
|
||||
list-style: none;
|
||||
display: none;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#toc-copy ul li {
|
||||
@ -676,6 +683,11 @@ table.plugins td:first-child a {
|
||||
background: rgba(255,255,255,0.9);
|
||||
}
|
||||
|
||||
.plugins-page #toc-copy h4:hover + ul:after,
|
||||
.plugins-page #toc-copy ul:hover:after {
|
||||
width: 17em;
|
||||
}
|
||||
|
||||
#toc-copy h4:hover, #toc-copy h4.hover {
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
|
@ -2,7 +2,7 @@
|
||||
var tocCopy = document.createElement('div');
|
||||
tocCopy.id = 'toc-copy';
|
||||
|
||||
var toc = document.querySelector('.api-page #toc');
|
||||
var toc = document.querySelector('#toc');
|
||||
|
||||
if (toc) {
|
||||
tocCopy.innerHTML = toc.innerHTML;
|
||||
|
Loading…
Reference in New Issue
Block a user