Skip to content

Commit

Permalink
update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed Apr 19, 2024
1 parent d89c0d3 commit 5aa3a64
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 9 deletions.
56 changes: 47 additions & 9 deletions _episodes/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ img {
html[data-theme="light"] {
--pst-color-primary: #ed1c24;
--pst-color-warning: #ed1c24;
--pst-heading-color: #ed1c24;
--pst-color-primary-highlight: #bc151b;
--pst-color-secondary: #1d35e7;
--pst-color-secondary-highlight: #3e51e3;
--pst-color-secondary: #1A1A1A;
--pst-color-secondary-highlight: #222222;

}

Expand All @@ -19,8 +20,10 @@ html[data-theme="dark"] {
--pst-color-warning: #ed1c24;
--pst-color-primary-highlight: #bc151b;
--pst-color-background: #1A1A1A;
--pst-color-secondary: #1d35e7;
--pst-color-secondary-highlight: #3e51e3;
--pst-color-on-background: #222222;
--pst-color-surface: #222222;
--pst-color-secondary: #ffffff;
--pst-color-secondary-highlight: #ffffff;


}
Expand All @@ -38,6 +41,14 @@ html[data-theme="dark"] a {
color: #ffffff;
}

html[data-theme="light"] a {
color: #ed1c24;
}

html[data-theme="light"] a:visited {
color: #ed1c24;
}

html[data-theme="dark"] .reference.external {
text-decoration: underline;

Expand Down Expand Up @@ -106,17 +117,27 @@ img:not(.logo__image, .footer_logo) {
transition: color .25s,background-color .25s,border-color .25s;
}

.admonition.overview>.admonition-title:after, div.admonition.overview>.admonition-title:after {
position: absolute;
left: .6rem;
width: 1rem;
height: 1rem;
color: #ffc107;
font-family: Font Awesome\ 5 Free;
font-weight: 900;
content: "\f128";
}

/* Overview admonition icon */
.admonition.overview>.admonition-title:after, div.admonition.overview>.admonition-title:after,
.admonition.overview>.admonition-title:before, div.admonition.overview>.admonition-title:before {
position: absolute;
left: .6rem;
width: 1rem;
height: 1rem;
color: #ffc107;
background-color: #ffc10700;
font-family: Font Awesome\ 5 Free;
font-weight: 900;
content: "\f128";
}

/* day-overview admonition icon */
Expand Down Expand Up @@ -146,7 +167,6 @@ img:not(.logo__image, .footer_logo) {
}

/* Exercise Admonition Icon */
.admonition.exercise>.admonition-title:before, div.admonition.exercise>.admonition-title:before,
.admonition.exercise>.admonition-title:after, div.admonition.exercise>.admonition-title:after {
position: absolute;
left: .6rem;
Expand All @@ -158,8 +178,18 @@ img:not(.logo__image, .footer_logo) {
content: "\f303";
}


.admonition.exercise>.admonition-title:before, div.admonition.exercise>.admonition-title:before,
.admonition.solution>.admonition-title:before, div.admonition.solution>.admonition-title:before{
position: absolute;
left: .6rem;
width: 1rem;
height: 1rem;
color: #fd7e14;
background-color: #fd7e1400;
}

/* Solution Left Icon */
.admonition.solution>.admonition-title:before, div.admonition.solution>.admonition-title:before,
.admonition.solution>.admonition-title:after, div.admonition.solution>.admonition-title:after {
position: absolute;
left: .6rem;
Expand Down Expand Up @@ -199,7 +229,15 @@ img:not(.logo__image, .footer_logo) {
}

/* Key Admonition Icon*/
.admonition.key>.admonition-title:before, div.admonition.key>.admonition-title:before,
.admonition.key>.admonition-title:before, div.admonition.key>.admonition-title:before {
position: absolute;
left: .6rem;
width: 1rem;
height: 1rem;
color: #00A300;
background-color: #00A30000;
}

.admonition.key>.admonition-title:after, div.admonition.key>.admonition-title:after {
position: absolute;
left: .6rem;
Expand Down
5 changes: 5 additions & 0 deletions _episodes/_templates/molssi_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
<p>Funded by the National Science Foundation
<a href="https://nsf.gov/awardsearch/showAward?AWD_ID=1547580">OAC-1547580</a> and
<a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2136142">CHE-2136142.</a></p>
<p> The MolSSI Best Practices Workshop is licesened under a <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0 International License.</a>
You are free to adapt and share this material with attribution.
We'd also appreciate you letting us know if you use the material by emailing <a href="mailto:[email protected]">[email protected]</a>.
</p>


{% if show_sphinx %}
<p class="sphinx-version">
Expand Down

0 comments on commit 5aa3a64

Please sign in to comment.