Skip to content

Commit b90be72

Browse files
committed
adopt common files - Makefile.book2 and styles_jb2.css
1 parent 5e5e7dc commit b90be72

File tree

3 files changed

+51
-22
lines changed

3 files changed

+51
-22
lines changed

notebooks/Makefile.book2

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# in development, use myst start
22

33
book:
4-
myst build
4+
myst build --execute
5+
6+
book-dev:
7+
myst start --execute
58

69
book-clean:
710
rm -rf _build
811

9-
.PHONY: book book-clean
12+
.PHONY: book book-dev book-clean

notebooks/_static/style.css

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
* as well as other miscellanous tweaks
88
*/
99

10-
/* use more horizontal space when available
11-
* this is otherwise arbitrarily set to 88rem
12-
*/
13-
1410
.primary-scrollbar {
1511
/* background: var(--jp-border-color3); */
1612
div.w-full {
@@ -42,6 +38,29 @@
4238
}
4339
}
4440

41+
/* not too much space around lists */
42+
/* a paragraph that is just above a list should not have a bottom margin
43+
* thanks SO
44+
* https://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-selector
45+
*/
46+
article main {
47+
p:has(+ :is(ol, ul)) {
48+
margin-bottom: 0px !important;
49+
}
50+
p + :is(ol, ul) {
51+
margin-top: 0px !important;
52+
}
53+
54+
li > ul {
55+
margin-top: 0px !important;
56+
}
57+
}
58+
59+
.article :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)) {
60+
margin-bottom: 0.25em;
61+
}
62+
63+
4564
/* @media (min-width: 960px) {
4665
.bd-page-width {
4766
max-width: initial !important;
@@ -55,12 +74,6 @@
5574
} */
5675

5776

58-
/* not too much space around lists */
59-
/* :is(.bd-container, .myst) *+ :is(ol, ul), */
60-
/* a paragraph that is just above a list should not have a bottom margin
61-
* thanks SO
62-
* https://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-selector
63-
*/
6477
/* :is(.bd-container, .myst) p:has(+ :is(ol, ul)) {
6578
margin-bottom: initial !important;
6679
}

notebooks/_static/style_jb2.css

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
* as well as other miscellanous tweaks
77
*/
88

9-
/* use more horizontal space when available
10-
* this is otherwise arbitrarily set to 88rem
11-
*/
12-
139
.primary-scrollbar {
1410
/* background: var(--jp-border-color3); */
1511
div.w-full {
@@ -41,6 +37,29 @@
4137
}
4238
}
4339

40+
/* not too much space around lists */
41+
/* a paragraph that is just above a list should not have a bottom margin
42+
* thanks SO
43+
* https://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-selector
44+
*/
45+
article main {
46+
p:has(+ :is(ol, ul)) {
47+
margin-bottom: 0px !important;
48+
}
49+
p + :is(ol, ul) {
50+
margin-top: 0px !important;
51+
}
52+
53+
li > ul {
54+
margin-top: 0px !important;
55+
}
56+
}
57+
58+
.article :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)) {
59+
margin-bottom: 0.25em;
60+
}
61+
62+
4463
/* @media (min-width: 960px) {
4564
.bd-page-width {
4665
max-width: initial !important;
@@ -54,12 +73,6 @@
5473
} */
5574

5675

57-
/* not too much space around lists */
58-
/* :is(.bd-container, .myst) *+ :is(ol, ul), */
59-
/* a paragraph that is just above a list should not have a bottom margin
60-
* thanks SO
61-
* https://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-selector
62-
*/
6376
/* :is(.bd-container, .myst) p:has(+ :is(ol, ul)) {
6477
margin-bottom: initial !important;
6578
}

0 commit comments

Comments
 (0)