Skip to content

Commit

Permalink
Merge pull request #1579 from opendatacube/fix_dark_theme
Browse files Browse the repository at this point in the history
Fix dark theme rtd styling
  • Loading branch information
Ariana-B authored Apr 18, 2024
2 parents ecbab26 + 807f5e9 commit 9d3c6c1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
padding: 40px;
}

.bd-container {
padding-top: var(--pst-header-height);
}

.section p {
line-height: 1.8rem;
}
Expand Down Expand Up @@ -185,3 +189,24 @@ dt:target, span.highlighted {
max-width: 100%;
font-size: 0.9rem;
}

html[data-theme="dark"] {
--pst-color-text-base: var(--pst-color-text-muted);
--pst-color-sidebar-link-active: var(--pst-color-link);
}

html[data-theme="dark"] .container-xl {
background-color: #3B3B3B;
}

html[data-theme="dark"] .editthispage a {
color: var(--pst-color-link);
}

html[data-theme="dark"] .bd-sidebar {
border-right: 3px solid #ffffff1a;
}

html[data-theme="dark"] .navbar-light>.container-xl {
background-color: var(--pst-color-surface);
}
2 changes: 2 additions & 0 deletions docs/about/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ What's New
v1.8.next
=========

- Update readthedocs stylesheet for dark theme (:pull:`1579`)

v1.8.18 (27th March 2024)
=========================

Expand Down
1 change: 1 addition & 0 deletions wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ stacker
stacspec
stdlib
str
stylesheet
subcommands
sudo
sv
Expand Down

0 comments on commit 9d3c6c1

Please sign in to comment.