Skip to content

Commit ba2591f

Browse files
scrolled toc on horizontal devices
1 parent 59a355e commit ba2591f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scaladoc/resources/dotty_res/styles/theme/components/table-of-content.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
padding: var(--base-spacing);
1212
}
1313

14+
@media (max-height: 600px) and (orientation: landscape){
15+
#toc-container {
16+
position: fixed;
17+
top: 90px;
18+
}
19+
}
20+
1421
.toc-list {
1522
margin-block-start: calc(2 * var(--base-spacing));
1623
margin-block-end: 0;
@@ -35,13 +42,20 @@
3542
left: calc(102 * var(--base-spacing));
3643
}
3744
}*/
45+
@media (max-height: 820px) and (orientation: landscape){
46+
.toc-nav {
47+
max-height: calc(100vh - 200px);
48+
overflow: auto;
49+
}
50+
}
3851

3952
@media (max-width: 768px) {
4053
#toc {
4154
display: none;
4255
}
4356
}
4457

58+
4559
.toc-title {
4660
color: var(--text-primary);
4761
margin-bottom: calc(2 * var(--base-spacing));

0 commit comments

Comments
 (0)