MediaWiki:Common.css

Матеріал з Київський національний лінгвістичний університет
Перейти до навігації Перейти до пошуку

Увага: Після публікування слід очистити кеш браузера, щоб побачити зміни.

  • Firefox / Safari: тримайте Shift, коли натискаєте Оновити, або натисніть Ctrl-F5 чи Ctrl-Shift-R (⌘-R на Apple Mac)
  • Google Chrome: натисніть Ctrl-Shift-R (⌘-Shift-R на Apple Mac)
  • Edge: тримайте Ctrl, коли натискаєте Оновити, або натисніть Ctrl-F5.
/* Збільшуємо шрифт у верхній навігації (таби сторінки) */
#ca-talk,
#ca-view,
#ca-edit,
#ca-history,
#ca-watch,
#ca-unwatch,
#ca-delete,
#ca-move,
#ca-protect,
#ca-purge,
#ca-more,
#ca-nstab-main,
#ca-nstab-user,
#ca-nstab-special,
#ca-nstab-mediawiki,
.vector-menu-heading,
.vector-menu-content li a {
    font-size: 1.25rem !important;      /* ≈20px — помітно більше */
    font-weight: 600 !important;        /* жирніше */
    padding: 10px 14px !important;      /* більше місця навколо тексту */
    line-height: 1.4 !important;
}

/* Збільшуємо шрифт у лівому меню (портал, інструменти тощо) */
#mw-panel .portal h3,
#mw-panel .portal li a {
    font-size: 1.18rem !important;      /* ≈19px */
    font-weight: 500 !important;
}

/* Загальний шрифт для всього сайту (якщо хочеш збільшити ВСЕ) */
body, .mw-body, .vector-menu-content li a {
    font-size: 1.1rem !important;       /* базовий розмір тексту ≈17–18px */
}
/* Обгортка для центрування та відступів */
.welcome-wrapper {
    width: 100%;
    padding: 50px 5vw 60px;
    background: none;
    text-align: center;
    box-sizing: border-box;
}

/* Привітальний блок — повністю без фону */
.welcome-text {
    display: inline-block;
    max-width: 1100px;
    width: 100%;
}

/* Малий текст зверху */
.welcome-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.45rem;          /* ≈23px */
    font-weight: 400;
    color: #444;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    opacity: 0.92;
}

/* Головний заголовок — однаковий шрифт і стиль */
.welcome-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.45rem;          /* ≈39px */
    font-weight: 700;
    line-height: 1.18;
    color: #003d82;
    letter-spacing: -0.3px;
    margin: 0;
}

/* Жовтий акцент (якщо хочеш виділити частину назви) */
.welcome-title .highlight {
    color: #ffd700;
    font-weight: 800;
}

/* Заголовок "Категорії" */
.section-categories {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.1rem;           /* ≈34px */
    font-weight: 700;
    color: #003d82;
    text-align: center;
    margin: 0 0 40px;
    padding: 0;
    background: transparent;
}

.section-categories::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background: #ffd700;
    margin: 14px auto 0;
    border-radius: 2px;
}

/* Сітка карток */
.category-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
    margin: 0 0 70px;
    padding: 0 5vw;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Перебиваємо обмеження Vector 2022 */
body.skin-vector-2022 .mw-page-container-inner,
body.skin-vector .mw-content-container,
body.skin-vector .vector-body,
body.skin-vector #bodyContent {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.skin-vector-2022 .mw-body,
body.skin-vector-2022 .mw-body-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* Картка */
.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(0,61,130,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,61,130,0.18);
    border-color: rgba(0,61,130,0.15);
}

/* Вміст картки */
.card-image {
    padding: 28px 0 16px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;           /* без градієнта */
}

.card-image img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.12);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #003d82;
    text-align: center;
    padding: 0 16px 24px;
    line-height: 1.4;
    flex-grow: 0;
}

/* Адаптивність */
@media (max-width: 1100px) {
    .category-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 18px;
    }
}

@media (max-width: 820px) {
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 4vw;
    }
    .card-image img { width: 80px; height: 80px; }
    .card-title { font-size: 15px; padding-bottom: 20px; }
}

@media (max-width: 520px) {
    .category-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5vw;
    }
    .welcome-wrapper { padding: 40px 6vw 50px; }
    .welcome-subtitle { font-size: 1.25rem; }
    .welcome-title { font-size: 2rem; }
    .section-categories { font-size: 1.8rem; }
}