19,596
edits
(um, yeah; let's try adding CSS to a CSS page instead of Javascript; carrying over changes from my monobook.css) |
(OK, turns out that the div name is different in Vector; here's what WP recommends) |
||
Line 1: | Line 1: | ||
/* Fix the sidebar in place when scrolling */ | /* Fix the sidebar in place when scrolling */ | ||
div | div#mw-panel | ||
{ | { | ||
position: fixed; | |||
overflow: auto; | |||
top: 0px; | |||
bottom: 0px; | |||
height: 100%; | |||
/* Prevent content overlay when sidewards scrolling */ | |||
background-color: #F6F6F6; | |||
border-right: 1px solid #A7D7F9; | |||
} | } | ||
/* | /* Prevent sidewards scrolling in pre elements */ | ||
pre | |||
{ | { | ||
overflow: auto; | |||
max-height: 25em; | |||
} | } |