aboutsummaryrefslogtreecommitdiff
path: root/docs/_static
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_static')
-rw-r--r--docs/_static/style.css20
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index b4266464..fa2821ad 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -255,7 +255,7 @@ footer a {
aside {
grid-area: s;
font-size: 14px;
- line-height: 1.5em;
+ line-height: 1.75em;
top: 0;
position: -webkit-sticky; /* safari */
position: sticky;
@@ -303,7 +303,7 @@ aside h3 {
#sidebar ul {
list-style: none;
- margin: 1em 1em 2em 0;
+ margin: 1em 2em 2em 1em;
padding: 0;
}
@@ -926,6 +926,7 @@ div.code-block-caption {
top: 1em;
height: calc(100vh - 1em);
overflow-y: auto;
+ margin: 1em;
}
#sidebar a {
@@ -933,11 +934,24 @@ div.code-block-caption {
}
.active {
- background-color: var(--active-toc);
+ background-color: transparent;
border-left: none;
position: relative;
}
+ .active::before {
+ content: "";
+ display: inline-block;
+ background-color: var(--active-toc);
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: calc(100% + 0.5em);
+ border-radius: 4px;
+ z-index: -1;
+ }
+
#sidebar a:hover {
color: var(--nav-hover-text);
}