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

Матеріал з Київський національний лінгвістичний університет
Перейти до навігації Перейти до пошуку
Немає опису редагування
Немає опису редагування
Рядок 18: Рядок 18:
}
}


/* Привітальний блок — повністю без фону */
.welcome-text {
.welcome-text {
     display: inline-block;
     display: inline-block;
Рядок 25: Рядок 24:
}
}


/* Малий текст зверху */
.welcome-subtitle {
.welcome-subtitle {
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
Рядок 36: Рядок 34:
}
}


/* Головний заголовок */
.welcome-title {
.welcome-title {
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
Рядок 74: Рядок 71:
}
}


/* Сітка карток */
/* ── ГОЛОВНИЙ КОНТЕЙНЕР: категорії + випадкові статті ── */
.main-content-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 0 5vw;
    margin: 0 0 70px;
    box-sizing: border-box;
}
 
/* ── Сітка карток — 3 в ряд ── */
.category-grid-container {
.category-grid-container {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-columns: repeat(3, 1fr);
     gap: 28px 20px;
     gap: 20px;
     margin: 0 0 70px;
     flex: 1;
    padding: 0 5vw;
     min-width: 0;
     width: 100%;
    max-width: none;
    box-sizing: border-box;
}
}


Рядок 117: Рядок 121:


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


/* Вміст картки */
.card-image {
.card-image {
     padding: 28px 0 16px;
     padding: 28px 0 16px;
Рядок 143: Рядок 146:
}
}


/* ── Назва категорії — голубий прозорий фон, скруглені кути ── */
/* Назва категорії — майже прозорий фон */
.card-title {
.card-title {
     font-size: 17px;
     font-size: 15px;
     font-weight: 600;
     font-weight: 600;
     color: #003d82;
     color: #003d82;
     text-align: center;
     text-align: center;
     padding: 10px 16px 14px;
     padding: 8px 12px 12px;
     line-height: 1.4;
     line-height: 1.4;
     flex-grow: 0;
     flex-grow: 0;
     background: rgba(210, 230, 255, 0.35);
     background: rgba(210, 230, 255, 0.15);   /* майже прозорий */
     border-radius: 10px;
     border-radius: 10px;
     margin: 0 12px 16px;
     margin: 0 10px 14px;
}
}


/* ── Скидаємо сірий MediaWiki-блок всередині .card-title ── */
.card-title pre {
.card-title div,
.card-title p,
.card-title span,
.card-title table,
.card-title td,
.card-title tr {
     background: transparent !important;
     background: transparent !important;
     border: none !important;
     border: none !important;
Рядок 169: Рядок 166:
     padding: 0 !important;
     padding: 0 !important;
     margin: 0 !important;
     margin: 0 !important;
     text-align: center !important;
     font-family: inherit !important;
    color: inherit !important;
     font-size: inherit !important;
     font-size: inherit !important;
     font-weight: inherit !important;
     font-weight: inherit !important;
    color: inherit !important;
    white-space: normal !important;
}
/* ── ПАНЕЛЬ ВИПАДКОВИХ СТАТЕЙ ── */
.random-articles-panel {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,61,130,0.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.random-articles-header {
    background: #003d82;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 18px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.random-articles-header::before {
    content: '🎲';
    font-size: 1.1rem;
}
.random-articles-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
/* Картка статті */
.random-article-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(210, 230, 255, 0.12);
    border: 1px solid rgba(0,61,130,0.07);
    text-decoration: none;
    color: inherit;
    transition: all 0.22s ease;
    align-items: flex-start;
}
.random-article-card:hover {
    background: rgba(210, 230, 255, 0.35);
    border-color: rgba(0,61,130,0.18);
    transform: translateX(3px);
    text-decoration: none;
}
.random-article-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef2f8;
}
.random-article-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8eef7, #c8d8ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.random-article-info {
    flex: 1;
    min-width: 0;
}
.random-article-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 4px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.random-article-excerpt {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px;
    color: #666;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.random-articles-refresh {
    display: block;
    text-align: center;
    padding: 10px;
    font-family: system-ui, sans-serif;
    font-size: 12.5px;
    color: #003d82;
    cursor: pointer;
    border-top: 1px solid rgba(0,61,130,0.08);
    background: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    transition: background 0.2s;
}
.random-articles-refresh:hover {
    background: rgba(210, 230, 255, 0.25);
}
/* Стан завантаження */
.random-articles-loading {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 13px;
    font-family: system-ui, sans-serif;
}
}


