Skip to content

Commit 41631c8

Browse files
committed
update styling of the sidebar
1 parent 54c3d99 commit 41631c8

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

layouts/templates/with-zls-docs.shtml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,39 +41,36 @@
4141

4242
#sidebar summary {
4343
border-top: 1px solid var(--border-color);
44-
padding: 0.5rem 0;
45-
padding-left: 0.5rem;
44+
padding: 0.5rem 0.5rem;
4645
font-weight: bold;
4746
cursor: default;
4847
}
4948

5049
#sidebar ul {
5150
list-style: none;
52-
padding: 0;
53-
margin: 0;
51+
padding-left: 0.25rem;
52+
margin: 0 0 0.5rem 0.75rem;
53+
border-left: 1px solid var(--border-color);
5454
}
5555

5656
#sidebar a {
5757
display: block;
58-
text-decoration: none;
59-
padding: 0.5rem 0;
60-
padding-left: 0.5rem;
58+
padding: 0.5rem;
6159
color: inherit;
6260
}
6361

64-
#sidebar ul a {
65-
padding-left: 1rem;
62+
#sidebar .selected {
63+
text-decoration: underline;
6664
}
6765

68-
#sidebar a:hover,
69-
#sidebar .selected,
70-
#sidebar details > summary:hover {
66+
#sidebar a:hover,
67+
#sidebar details > summary:hover {
7168
background-color: var(--tertiary-background-color);
7269
}
7370

7471
#sidebar-content {
7572
position: sticky;
76-
top: 100px;
73+
top: 80px;
7774
}
7875

7976
#footer {

0 commit comments

Comments
 (0)