Skip to content

Commit

Permalink
fix: darkmode tags
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfrg committed Sep 24, 2023
1 parent b75a13b commit 31f96ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ nav:
- Home: index.md
- Notebook page: notebook.ipynb
- Python file: python_script.py

plugins:
- mkdocs-jupyter
```
Expand Down Expand Up @@ -216,7 +215,8 @@ plugins:

### RequireJS

By default RequireJS is not loaded. You can enable it with:
By default RequireJS is not loaded. This is required for Plotly.
You can enable it with:

```yml
plugins:
Expand Down Expand Up @@ -292,7 +292,7 @@ Create a `main.html` file like:

Any markdown specific features such as
[admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/)
wont work with mkdocs-jupyter because those features are not supported by
won't work with mkdocs-jupyter because those features are not supported by
Jupyter itself and we use [nbconvert](https://nbconvert.readthedocs.io/) to make
the conversion.

Expand Down
1 change: 1 addition & 0 deletions demo/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ plugins:
- search
- mkdocs-jupyter:
execute: false
include_requirejs: true

extra:
analytics:
Expand Down
12 changes: 11 additions & 1 deletion js/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,19 @@
}
}

// Material dark theme
[data-md-color-scheme="slate"] {
.clipboard-copy-icon {
color: #fff !important;
color: #555 !important;
}

.celltoolbar {
background: #333 !important;
}

.celltoolbar .tags_button_container .tag-container .cell-tag {
background-color: transparent !important;
border: 1px solid #666 !important;
}

table.dataframe {
Expand Down

0 comments on commit 31f96ea

Please sign in to comment.