/* Адаптивність */
/* Адаптивність */
@media (max-width: 1100px) {
@media (max-width: 1100px) {
    .main-content-layout {
        flex-direction: column;
    }
     .category-grid-container {
     .category-grid-container {
         grid-template-columns: repeat(3, 1fr);
         grid-template-columns: repeat(3, 1fr);
         gap: 24px 18px;
    }
    .random-articles-panel {
         width: 100%;
     }
     }
}
}
Рядок 186: Рядок 329:
     .category-grid-container {
     .category-grid-container {
         grid-template-columns: repeat(2, 1fr);
         grid-template-columns: repeat(2, 1fr);
        padding: 0 4vw;
     }
     }
    .card-image img { width: 80px; height: 80px; }
    .card-title { font-size: 15px; padding-bottom: 12px; }
}
}


Рядок 195: Рядок 335:
     .category-grid-container {
     .category-grid-container {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5vw;
     }
     }
     .welcome-wrapper { padding: 40px 6vw 50px; }
     .welcome-wrapper { padding: 40px 6vw 50px; }
Рядок 204: Рядок 342:
}
}


/* ── Ресурси та контакти ── */
.resources-and-contacts {
.resources-and-contacts {
     display: flex;
     display: flex;

Версія за 14:04, 15 лютого 2026

/* Адаптивный заголовок страницы */
#firstHeading {
    font-size: clamp(28px, 4vw, 48px);
}

/* Увеличить текст в боковом меню */
#mw-panel {
    font-size: clamp(14px, 1.2vw, 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;
    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;
    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;
    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;
}

/* ── ГОЛОВНИЙ КОНТЕЙНЕР: категорії + випадкові статті ── */
.main-content-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 0 5vw;
    margin: 0 0 70px;
    box-sizing: border-box;
}

/* ── Сітка карток — 3 в ряд ── */
.category-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
    min-width: 0;
}

/* Перебиваємо обмеження 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(-6px);
    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: 15px;
    font-weight: 600;
    color: #003d82;
    text-align: center;
    padding: 8px 12px 12px;
    line-height: 1.4;
    flex-grow: 0;
    background: rgba(210, 230, 255, 0.15);   /* майже прозорий */
    border-radius: 10px;
    margin: 0 10px 14px;
}

.card-title pre {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    white-space: normal !important;
}

/* ── ПАНЕЛЬ ВИПАДКОВИХ СТАТЕЙ ── */
.random-articles-panel {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,61,130,0.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.random-articles-header {
    background: #003d82;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 18px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.random-articles-header::before {
    content: '🎲';
    font-size: 1.1rem;
}

.random-articles-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Картка статті */
.random-article-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(210, 230, 255, 0.12);
    border: 1px solid rgba(0,61,130,0.07);
    text-decoration: none;
    color: inherit;
    transition: all 0.22s ease;
    align-items: flex-start;
}

.random-article-card:hover {
    background: rgba(210, 230, 255, 0.35);
    border-color: rgba(0,61,130,0.18);
    transform: translateX(3px);
    text-decoration: none;
}

.random-article-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef2f8;
}

.random-article-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8eef7, #c8d8ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.random-article-info {
    flex: 1;
    min-width: 0;
}

.random-article-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 4px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.random-article-excerpt {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px;
    color: #666;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.random-articles-refresh {
    display: block;
    text-align: center;
    padding: 10px;
    font-family: system-ui, sans-serif;
    font-size: 12.5px;
    color: #003d82;
    cursor: pointer;
    border-top: 1px solid rgba(0,61,130,0.08);
    background: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    transition: background 0.2s;
}

.random-articles-refresh:hover {
    background: rgba(210, 230, 255, 0.25);
}

/* Стан завантаження */
.random-articles-loading {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 13px;
    font-family: system-ui, sans-serif;
}

/* Адаптивність */
@media (max-width: 1100px) {
    .main-content-layout {
        flex-direction: column;
    }
    .category-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .random-articles-panel {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── Ресурси та контакти ── */
.resources-and-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 30px 0 50px;
    align-items: stretch;
}

.resource-block,
.contacts-block {
    flex: 1;
    min-width: 280px;
    background: rgba(220, 235, 255, 0.18);
    border: 1px solid rgba(180, 210, 240, 0.5);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.resource-block ul,
.contacts-block ul {
    flex: 1;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.resource-block h2,
.contacts-block h2 {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #003d82 !important;
    margin: 0 0 16px 0 !important;
    padding: 20px 0 20px 0 !important;
    border: none !important;
}

.resource-block li,
.contacts-block li {
    margin-bottom: 9px;
    line-height: 1.5;
    font-size: 1.1rem;
    color: #444;
}

.resource-block li a,
.contacts-block li a {
    color: #1e40af;
    text-decoration: none;
}

.resource-block li a:hover,
.contacts-block li a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .resources-and-contacts {
        flex-direction: column;
        gap: 24px;
    }
}