Skip to content

Commit

Permalink
update css
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu0619 committed May 17, 2024
1 parent 582070a commit 021c11e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion auroris/curation/_curator.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def to_json(self, path: str):
path: The destination to save to
"""
serialization = self.model_dump(exclude="steps")
# # save steps in defined order
# remove data_path
if self.data_path is None:
serialization.pop("data_path")
# save steps in defined order
serialization["steps"] = [{step.name: step.model_dump()} for step in self.steps]
with fsspec.open(path, "w") as f:
json.dump(serialization, f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
For a list of all available variables, see
https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/main/_colors.scss
*/
--polaris-primary: hsla(236, 100%, 19%, 1.0);
--polaris-secondary: hsla(290, 61%, 43%, 1.0);
--polaris-ternary: hsla(236, 100%, 9%, 1.0);
--auroris-primary: rgb(36, 82, 97);
--auroris-secondary: rgb(70, 201, 190);
--auroris-ternary: rgb(0, 61, 94);
}

/* Change the header background to use a gradient */
.md-header {
background-image: linear-gradient(to right, var(--polaris-secondary), var(--polaris-primary));
background-image: linear-gradient(to right, var(--auroris-secondary), var(--auroris-primary));
}

/* Change the footer background to use a gradient */
.md-footer {
background-image: linear-gradient(to right, var(--polaris-primary), var(--polaris-ternary));
background-image: linear-gradient(to right, var(--auroris-primary), var(--auroris-ternary));
}

/* Change the tabs background to use a gradient */
.md-tabs {
background-image: linear-gradient(to right, #F4F6F9, #dfc3e2);
color: var(--polaris-ternary);
background-image: linear-gradient(to right, #F4F6F9, #d7f2c3);
color: var(--auroris-ternary);
}

/* Remove the `In` and `Out` block in rendered Jupyter notebooks */
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ nav:
- Stereoisomer AC: api/actions/stereo_ac.md
- Functional: api/functional.md
- Visualization: api/visualization.md
- Types: api/types.md
- Community: https://discord.gg/vBFd8p6H7u
- Polaris Hub: https://polarishub.io/

Expand Down

0 comments on commit 021c11e

Please sign in to comment.