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 and Ariana Barzinpour committed Apr 18, 2024
1 parent 96378e7 commit 8e17d13
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
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
Expand Up @@ -66,6 +66,8 @@ v1.9.0-rc1 (27th March 2024)
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
Expand Up @@ -441,6 +441,7 @@ stacker
stacspec
stdlib
str
stylesheet
subcommands
sudo
sv
Expand Down

0 comments on commit 8e17d13

Please sign in to comment.