MediaWiki:Common.css: відмінності між версіями

нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 1247: Рядок 1247:
     .mcc-duration-range { width: 90px; }
     .mcc-duration-range { width: 90px; }
     .mcc-filter-select { font-size: 12px; }
     .mcc-filter-select { font-size: 12px; }
}
/* ============================================================
  ФІНАЛЬНІ ФІКСИ — вставити в кінець Common.css
  ============================================================ */
/* ── 1. TITLE + SUBTITLE ── */
/* h1 заголовок сторінки */
h1.mw-first-heading,
.content h1.mw-first-heading {
    font-size: clamp(26px, 3vw, 40px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-family: 'Manrope', sans-serif !important;
    line-height: 1.1 !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
    border-bottom: none !important;
}
/* Перший абзац в контенті — підзаголовок гравця */
.content .mw-parser-output > p:first-of-type {
    font-size: 13.5px !important;
    color: #b7b4bf !important;
    opacity: .72 !important;
    line-height: 1.6 !important;
    margin-top: 4px !important;
    margin-bottom: 14px !important;
    font-family: 'Manrope', sans-serif !important;
}
/* Heading container */
.page-header-bar { padding-bottom: 4px !important; }
/* ── 2. PLAYER TABS — значок кількості ── */
/* JS перетворює "(42)" → span.mcc-tab-cnt */
.mcc-tab-cnt {
    display: inline-block;
    margin-left: 6px;
    background: rgba(161,156,224,0.12);
    border: 1px solid rgba(161,156,224,0.22);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 11px;
    color: #a19ce0;
    font-weight: 700;
    vertical-align: middle;
    line-height: 1.6;
}
.player-tab.active .mcc-tab-cnt {
    background: rgba(161,156,224,0.18);
    color: #c4bfff;
}
/* ── 3. НАВІГАЦІЯ — фікс видимості ← → ── */
/* Якщо стрілка порожня — ховаємо, не ламаємо layout */
.tournament-nav-prev:empty,
.tournament-nav-next:empty,
.series-nav-prev:empty,
.series-nav-next:empty,
.player-nav-prev:empty,
.player-nav-next:empty {
    visibility: hidden !important;
    pointer-events: none !important;
}
/* Стрілки більш помітні */
.tournament-nav-prev a, .tournament-nav-next a,
.series-nav-prev a, .series-nav-next a,
.player-nav-prev a, .player-nav-next a,
.championship-nav-prev a, .championship-nav-next a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    transition: all .15s !important;
}
.tournament-nav-prev a:hover, .tournament-nav-next a:hover,
.series-nav-prev a:hover, .series-nav-next a:hover,
.player-nav-prev a:hover, .player-nav-next a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
    text-decoration: none !important;
}
/* ── 4. СЕЗОНИ — колір "Чемпіон" ── */
/* Клітинки з текстом "Чемпіон" в таблиці сезонів */
.wikitable td .mcc-champion {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7ab8ff;
    background: rgba(91,143,255,0.10);
    border: 1px solid rgba(91,143,255,0.22);
}
/* Якщо JS не встиг — ховаємо через CSS (fallback) */
/* JS додає клас через applySeasonColors() */
/* ── 5. PROFILE ICONS — 4 квадрати фікс ── */
/* Перевизначаємо жорстко */
.profile-links {
    display: block !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
.profile-links-icons {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
    width: 100% !important;
    float: none !important;
}
/* Кожна іконка */
.profile-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 4px !important;
    border-right: 1px solid rgba(255,255,255,0.06) !important;
    background: rgba(22,20,30,0.5) !important;
    transition: background .14s !important;
    cursor: pointer !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    /* Знімаємо всі float/position */
    float: none !important;
    position: static !important;
    width: auto !important;
}
.profile-icon:last-child { border-right: none !important; }
.profile-icon:hover:not(.inactive) { background: rgba(55,55,82,0.8) !important; }
/* MediaWiki обгортки [[File:]] */
.profile-icon > span,
.profile-icon span[typeof="mw:File"],
.profile-icon .mw-file-description,
.profile-icon > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 0 !important;
}
/* Зображення іконок */
.profile-icon img,
.profile-icon .mw-file-element {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    min-width: unset !important;
    object-fit: contain !important;
    display: block !important;
}
.profile-icon.inactive { opacity: 0.25 !important; pointer-events: none !important; }
.profile-icon.inactive img { filter: grayscale(100%) !important; }
/* ── 6. ВИДАЛЯЄМО ТІНЬ З ТАБЛИЦЬ ── */
.content .mw-parser-output .wikitable {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07) !important;
}
/* ── 7. ЗОБРАЖЕННЯ — квадратні фото гравців та сезонів ── */
/* Фото в r-box — завжди cover, не розтягується */
.r-box figure img,
.r-box figure .mw-file-element,
.tournament-box figure img,
.tournament-box figure .mw-file-element,
.series-box figure img,
.series-box figure .mw-file-element {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    border-radius: 0 !important;
    aspect-ratio: unset !important;
}
/* Якщо MediaWiki додає link-обгортку */
.r-box figure a.mw-file-description,
.tournament-box figure a.mw-file-description {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    height: 200px !important;
}
/* ── 8. ТАБЛИЦІ — покращення відображення ── */
/* Zebra stripes більш помітні */
.content .mw-parser-output .wikitable > tbody > tr:nth-child(odd) > td {
    background-color: rgba(22,20,30,0.55) !important;
}
.content .mw-parser-output .wikitable > tbody > tr:nth-child(even) > td {
    background-color: rgba(14,13,22,0.70) !important;
}
/* Hover яскравіший */
.content .mw-parser-output .wikitable > tbody > tr:hover > td {
    background-color: rgba(35,80,200,0.16) !important;
}
/* Заголовки таблиці — трохи темніші та чіткіші */
.content .mw-parser-output .wikitable > thead > tr > th,
.content .mw-parser-output .wikitable > * > tr:first-child > th,
.jquery-tablesorter th.headerSort {
    background-color: rgba(12,11,20,0.92) !important;
    border-bottom: 2px solid rgba(161,156,224,0.25) !important;
    font-size: 11px !important;
    letter-spacing: .10em !important;
    color: #a9a6b8 !important;
}
/* Ширина r-box таблиці — менший padding */
.r-box table th, .r-box table td,
.tournament-box table th, .tournament-box table td {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
}
/* ── 9. СЕЗОНИ В ТАБЛИЦІ ГРАВЦЯ — колір чемпіонства ── */
/* JS додає .mcc-champion до клітинки, але CSS fallback: */
.wikitable td[style*="Чемпіон"],
.wikitable td:contains("Чемпіон") {
    color: #7ab8ff !important;
}
}