-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load CSS stylesheets in main notebook
- Loading branch information
1 parent
d92174c
commit 2b87418
Showing
4 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Stylesheets for the Quantum ESPRESSO app | ||
|
||
This folder contains two folders: | ||
|
||
- `scss` - a folder for SCSS-format stylesheets | ||
- `css` - a folder serving as the compilation target for SCSS files | ||
|
||
It is recommended to add SCSS stylesheets in the SCSS folder for functionality and flexibility (see https://sass-lang.com/). | ||
|
||
Compiling SCSS into CSS (in the CSS folder) can be done using: | ||
|
||
- The [compile-hero](https://marketplace.visualstudio.com/items?itemName=Wscats.eno) extension, if using VS Code | ||
- The `sass` [CLI](https://sass-lang.com/install/) | ||
|
||
Stylesheets may be loaded directly from the CSS folder using | ||
|
||
```python | ||
from aiidalab_widgets_base.utils.loaders import load_css_stylesheet | ||
|
||
load_css_stylesheet(package="aiidalab_qe.app.static.styles.css", filename="<stylesheet-name>.css") | ||
``` | ||
|
||
If `filename` is not provided, all CSS stylesheets will be loaded from the `css` package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.output_subarea { | ||
max-width: none !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.output_subarea { | ||
max-width: none !important; | ||
} |