Skip to content

Commit 03d67e4

Browse files
committed
Fixing resizing
1 parent 633e769 commit 03d67e4

File tree

4 files changed

+103
-99
lines changed

4 files changed

+103
-99
lines changed

assets/book.css

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
header {
22
text-align: center;
33
}
4+
45
p.author,p.subtitle,p.date {
56
font-style: italic;
67
font-size: 1.5rem;
@@ -20,21 +21,20 @@ h1.unnumbered {
2021
border-top-style: none;
2122
}
2223

23-
div.row-scrollable {
24-
height: 100vh;
24+
@media (min-width: 768px) {
25+
.col-toc {
26+
position: sticky;
27+
position: -webkit-sticky;
28+
top: 0;
29+
height: 100vh;
30+
overflow-y: scroll;
31+
}
2532
}
2633

27-
div.col-toc {
28-
height: 100%;
29-
overflow-y: scroll;
34+
.col-toc {
3035
font-size: 90%;
3136
}
3237

33-
div.col-body {
34-
height: 100%;
35-
overflow-y: scroll;
36-
}
37-
3838
div.dedication {
3939
text-align: center;
4040
font-style: italic;
@@ -48,6 +48,7 @@ div.sourceCode {
4848
padding: 0.5em;
4949
background-color: #FCFCFC;
5050
}
51+
5152
/* Outlines for text output. */
5253
pre.text {
5354
border-style: solid;

docs/assets/book.css

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
header {
22
text-align: center;
33
}
4+
45
p.author,p.subtitle,p.date {
56
font-style: italic;
67
font-size: 1.5rem;
@@ -20,21 +21,20 @@ h1.unnumbered {
2021
border-top-style: none;
2122
}
2223

23-
div.row-scrollable {
24-
height: 100vh;
24+
@media (min-width: 768px) {
25+
.col-toc {
26+
position: sticky;
27+
position: -webkit-sticky;
28+
top: 0;
29+
height: 100vh;
30+
overflow-y: scroll;
31+
}
2532
}
2633

27-
div.col-toc {
28-
height: 100%;
29-
overflow-y: scroll;
34+
.col-toc {
3035
font-size: 90%;
3136
}
3237

33-
div.col-body {
34-
height: 100%;
35-
overflow-y: scroll;
36-
}
37-
3838
div.dedication {
3939
text-align: center;
4040
font-style: italic;
@@ -48,6 +48,7 @@ div.sourceCode {
4848
padding: 0.5em;
4949
background-color: #FCFCFC;
5050
}
51+
5152
/* Outlines for text output. */
5253
pre.text {
5354
border-style: solid;

0 commit comments

Comments
 (0)