MediaWiki:Common.css: Difference between revisions
fix tab bar getting stuck mid-page on scroll (overflow-x rule was breaking document-level scroll) |
force normal document-level scroll so tab bar scrolls with the page instead of overlapping content |
||
| Line 1,295: | Line 1,295: | ||
explicit min-width so they're actually allowed to shrink. | explicit min-width so they're actually allowed to shrink. | ||
========================================================================== */ | ========================================================================== */ | ||
/* | /* Force normal document-level scrolling. Something (base skin CSS, not | ||
wiki-editable) was letting <body> become its own independent scroll | |||
container while <html> stayed pinned to the viewport height - which | |||
made position:absolute elements like the tab bar (whose containing | |||
the | block is the html-level initial containing block) behave as if fixed, | ||
overlapping content instead of scrolling away with it normally. */ | |||
html, body { | |||
height: auto !important; | |||
overflow-y: visible !important; | |||
} | |||
html { | html { | ||
overflow-x: hidden; | overflow-x: hidden; | ||