MediaWiki:Common.css: Difference between revisions
Keep caption collapsible table width stable |
Fix mobile collapse controls overlapping Minerva search |
||
| (One intermediate revision by one other user not shown) | |||
| Line 174: | Line 174: | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
.muhro-floating-tools { | .muhro-floating-tools { | ||
top: 0.5rem; | /* Keep the controls below Minerva's 54px mobile header. */ | ||
top: calc(3.375rem + 0.5rem); | |||
right: 0.5rem; | right: 0.5rem; | ||
max-width: calc(100vw - 1rem); | max-width: calc(100vw - 1rem); | ||
} | |||
/* Do not cover Minerva overlays such as the mobile search interface. */ | |||
html.overlay-enabled .muhro-floating-tools { | |||
display: none; | |||
} | } | ||
| Line 205: | Line 211: | ||
} | } | ||
.mw-parser-output table.mw-collapsible:has(> caption) { | .mw-parser-output table.mw-collapsible.mw-collapsed:has(> caption) { | ||
width: 100%; | width: 100%; | ||
min-width: min(100%, 32rem); | min-width: min(100%, 32rem); | ||
} | } | ||