Skip to content

Commit f7a9386

Browse files
authored
Merge pull request #4 from osscar-org/develop
Develop
2 parents a0a33ee + 7d08f21 commit f7a9386

19 files changed

+1780
-18
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Install node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '10.x'
19+
- name: Install Python
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: '3.7'
23+
architecture: 'x64'
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install jupyterlab==2.1.0
27+
python -m pip install ipywidgets
28+
- name: Build the extension
29+
run: |
30+
jlpm && jlpm run build
31+
jupyter labextension install .
32+
python -m jupyterlab.browser_check
33+
- name: Check PyPi and NPM version
34+
run: |
35+
python version_check.py

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ the nbextension:
2727
```bash
2828
jupyter nbextension enable --py [--sys-prefix|--user|--system] widget_code_input
2929
```
30+
There are seven different code themes can be chosen. They are "eclipse",
31+
"idea", "material", "midnight", "monokai", "nord" and "solarized".
32+
You can check the appearance of the code themes at:
33+
34+
[https://codemirror.net/demo/theme.html](https://codemirror.net/demo/theme.html)
35+
3036

3137
# Acknowlegements
3238

css/nord.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* Based on arcticicestudio's Nord theme */
2+
/* https://github.com/arcticicestudio/nord */
3+
4+
.cm-s-nord.CodeMirror { background: #2e3440; color: #d8dee9; }
5+
.cm-s-nord div.CodeMirror-selected { background: #434c5e; }
6+
.cm-s-nord .CodeMirror-line::selection, .cm-s-nord .CodeMirror-line > span::selection, .cm-s-nord .CodeMirror-line > span > span::selection { background: #3b4252; }
7+
.cm-s-nord .CodeMirror-line::-moz-selection, .cm-s-nord .CodeMirror-line > span::-moz-selection, .cm-s-nord .CodeMirror-line > span > span::-moz-selection { background: #3b4252; }
8+
.cm-s-nord .CodeMirror-gutters { background: #2e3440; border-right: 0px; }
9+
.cm-s-nord .CodeMirror-guttermarker { color: #4c566a; }
10+
.cm-s-nord .CodeMirror-guttermarker-subtle { color: #4c566a; }
11+
.cm-s-nord .CodeMirror-linenumber { color: #4c566a; }
12+
.cm-s-nord .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
13+
14+
.cm-s-nord span.cm-comment { color: #4c566a; }
15+
.cm-s-nord span.cm-atom { color: #b48ead; }
16+
.cm-s-nord span.cm-number { color: #b48ead; }
17+
18+
.cm-s-nord span.cm-comment.cm-attribute { color: #97b757; }
19+
.cm-s-nord span.cm-comment.cm-def { color: #bc9262; }
20+
.cm-s-nord span.cm-comment.cm-tag { color: #bc6283; }
21+
.cm-s-nord span.cm-comment.cm-type { color: #5998a6; }
22+
23+
.cm-s-nord span.cm-property, .cm-s-nord span.cm-attribute { color: #8FBCBB; }
24+
.cm-s-nord span.cm-keyword { color: #81A1C1; }
25+
.cm-s-nord span.cm-builtin { color: #81A1C1; }
26+
.cm-s-nord span.cm-string { color: #A3BE8C; }
27+
28+
.cm-s-nord span.cm-variable { color: #d8dee9; }
29+
.cm-s-nord span.cm-variable-2 { color: #d8dee9; }
30+
.cm-s-nord span.cm-variable-3, .cm-s-nord span.cm-type { color: #d8dee9; }
31+
.cm-s-nord span.cm-def { color: #8FBCBB; }
32+
.cm-s-nord span.cm-bracket { color: #81A1C1; }
33+
.cm-s-nord span.cm-tag { color: #bf616a; }
34+
.cm-s-nord span.cm-header { color: #b48ead; }
35+
.cm-s-nord span.cm-link { color: #b48ead; }
36+
.cm-s-nord span.cm-error { background: #bf616a; color: #f8f8f0; }
37+
38+
.cm-s-nord .CodeMirror-activeline-background { background: #3b4252; }
39+
.cm-s-nord .CodeMirror-matchingbracket {
40+
text-decoration: underline;
41+
color: white !important;
42+
}

demos/explanation.png

5.79 KB
Loading

0 commit comments

Comments
 (0)