MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 65: | Line 65: | ||
} | } | ||
/* ── Doc title — black, large | /* ── Doc title — black, large ────────────────────────────────────*/ | ||
.gr-doc-title { | .gr-doc-title { | ||
font-size: 1.6em; | font-size: 1.6em; | ||
| Line 75: | Line 73: | ||
margin: 0 0 16px; | margin: 0 0 16px; | ||
border: none !important; | border: none !important; | ||
} | |||
/* Suppress empty paragraphs MW inserts after divs */ | |||
.gr-doc-teekas + p:empty { | |||
display: none !important; | |||
margin: 0 !important; | |||
height: 0 !important; | |||
} | } | ||
| Line 386: | Line 391: | ||
────────────────────────────────────────────────────────────────*/ | ────────────────────────────────────────────────────────────────*/ | ||
.gr-chapter-nav { | .gr-chapter-nav { | ||
position: fixed; | |||
top: 80px; | |||
right: 20px; | |||
width: 200px; | |||
max-height: calc(100vh - 100px); | |||
overflow-y: auto; | |||
padding: 10px 14px 12px; | padding: 10px 14px 12px; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
border: 1px solid #e2e2e6; | border: 1px solid #e2e2e6; | ||
border-radius: 8px; | border-radius: 8px; | ||
font-size: 0.75em; | |||
line-height: 1.85; | |||
z-index: 100; | |||
box-sizing: border-box; | |||
} | |||
/* On narrow screens where nav would cover content, hide it */ | |||
@media (max-width: 1200px) { | |||
.gr-chapter-nav { display: none; } | |||
} | } | ||