Skip to content

Commit

Permalink
fix: Markdown separators overlay TOC
Browse files Browse the repository at this point in the history
- the TOC does now have a background color
- Separator appearance on wide screens is improved

fixes #138
  • Loading branch information
jothepro committed Apr 18, 2024
1 parent a7ec802 commit 9f97817
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Just to give you an idea of how flexible the styling is, click this button:

<div class="alter-theme-button" onclick="toggle_alternative_theme()" onkeypress="if (event.keyCode == 13) toggle_alternative_theme()" tabindex=0>Alter theme</div>

<br><hr>

### Setup

It is recommended to add your own `custom.css` and overwrite the variables there:
Expand Down
20 changes: 11 additions & 9 deletions doxygen-awesome.css
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ div.contents .toc {
border: 0;
border-left: 1px solid var(--separator-color);
border-radius: 0;
background-color: transparent;
background-color: var(--page-background-color);
box-shadow: none;
position: sticky;
top: var(--toc-sticky-top);
Expand Down Expand Up @@ -1988,14 +1988,16 @@ hr {
}

.contents hr {
box-shadow: 100px 0 0 var(--separator-color),
-100px 0 0 var(--separator-color),
500px 0 0 var(--separator-color),
-500px 0 0 var(--separator-color),
1500px 0 0 var(--separator-color),
-1500px 0 0 var(--separator-color),
2000px 0 0 var(--separator-color),
-2000px 0 0 var(--separator-color);
box-shadow: 100px 0 var(--separator-color),
-100px 0 var(--separator-color),
500px 0 var(--separator-color),
-500px 0 var(--separator-color),
900px 0 var(--separator-color),
-900px 0 var(--separator-color),
1400px 0 var(--separator-color),
-1400px 0 var(--separator-color),
1900px 0 var(--separator-color),
-1900px 0 var(--separator-color);
}

.contents img, .contents .center, .contents center, .contents div.image object {
Expand Down

0 comments on commit 9f97817

Please sign in to comment.