94 lines
2.2 KiB
SCSS
94 lines
2.2 KiB
SCSS
/*
|
|
* Table of Contents
|
|
* by @gregfranko
|
|
*/
|
|
.tocify {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* The Table of Contents is composed of multiple nested unordered lists.
|
|
These styles remove the default styling of an unordered list because it is ugly. */
|
|
.tocify ul, .tocify li {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
border: none;
|
|
list-style: none;
|
|
line-height: 1em;
|
|
}
|
|
|
|
/* Top level header elements */
|
|
.tocify-header {
|
|
text-indent: 5px;
|
|
}
|
|
|
|
/* Top level subheader elements.
|
|
These are the first nested items underneath a header element. */
|
|
ul.tocify-subheader {
|
|
text-indent: 0;
|
|
padding-left: 1em;
|
|
font-size: 95%;
|
|
}
|
|
|
|
#toc ul.tocify-subheader {
|
|
display: none;
|
|
}
|
|
|
|
/* Makes the font smaller for all subheader elements. */
|
|
.tocify-subheader li { font-size: 95%; }
|
|
|
|
/* Twitter Bootstrap Override Style */
|
|
.nav-list > li > a, .nav-list .nav-header {
|
|
margin: 0px;
|
|
}
|
|
|
|
/* Twitter Bootstrap Override Style */
|
|
.nav-list > li > a {
|
|
padding: 2px 0px 2px 5px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.nav-list > .active > a, .nav-list > .active > a:hover, .nav-list > .active > a:focus {
|
|
color: #FFF;
|
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
|
|
background-color: #0088CC;
|
|
}
|
|
|
|
// Table of content (toc) nav list
|
|
.nav-list>.active>a, .nav-list>.active>a:hover, .nav-list>.active>a:focus {
|
|
background: var(--color-nav-active-bg);
|
|
color: var(--color-nav-active);
|
|
}
|
|
.nav-list>.active>a strong,
|
|
.nav-list>.active>a:hover strong { color: var(--color-nav-active); background: none; }
|
|
|
|
.nav>li>a:hover, .nav>li>a:focus {
|
|
background: var(--color-toc-hover-bg);
|
|
color: var(--color-toc-hover);
|
|
}
|
|
|
|
.container.detail div.tocify.bigtoc { border-bottom-color: var(--color-gcode-toc-border); }
|
|
.tocify.bigtoc::-webkit-scrollbar { display: none; }
|
|
.custom-fixed-sidebar .tocify::-webkit-scrollbar { display: none; }
|
|
|
|
.tocify.bigtoc,
|
|
.custom-fixed-sidebar .tocify { position: fixed; }
|
|
|
|
.tocify.bigtoc,
|
|
.custom-fixed-sidebar .tocify {
|
|
-webkit-scrollbar { display: none; }
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
// li { line-height: 1em; margin: -1px 0 0; }
|
|
}
|
|
.custom-fixed-sidebar .tocify { position: fixed; }
|
|
.custom-fixed-sidebar .tocify {
|
|
height: 100vh;
|
|
overflow: scroll;
|
|
>ul:last-child { margin-bottom: 80px; }
|
|
}
|
|
.tocify.bigtoc>ul {
|
|
height: 100vh;
|
|
overflow: scroll;
|
|
>li:last-child { margin-bottom: 80px; }
|
|
}
|