Skip to content

Commit 591d32c

Browse files
committed
Add space between level 2 items in left menu/sidebar.
They were too scrunched. Also reconcile installed doc stylesheet with website stylesheet.
1 parent d12b6fa commit 591d32c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

doc/_static/style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ body
9090

9191
/* -14em is size of table of contents/nav */
9292
body > .header { margin: 0 0 0 -14em;}
93+
body > header > div.mobile { display:none; }
9394
body > .header div.label { font-size: 2em; font-weight: bold; margin: 0.67em 0 0.67em 1em;}
9495
body > .footer { margin: 1em 0 1em -14em; clear:both;}
9596
body > .navigation
@@ -165,7 +166,7 @@ a.toc-backref { color: #000000; }
165166
.menu ul ul > li
166167
{
167168
margin: 0;
168-
padding: 0;
169+
padding: 0.5em;
169170
border: none;
170171
border-top: solid thin #dadada;
171172
background-color: inherit;
@@ -311,6 +312,13 @@ div.admonition.caution p.admonition-title {
311312
dt { font-weight: bold; margin-block-start: 1em;}
312313
dt + dd { margin-block-start: 0.25em; }
313314
dd p.first { margin-block-start: 0; }
315+
dd > ul:first-child {
316+
/* reduce indent with list inside dd. I want to reduce
317+
margin-inline-start on dd but :has(> ul:first-child)
318+
doesn't work in firefox yet, so use negative margin
319+
on ul. */
320+
margin-inline-start: -32px;
321+
}
314322

315323
#skiplink { display: block;
316324
margin-block-start: 1em;

website/www/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ a.toc-backref { color: #000000; }
166166
.menu ul ul > li
167167
{
168168
margin: 0;
169-
padding: 0;
169+
padding: 0.5em;
170170
border: none;
171171
border-top: solid thin #dadada;
172172
background-color: inherit;

0 commit comments

Comments
 (0)