MediaWiki:Common.css: Difference between revisions
adjust categories grid to 3 columns after removing a card |
fix tab bar getting stuck mid-page on scroll (overflow-x rule was breaking document-level scroll) |
||
| 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. | ||
========================================================================== */ | ========================================================================== */ | ||
body, html { | /* Only html, not body: setting overflow-x on both makes the browser | ||
auto-promote overflow-y to auto on both too (CSS overflow spec), which | |||
here made <body> win as the actual scroll container instead of <html>. | |||
That broke position:absolute elements like the tab bar, which expect | |||
the normal document/html-level scroll to carry them off-screen. */ | |||
html { | |||
overflow-x: hidden; | overflow-x: hidden; | ||
} | } | ||