MediaWiki:Common.css: Difference between revisions
m Group floating page controls |
m Improve long floating contents lists |
||
| Line 108: | Line 108: | ||
max-height: min(70vh, 44rem); | max-height: min(70vh, 44rem); | ||
margin-top: 0.4rem; | margin-top: 0.4rem; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-radius: 4px; | border-radius: 4px; | ||
background: #fff; | background: #fff; | ||
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22); | box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22); | ||
overflow: hidden; | |||
} | } | ||
.muhro-floating-toc.is-open .muhro-floating-toc-panel { | .muhro-floating-toc.is-open .muhro-floating-toc-panel { | ||
display: | display: flex; | ||
flex-direction: column; | |||
} | |||
.muhro-floating-toc-header { | |||
position: sticky; | |||
top: 0; | |||
z-index: 1; | |||
border-bottom: 1px solid #eaecf0; | |||
background: #fff; | |||
padding: 0.55rem 0.65rem; | |||
} | |||
.muhro-floating-toc-filter { | |||
box-sizing: border-box; | |||
width: 100%; | |||
border: 1px solid #a2a9b1; | |||
border-radius: 4px; | |||
background: #fff; | |||
color: #202122; | |||
font: inherit; | |||
line-height: 1.4; | |||
padding: 0.3rem 0.45rem; | |||
} | |||
.muhro-floating-toc-filter:focus { | |||
border-color: #36c; | |||
outline: 1px solid #36c; | |||
} | |||
.muhro-floating-toc-body { | |||
overflow: auto; | |||
padding: 0.55rem 0.85rem 0.65rem; | |||
} | } | ||
| Line 125: | Line 156: | ||
} | } | ||
.muhro-floating-toc-panel > ul { | .muhro-floating-toc-panel > .muhro-floating-toc-body > ul { | ||
padding-left: 0; | padding-left: 0; | ||
} | } | ||
| Line 150: | Line 181: | ||
color: #54595d; | color: #54595d; | ||
margin-right: 0.35rem; | margin-right: 0.35rem; | ||
} | |||
.muhro-floating-toc-panel .muhro-toc-hidden { | |||
display: none; | |||
} | |||
.muhro-floating-toc-panel .muhro-toc-match > a { | |||
border-radius: 3px; | |||
background: #eaf3ff; | |||
} | } | ||