User:Failsayfe/common.css: Difference between revisions
imported>Failsayfe Created page with "→Для аккуратных таблиц статов: .stats-table .wikitable, .stats-unique .wikitable { width: 100%; text-align: left; border-collapse: collapse; } .stats-table th, .stats-unique th { background: rgba(var(--wiki-accent-color--rgb), 0.6); color: var(--wiki-accent-label-color); text-align: center; font-size: 1.1em; padding: 6px 10px; } .stats-table td, .stats-unique td { padding: 6px 10px; vertical-align: top; } .stats-table ...." |
imported>Failsayfe No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Узкая таблица для Stats: 20% / 20% / 60% */ | ||
.stats-table .wikitable | .stats-table--compact .wikitable { | ||
table-layout: fixed; | |||
width: 100%; | width: 100%; | ||
} | } | ||
.stats-table--compact .wikitable th:nth-child(1), | |||
.stats-table--compact .wikitable td:nth-child(1) { width: 20%; white-space: nowrap; } | |||
.stats-table th, | .stats-table--compact .wikitable th:nth-child(2), | ||
.stats- | .stats-table--compact .wikitable td:nth-child(2) { width: 20%; } | ||
} | |||
.stats-table | .stats-table--compact .wikitable th:nth-child(3), | ||
.stats- | .stats-table--compact .wikitable td:nth-child(3) { width: 60%; } | ||
} | |||
.stats-table | .stats-table--compact .mw-collapsible { margin-top: .25em; } | ||
/* Конец узкой таблицы*/ | |||
Revision as of 15:25, 20 September 2025
/* Узкая таблица для Stats: 20% / 20% / 60% */
.stats-table--compact .wikitable {
table-layout: fixed;
width: 100%;
}
.stats-table--compact .wikitable th:nth-child(1),
.stats-table--compact .wikitable td:nth-child(1) { width: 20%; white-space: nowrap; }
.stats-table--compact .wikitable th:nth-child(2),
.stats-table--compact .wikitable td:nth-child(2) { width: 20%; }
.stats-table--compact .wikitable th:nth-child(3),
.stats-table--compact .wikitable td:nth-child(3) { width: 60%; }
.stats-table--compact .mw-collapsible { margin-top: .25em; }
/* Конец узкой таблицы*/