Skip to content

Commit

Permalink
Merge branch 'fix-rtd-css' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed May 22, 2024
2 parents d8afdc8 + 5ee3d5a commit 3ddb095
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 189 deletions.
2 changes: 1 addition & 1 deletion doc/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ create-missing = false
# [output.html] must be the last table so that .readthedocs.yaml can easily add a key to it
[output.html]
git-repository-url = "https://github.com/glotzerlab/software"
additional-css = ["rtd.css"]
additional-css = ["rtd-mdbook.css"]
24 changes: 24 additions & 0 deletions doc/rtd-mdbook.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Use mdbook theme colors. */

#mdbook-ad-placement .ethical-sidebar {
border: none;
box-shadow: none;
background-color: var(--sidebar-bg);
}

#mdbook-ad-placement .ethical-sidebar:hover {
background-color: var(--theme-hover);
}

#mdbook-ad-placement .ethical-sidebar a {
color: var(--sidebar-non-existant);
}

#sidebar #mdbook-ad-placement .ethical-sidebar .ethical-callout {
color: var(--sidebar-non-existant);
}

/* Multiple id selectors and !important are needed to override the !important in the injected CSS */
#sidebar #mdbook-ad-placement .ethical-sidebar .ethical-callout a {
color: var(--sidebar-non-existant) !important;
}
187 changes: 0 additions & 187 deletions doc/rtd.css

This file was deleted.

2 changes: 1 addition & 1 deletion doc/theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<div class="sidebar-scrollbox">
{{#toc}}{{/toc}}
<div
id="sidebar-ad-placement"
id="mdbook-ad-placement"
class="flat"
data-ea-publisher="readthedocs"
data-ea-type="readthedocs-sidebar"
Expand Down

0 comments on commit 3ddb095

Please sign in to comment.