Skip to content

Commit b0d0726

Browse files
committed
Improvements to LH sidebar layout
1 parent 151ec92 commit b0d0726

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

mpl_sphinx_theme/static/css/style.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,23 @@ html[data-theme="dark"] {
1414
}
1515

1616
:root {
17-
--pst-color-link-hover: var(--pst-color-secondary);
17+
--pst-color-link-hover: var(--pst-color-secondary);
1818
}
1919

20-
.sidebar-cheatsheets, .sidebar-donate {
21-
margin: 2.75rem 0;
20+
.sidebar-cheatsheets > h3 {
21+
margin-top: 0;
22+
}
23+
24+
.sidebar-cheatsheets > img {
25+
width: 100%;
26+
}
27+
28+
.sidebar-donate > .sd-btn {
29+
width: 100%;
2230
}
2331

2432
#navbar-icon-links {
25-
margin-left: 1.5em;
33+
margin-left: 1.5em;
2634
}
2735

2836
#navbar-icon-links .nav-link {
@@ -32,4 +40,3 @@ html[data-theme="dark"] {
3240
#navbar-icon-links .nav-link:hover {
3341
color: var(--pst-color-primary);
3442
}
35-

0 commit comments

Comments
 (0)