Skip to content

Commit

Permalink
Avoid sidebar overlapping the comment section
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Sep 1, 2022
1 parent c045918 commit d1ec6d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/insipid_sphinx_theme/insipid/static/insipid.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -737,12 +737,14 @@ div.sphinxsidebar {

#sidebar-checkbox:checked ~ div.document,
#sidebar-checkbox:checked ~ .relbar,
#sidebar-checkbox:checked ~ .articleComments,
#sidebar-checkbox:checked ~ footer {
margin-{{ sidebar_side }}: var(--sidebar-width);
}

body:not(.sidebar-resizing) div.document,
body:not(.sidebar-resizing) .relbar,
body:not(.sidebar-resizing) .articleComments,
body:not(.sidebar-resizing) footer {
transition: margin-{{ sidebar_side }} {{ theme_sidebar_transition }};
}
Expand Down Expand Up @@ -1174,6 +1176,7 @@ div.viewcode-block:target {
@media only screen and (max-width: {{ theme_sidebar_overlay_width|todim }}) {
#sidebar-checkbox:checked ~ div.document,
#sidebar-checkbox:checked ~ .relbar,
#sidebar-checkbox:checked ~ .articleComments,
#sidebar-checkbox:checked ~ footer {
margin-{{ sidebar_side }}: 0;
}
Expand Down

0 comments on commit d1ec6d6

Please sign in to comment.