MediaWiki:Common.css: Difference between revisions
Article images: same width as the infobox |
Family trees: fit page width (smaller scale, horizontal scroll inside a wrapper) |
||
| Line 758: | Line 758: | ||
/* Hide "Switch to old look" in the main menu */ | /* Hide "Switch to old look" in the main menu */ | ||
.vector-main-menu-action-opt-out { display: none !important; } | .vector-main-menu-action-opt-out { display: none !important; } | ||
/* Family trees: fit the page width; shrink, and scroll horizontally only when still too wide */ | |||
.familytree-wrap { max-width: 100%; overflow-x: auto; overflow-y: hidden; } | |||
.familytree { font-size: 78%; margin: 0 auto; } | |||
.familytree td { line-height: 1.25; } | |||
.familytree-navbox, .familytree-navbox table { table-layout: fixed; width: 100%; } | |||
@media (max-width: 720px) { .familytree { font-size: 68%; } } | |||