Skip to content

Commit 4f2a55f

Browse files
silverwindevanlucas
authored andcommitted
doc: fix issues related to page scrolling
Moved the sidebar to a fixed position and moved the main column to the page's body, which results in back/forward navigation through hash links and search highlight working again. Fixes: #6637 Fixes: #6751 Based on: #5716 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Lindstaedt <[email protected]>
1 parent e0240ab commit 4f2a55f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

doc/api_assets/style.css

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ html {
44
-moz-osx-font-smoothing: grayscale;
55
-webkit-font-variant-ligatures: none;
66
font-variant-ligatures: none;
7-
height: 100%;
87
}
98

109
body {
@@ -14,8 +13,6 @@ body {
1413
padding: 0;
1514
color: #333;
1615
background: #fff;
17-
overflow: auto;
18-
height: 100%;
1916
}
2017

2118
pre, tt, code, .pre, span.type, a.type {
@@ -24,9 +21,7 @@ pre, tt, code, .pre, span.type, a.type {
2421

2522
#content {
2623
font-size: 1.8em;
27-
overflow: hidden;
2824
position: relative;
29-
height: 100%;
3025
}
3126

3227
a, a:link, a:active {
@@ -366,15 +361,12 @@ a code {
366361
margin-left: 234px;
367362
padding: 0 2em;
368363
-webkit-padding-start: 1.5em;
369-
height: 100%;
370-
position: relative;
371-
overflow-y: scroll;
372364
}
373365

374366
#column2.interior {
375367
width: 234px;
376368
background: #333;
377-
position: absolute;
369+
position: fixed;
378370
left: 0;
379371
top: 0;
380372
bottom: 0;

0 commit comments

Comments
 (0)