Skip to content

Commit

Permalink
doc: fix issues related to page scrolling
Browse files Browse the repository at this point in the history
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 <luigipinca@gmail.com>
Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com>
  • Loading branch information
silverwind committed May 15, 2016
1 parent f4f6c6e commit bef1ec0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ html {
-moz-osx-font-smoothing: grayscale;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
height: 100%;
}

body {
Expand All @@ -14,8 +13,6 @@ body {
padding: 0;
color: #333;
background: #fff;
overflow: auto;
height: 100%;
}

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

#content {
font-size: 1.8em;
overflow: hidden;
position: relative;
height: 100%;
}

a, a:link, a:active {
Expand Down Expand Up @@ -366,15 +361,12 @@ a code {
margin-left: 234px;
padding: 0 2em;
-webkit-padding-start: 1.5em;
height: 100%;
position: relative;
overflow-y: scroll;
}

#column2.interior {
width: 234px;
background: #333;
position: absolute;
position: fixed;
left: 0;
top: 0;
bottom: 0;
Expand Down

1 comment on commit bef1ec0

@silverwind
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR-URL: #6641

Please sign in to comment.