Skip to content

Commit

Permalink
Merge pull request #30 from bpuchala/2.X_dark_theme
Browse files Browse the repository at this point in the history
2.X dark theme
  • Loading branch information
bpuchala authored Nov 16, 2023
2 parents 5dca8b0 + 886dab4 commit d272645
Show file tree
Hide file tree
Showing 17 changed files with 1,371 additions and 306 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [2.0a8] - 2023-11-15

### Changed

- Updated docs for PyData Sphinx Theme 0.14.3, particularly dark theme colors and logo

### Fixed

- Fixed broken docs links to xtal.SymOp
- Fixed return type docs

### Deprecated

- The to_json and from_json methods of xtal.Prim, xtal.Structure, and xtal.SymInfo are deprecated in favor of the to_dict / from_dict methods and the builtin json module


## [2.0a7] - 2023-11-14

### Changed
Expand Down
1 change: 1 addition & 0 deletions doc_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
numpydoc
sphinx
sphinx-argparse
sphinx-favicon
sphinx_rtd_theme
sphinxcontrib-bibtex
pydata-sphinx-theme
41 changes: 39 additions & 2 deletions python/doc/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,48 @@
:root[data-theme='light'],
:root[data-theme='dark'] {
:root[data-theme='light'] {
--pst-color-primary: #0072b5;
--pst-color-secondary: #febc15;
--pst-color-link: #0072b5;
--pst-color-inline-code: #0072b5;
--sd-color-card-border-hover: #0072b5;

dt {
background-color: #eaeaea;
}

}

:root[data-theme='dark'] {
--pst-color-primary: #6DC8BF;
--pst-color-secondary: #CBDB2A;
--pst-color-link: #6DC8BF;
--pst-color-inline-code: #6DC8BF;
--sd-color-card-border-hover: #6DC8BF;

dt {
background-color: #6A4729F7;
}

/* note */
.admonition.note > .admonition-title::before, div.admonition.note > .admonition-title::before {
background-color: #8739b3;
}

.admonition.note > .admonition-title::after, div.admonition.note > .admonition-title::after {
color: #c695c5;
content: var(--pst-icon-admonition-note);
}

.admonition.note, div.admonition.note {
border-color: #c695c5;
}

/* deprecated */
--pst-color-danger: #f9e1e4;
--pst-color-danger-bg: #d72d47;
}



/* Fix breadcrumb overlap https://github.com/holoviz/panel/issues/5199 */
.header-article__inner .header-article-item {
height: unset;
Expand Down
91 changes: 91 additions & 0 deletions python/doc/_static/logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d272645

Please sign in to comment.