File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ table thead td {
37
37
font-weight : 700 ;
38
38
}
39
39
.sidebar {
40
- position : absolute ;
40
+ position : fixed ;
41
41
left : 0 ;
42
42
top : 0 ;
43
43
bottom : 0 ;
@@ -99,7 +99,6 @@ table thead td {
99
99
}
100
100
.page-wrapper {
101
101
position : absolute;
102
- overflow-y : auto;
103
102
left : 315px ;
104
103
right : 0 ;
105
104
top : 0 ;
@@ -134,7 +133,14 @@ table thead td {
134
133
left : 0 ;
135
134
bottom : 0 ;
136
135
padding-right : 15px ;
137
- overflow-y : auto;
136
+ }
137
+ @media only screen and (max-width : 400px ) {
138
+ .page {
139
+ /* Only prevent horizontal scrolling on screens with less than 100px for the content
140
+ A better way would be to somehow prevent horizontal scrolling all the time, but this causes scrolling problems on iOS Safari.
141
+ Also, would be better to only enable horizontal scrolling when it is needed (content does not fit on page) but I have no idea how to do that. */
142
+ overflow-x : hidden;
143
+ }
138
144
}
139
145
.content {
140
146
margin-left : auto;
@@ -205,7 +211,7 @@ table thead td {
205
211
font-size : 2.5em ;
206
212
text-align : center;
207
213
text-decoration : none;
208
- position : absolute ;
214
+ position : fixed ;
209
215
top : 50px /* Height of menu-bar */ ;
210
216
bottom : 0 ;
211
217
margin : 0 ;
@@ -244,7 +250,13 @@ table thead td {
244
250
.nav-chapters : hover {
245
251
text-decoration : none;
246
252
}
247
- .previous {
253
+ .sidebar-hidden .previous {
254
+ left : 0 ;
255
+ }
256
+ .sidebar-visible .nav-chapters .previous {
257
+ left : 300px ;
258
+ }
259
+ .sidebar-visible .mobile-nav-chapters .previous {
248
260
left : 0 ;
249
261
}
250
262
.next {
You can’t perform that action at this time.
0 commit comments