Skip to content

Commit

Permalink
Update color scheme, branding, and streamline custom CSS (#133)
Browse files Browse the repository at this point in the history
* update footer text

* remove custom.css file leftover from JB era

* tidy up custom css and add new color scheme info

* formatting
  • Loading branch information
kafitzgerald authored Oct 25, 2024
1 parent 85b93f4 commit be45760
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 37 deletions.
3 changes: 0 additions & 3 deletions _static/custom.css

This file was deleted.

23 changes: 11 additions & 12 deletions _static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@
min-width: 50px;
top: 50%;
transform: translateY(-50%);

}

/* override the default background image behavior */
.sd-card-img {
height: auto;
}

/* override toc css */
/* controls dropdown icon color */
.bd-toc-item.active {
margin-bottom: 1rem;
color: #012169;
/* mathjax */
div.math, span.math {
align-items: baseline;
}

/* controls sidebar header color */
.caption-text {
color: #012169;
html[data-theme="light"] {
--pst-color-primary: #1A658F;
--pst-color-secondary: #012169;
--pst-color-table-row-hover-bg: #C3D7EE;
}

/* mathjax */
div.math, span.math {
align-items: baseline;
html[data-theme="dark"] {
--pst-color-primary: #5A98C5;
--pst-color-secondary: #A8C700;
--pst-color-table-row-hover-bg: #53565A;
}
15 changes: 0 additions & 15 deletions _static/theme_overrides.css

This file was deleted.

8 changes: 1 addition & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
use_repository_button=True,
use_issues_button=True,
home_page_in_toc=False,
extra_footer="<em>The National Center for Atmospheric Research is sponsored by the National Science Foundation. Any opinions, findings and conclusions or recommendations expressed in this material do not necessarily reflect the views of the National Science Foundation.</em>",
extra_footer="<em>This material is based upon work supported by the NSF National Center for Atmospheric Research, a major facility sponsored by the U.S. National Science Foundation and managed by the University Corporation for Atmospheric Research. Any opinions, findings and conclusions or recommendations expressed in this material do not necessarily reflect the views of the U.S. National Science Foundation.</em>",
)

# Add analytics
Expand Down Expand Up @@ -387,9 +387,3 @@

# generate warning for all invalid links
# nitpicky = True


# Allow for changes to be made to the css in the theme_overrides file
def setup(app):
app.add_css_file('theme_overrides.css')
# app.connect("builder-inited", update_gallery)

0 comments on commit be45760

Please sign in to comment.