Skip to content

Commit f5521c8

Browse files
fixed rwd
1 parent 2e488cf commit f5521c8

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#toc {
22
display: flex;
33
flex-direction: column;
4-
padding: 0 calc(1 * var(--base-spacing));
5-
width: calc(29 * var(--base-spacing));
4+
margin-left: calc(6 * var(--base-spacing));
5+
width: 232px;
66
}
77

88
#toc-container {
9-
position: absolute;
9+
width: 232px;
1010
}
1111

1212
#toc ul {
@@ -34,7 +34,7 @@
3434
}
3535
}
3636

37-
@media (max-width: 1436px) {
37+
@media (max-width: 1467px) {
3838
#toc {
3939
margin-left: calc(8.5 * var(--base-spacing));
4040
margin-right: calc(8.5 * var(--base-spacing));
@@ -57,11 +57,6 @@
5757
}
5858

5959
@media (max-width: 1024px) {
60-
#toc {
61-
margin-left: calc(6 * var(--base-spacing));
62-
margin-right: 0;
63-
}
64-
6560
#toc.sidebar-shown {
6661
display: none;
6762
}

scaladoc/resources/dotty_res/styles/theme/layout/content.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
display: flex;
99
flex-flow: row;
1010
color: var(--text-primary);
11+
-webkit-transition: width 0.3s ease-in-out;
12+
-moz-transition: width 0.3s ease-in-out;
13+
-o-transition: width 0.3s ease-in-out;
14+
transition: width 0.3s ease-in-out;
1115
}
1216

17+
1318
#content > div:first-child {
1419
overflow: clip;
1520
}
@@ -44,7 +49,7 @@
4449
}
4550
}
4651

47-
@media (max-width: 1436px) {
52+
@media (max-width: 1467px) {
4853
#content {
4954
margin-left: 0;
5055
width: calc(100% - calc(56 * var(--base-spacing)));

scaladoc/resources/dotty_res/styles/theme/layout/leftMenu.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@media (max-width: 1024px) {
2525
#leftColumn {
2626
left: calc(-39 * var(--base-spacing));
27+
transition: right 0.2s linear;
2728
}
2829

2930
#leftColumn.show {

0 commit comments

Comments
 (0)