Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update color scheme, branding, and streamline custom CSS #133

Merged
merged 4 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)