MediaWiki:Common.css: Difference between revisions
m Improve long floating contents lists |
Revert caption table width stabilization Tag: Manual revert |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 18: | Line 18: | ||
#footer-places-disclaimer { display: none; } | #footer-places-disclaimer { display: none; } | ||
.muhro-floating-tools { | |||
.muhro-floating- | |||
position: fixed; | position: fixed; | ||
top: 4.5rem; | |||
right: 1rem; | right: 1rem; | ||
z-index: | z-index: 1002; | ||
display: flex; | |||
flex-direction: column; | |||
align-items: flex-end; | |||
gap: 0.45rem; | |||
max-width: min(22rem, calc(100vw - 2rem)); | max-width: min(22rem, calc(100vw - 2rem)); | ||
} | } | ||
.muhro-collapse-controls { | .muhro-collapse-controls { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
| Line 64: | Line 40: | ||
background: #fff; | background: #fff; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); | ||
} | |||
.muhro-floating-toc { | |||
max-width: min(22rem, calc(100vw - 2rem)); | |||
} | } | ||
| Line 193: | Line 173: | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
.muhro-floating- | .muhro-floating-tools { | ||
top: 0.5rem; | |||
right: 0.5rem; | right: 0.5rem; | ||
max-width: calc(100vw - 1rem); | max-width: calc(100vw - 1rem); | ||
} | } | ||
.muhro-floating-toc | .muhro-floating-toc, | ||
.muhro-floating-toc-panel { | |||
width: calc(100vw - 1rem); | |||
max-width: calc(100vw - 1rem); | |||
.muhro- | |||
} | } | ||
.muhro-floating-toc-panel { | .muhro-floating-toc-panel { | ||
max-height: 55vh; | max-height: 55vh; | ||
} | } | ||
| Line 216: | Line 192: | ||
padding: 0.2rem 0.55rem; | padding: 0.2rem 0.55rem; | ||
} | } | ||
} | |||
/* Keep MediaWiki caption collapsible toggles below section headings. */ | |||
.mw-parser-output table.mw-collapsible > caption > .mw-collapsible-toggle { | |||
display: block; | |||
float: none; | |||
width: max-content; | |||
margin: 0.15rem 0 0; | |||
white-space: nowrap; | |||
font-size: 0.85em; | |||
font-weight: 600; | |||
line-height: 1.2; | |||
} | |||
.mw-parser-output table.mw-collapsible.mw-collapsed:has(> caption) { | |||
width: 100%; | |||
min-width: min(100%, 32rem); | |||
} | } | ||