Commit 29bbd03f 29bbd03f7cdc9fc1e70f0fe1400635dd7d3537ad by Steve Mundro

CSS tweaks to make sidebar fixed (and individually scrollable) in casper.js docs.

1 parent 4992a55c
......@@ -989,3 +989,24 @@ p {
.donate .flattr {
margin-top: 1.5em;
}
/* Make sidebar fixed to keep it in window when scrolling */
body { background: #333;}
div.related, div.footer { margin-right: 18rem; width: auto; }
div.related ul { padding-right: 4px; }
div.sphinxsidebar {
position: fixed;
right: 0;
top: 0px;
height: 100%;
margin: 0;
float: none;
left: auto;
overflow: auto;
border-left: 2px solid #ffffff;
}
\ No newline at end of file
......
......@@ -885,3 +885,20 @@ p {
-o-filter: drop-shadow(0 1px 20px rgba(0,0,0,.5));
filter: drop-shadow(0 1px 20px rgba(0,0,0,.5));
}
/* Make sidebar fixed to keep it in window when scrolling */
div.related, div.footer { margin-left: 16rem; width: auto; }
div.sphinxsidebar {
position: fixed;
left: 0;
top: 0px;
height: 100%;
margin: 0;
float: none;
right: auto;
overflow: auto;
border-left: 2px solid #ffffff;
}
......