-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize
static
folder and add pre-loaded stylesheets (#772)
This PR reorganizes the static folder with dedicated subfolders for templates and styles. The styles folder holds stylesheets that are automatically loaded (using a new `aiidalab-widgets-base` utility function) in the main notebook.
- Loading branch information
1 parent
772878b
commit e492404
Showing
13 changed files
with
48 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
build/ | ||
export/ | ||
.do-not-setup-on-localhost | ||
|
||
.mypy_cache/ | ||
|
||
# Sphinx documentation | ||
docs/html | ||
|
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
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
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,13 @@ | ||
# Stylesheets for the Quantum ESPRESSO app | ||
|
||
This folder contains `css` stylesheets. These can be loaded from the styles folder using | ||
|
||
```python | ||
from aiidalab_widgets_base.utils.loaders import load_css | ||
|
||
load_css(css_path="src/aiidalab_qe/app/static/styles") # load all stylesheets in the styles folder | ||
|
||
# or | ||
|
||
load_css(css_path="src/aiidalab_qe/app/static/styles/<stylesheet>.css") # load a single stylesheet | ||
``` |
Empty file.
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,8 @@ | ||
/* | ||
Override Jupyter width limitation to | ||
make apps take full notebook width | ||
*/ | ||
.output_subarea { | ||
max-width: none !important; | ||
} | ||
/* end override */ |
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.