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: https://github.com/nodejs/node/issues/6637 Fixes: https://github.com/nodejs/node/issues/6751 Based on: https://github.com/nodejs/node/pull/5716 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com>
This commit is contained in:
parent
f4f6c6e815
commit
bef1ec086d
@ -4,7 +4,6 @@ html {
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
-webkit-font-variant-ligatures: none;
|
-webkit-font-variant-ligatures: none;
|
||||||
font-variant-ligatures: none;
|
font-variant-ligatures: none;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -14,8 +13,6 @@ body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
color: #333;
|
color: #333;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
overflow: auto;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pre, tt, code, .pre, span.type, a.type {
|
pre, tt, code, .pre, span.type, a.type {
|
||||||
@ -24,9 +21,7 @@ pre, tt, code, .pre, span.type, a.type {
|
|||||||
|
|
||||||
#content {
|
#content {
|
||||||
font-size: 1.8em;
|
font-size: 1.8em;
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a, a:link, a:active {
|
a, a:link, a:active {
|
||||||
@ -366,15 +361,12 @@ a code {
|
|||||||
margin-left: 234px;
|
margin-left: 234px;
|
||||||
padding: 0 2em;
|
padding: 0 2em;
|
||||||
-webkit-padding-start: 1.5em;
|
-webkit-padding-start: 1.5em;
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#column2.interior {
|
#column2.interior {
|
||||||
width: 234px;
|
width: 234px;
|
||||||
background: #333;
|
background: #333;
|
||||||
position: absolute;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user