org-theme/scss/partials/_toc.scss

212 lines
3.5 KiB
SCSS
Raw Normal View History

2020-11-25 23:22:07 +01:00
#table-of-contents {
2020-11-27 15:16:19 +01:00
position: fixed;
top: 0;
left: 0;
width: $toc-width;
overflow-x: hidden;
overflow-y: scroll;
height: 100%;
background: $color-background-dark;
z-index: 200;
// Table of Contents Header
h2 {
color: $color-text-invert;
2020-11-27 18:35:01 +01:00
background-color: $color-primary;
2020-11-27 15:16:19 +01:00
text-align: center;
padding: 0.8em;
display: block;
font-size: 100%;
z-index: 200;
}
2020-11-25 23:22:07 +01:00
2020-11-27 15:16:19 +01:00
// Links to Headers
a {
display: block;
position: relative;
line-height: 1.5em;
font-size: 90%;
color: $color-text-shadow;
2020-11-25 23:22:07 +01:00
2020-11-27 15:16:19 +01:00
&:hover{
background-color: $color-background-med;
cursor:pointer;
2020-11-25 23:22:07 +01:00
}
2020-11-27 15:16:19 +01:00
}
2020-11-25 23:22:07 +01:00
.close-sidebar {
display: none;
}
2020-11-27 15:16:19 +01:00
// ToC Items
li {
list-style: none;
margin-left: 0px;
}
2020-11-25 23:22:07 +01:00
2020-11-27 15:16:19 +01:00
// Reduce margins
ul {
margin-bottom: 0;
}
2020-11-25 23:22:07 +01:00
2020-11-27 15:16:19 +01:00
// Identation of headings
li {
// First level Headings
a{ padding: 0.4em 1.6em; }
ul li {
// Second level Headings
a{ padding: 0.4em 2.4em; }
ul li {
// Third
a { padding:0.4em 3.0em; }
ul li {
// Fourth
a { padding:0.4em 3.6em; }
2020-11-25 23:22:07 +01:00
}
}
}
}
2020-11-27 15:16:19 +01:00
// Do not display tags in the ToC
.tag {
2020-11-25 23:22:07 +01:00
display: none;
}
2020-11-27 15:16:19 +01:00
}
2020-11-25 23:22:07 +01:00
// Additionnal things to order
ul.nav li ul li {
display: none;
}
ul.nav li ul li ul li {
display: none;
}
ul.nav li.active ul li {
display: inline;
}
ul.nav li.active ul li ul li {
display: inline;
}
ul.nav li.active ul li a {
background-color: #E3E3E3;
color: #8099B0;
border-right:solid 1px #c9c9c9 !important;
}
ul.nav li.active ul li.active a {
background-color: #C9C9C9;
color: black !important;
font-weight: bold !important;
}
2020-11-25 23:22:07 +01:00
ul.nav li.active ul li.active ul li.active a {
color: black !important;
font-weight: bold !important;
display: block !important;
}
2020-11-25 23:22:07 +01:00
ul.nav li.active ul li.active ul li a {
color: #808080 !important;
font-weight: normal !important;
display: block !important;
}
2020-11-26 19:55:57 +01:00
ul.nav li.active ul li ul li a {
display: none !important;
}
2020-11-25 23:22:07 +01:00
ul.nav li ul li ul li ul li {
display: none !important;
}
2020-11-25 23:22:07 +01:00
ul.nav li.active > a {
border-bottom:solid 1px #c9c9c9 !important;
border-right:solid 1px #c9c9c9 !important;
}
2020-11-25 23:22:07 +01:00
ul.nav li.active a {
color: gray !important;
font-weight:bold;
background-color: white;
border-right:solid 0px white !important;
}
2020-11-25 23:22:07 +01:00
ul.nav > li.active > a {
color: black !important;
}
2020-11-25 23:22:07 +01:00
#toggle-sidebar {
display: none;
}
2020-11-25 23:22:07 +01:00
li {
&.divide-top {
border-top:solid 1px #404040;
}
2020-11-25 23:22:07 +01:00
&.divide-bottom {
border-bottom:solid 1px #404040;
}
2020-11-25 23:22:07 +01:00
&.current {
background:#e3e3e3;
2020-11-25 23:22:07 +01:00
a {
color: gray;
border-right: solid 1px #c9c9c9;
padding: 0.4045em 2.427em;
&:hover{
background: #d6d6d6;
}
}
}
2020-11-25 23:22:07 +01:00
a {
// padding:0.4045em 1.618em;
position:relative;
border:none;
padding-left:1.618em -4px;
}
2020-11-25 23:22:07 +01:00
&.on a:hover {
background: #fcfcfc;
}
&.current>a:hover{
background: #fcfcfc;
}
}
2020-11-25 23:22:07 +01:00
li.current ul{
display:block;
}
2020-11-25 23:22:07 +01:00
.local-toc li ul{
display:block;
}
2020-11-25 23:22:07 +01:00
2020-11-27 15:16:19 +01:00
li ul li a{
margin-bottom:0;
color:#b3b3b3;
font-weight:normal;
}