MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
} | } | ||
/* ── Base ──────────────────────────────────────────────────────── | /* ── Base ────────────────────────────────────────────────────────*/ | ||
.mw-parser-output { | .mw-parser-output { | ||
font-size: 20px; | font-size: 20px; | ||
line-height: 1.75; | line-height: 1.75; | ||
color: #555; | color: #555; | ||
max-width: | max-width: 100%; | ||
margin: 0 | width: 100%; | ||
margin: 0; | |||
padding: 0; | |||
box-sizing: border-box; | |||
} | } | ||
| Line 390: | Line 391: | ||
Lists all adhyayas as links, floats right like reference site | Lists all adhyayas as links, floats right like reference site | ||
────────────────────────────────────────────────────────────────*/ | ────────────────────────────────────────────────────────────────*/ | ||
/* ── Page layout — flex row: content 80% + nav 20% ──────────────*/ | |||
.gr-page-wrap { | |||
display: flex; | |||
align-items: flex-start; | |||
gap: 0; | |||
width: 100%; | |||
} | |||
.gr-content { | |||
flex: 1 1 0; | |||
min-width: 0; | |||
padding: 0 32px 0 0; | |||
} | |||
.gr-chapter-nav { | .gr-chapter-nav { | ||
flex: 0 0 210px; | |||
width: 210px; | |||
position: sticky; | |||
top: 70px; | |||
max-height: calc(100vh - | max-height: calc(100vh - 90px); | ||
overflow-y: auto; | overflow-y: auto; | ||
padding: 10px 14px 12px; | padding: 10px 14px 12px; | ||
| Line 403: | Line 418: | ||
font-size: 0.75em; | font-size: 0.75em; | ||
line-height: 1.85; | line-height: 1.85; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
align-self: flex-start; | |||
} | } | ||
@media (max-width: 900px) { | |||
@media (max-width: | .gr-page-wrap { display: block; } | ||
.gr-chapter-nav { display: none; } | .gr-chapter-nav { display: none; } | ||
.gr-content { padding-right: 0; } | |||
} | } | ||
| Line 430: | Line 446: | ||
.gr-doc-teekas { margin-bottom: 1em; } | .gr-doc-teekas { margin-bottom: 1em; } | ||
/* ── Main page (gr-home) — card grid like reference site ─────────*/ | /* ── Main page (gr-home) — card grid like reference site ─────────*/ | ||