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;
|
2020-12-02 12:04:03 +01:00
|
|
|
padding: 1em;
|
2020-11-27 15:16:19 +01:00
|
|
|
display: block;
|
2020-12-13 22:48:06 +01:00
|
|
|
font-size: 1rem;
|
2020-11-27 15:16:19 +01:00
|
|
|
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;
|
2020-12-13 22:48:06 +01:00
|
|
|
font-size: 0.9rem;
|
2020-11-27 15:16:19 +01:00
|
|
|
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
|
|
|
|
2020-12-01 17:20:53 +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-12-02 12:04:03 +01:00
|
|
|
|
2020-12-02 19:56:30 +01:00
|
|
|
@media (max-width: 768px) {
|
2020-12-02 12:04:03 +01:00
|
|
|
display: none;
|
|
|
|
width: 60%;
|
|
|
|
box-shadow: -25px 0px 10px 32px $black;
|
|
|
|
|
|
|
|
&:target {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.close-sidebar {
|
|
|
|
color: $color-text-invert;
|
|
|
|
display: block;
|
|
|
|
margin-left: 10px;
|
|
|
|
float: right;
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-27 15:16:19 +01:00
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
ul.nav li.active ul li ul li a {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
ul.nav li ul li ul li ul li {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
ul.nav > li.active > a {
|
|
|
|
color: black !important;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
#toggle-sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
li {
|
|
|
|
&.divide-top {
|
|
|
|
border-top:solid 1px #404040;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
&.divide-bottom {
|
|
|
|
border-bottom:solid 1px #404040;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
&.current {
|
|
|
|
background:#e3e3e3;
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +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
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
&.on a:hover {
|
|
|
|
background: #fcfcfc;
|
|
|
|
}
|
|
|
|
&.current>a:hover{
|
|
|
|
background: #fcfcfc;
|
|
|
|
}
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
li.current ul{
|
|
|
|
display:block;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
.local-toc li ul{
|
|
|
|
display:block;
|
|
|
|
}
|
2020-11-25 23:22:07 +01:00
|
|
|
|
2020-11-27 15:16:19 +01:00
|
|
|
|
2020-12-01 17:20:53 +01:00
|
|
|
li ul li a{
|
|
|
|
margin-bottom:0;
|
|
|
|
color:#b3b3b3;
|
|
|
|
font-weight:normal;
|
|
|
|
}
|
2020-12-02 12:04:03 +01:00
|
|
|
|
|
|
|
|
2020-12-02 19:56:30 +01:00
|
|
|
@media (max-width: 768px) {
|
2020-12-02 12:04:03 +01:00
|
|
|
#copyright, #postamble {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#toggle-sidebar {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 1.6em;
|
|
|
|
padding: 1.0em;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
position:fixed;
|
|
|
|
width:100%;
|
|
|
|
left:0;
|
|
|
|
top:0;
|
|
|
|
color: $color-text-invert;
|
|
|
|
background-color: $color-primary;
|
|
|
|
text-align: center;
|
|
|
|
padding: 1em;
|
|
|
|
display: block;
|
2020-12-13 22:48:06 +01:00
|
|
|
font-size: 1rem;
|
2020-12-02 12:04:03 +01:00
|
|
|
z-index: 20;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|