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

Матеріал з Київський національний лінгвістичний університет
Перейти до навігації Перейти до пошуку
Немає опису редагування
Немає опису редагування
Мітка: Скасовано
Рядок 8: Рядок 8:
     font-size: clamp(14px, 1.2vw, 18px);
     font-size: clamp(14px, 1.2vw, 18px);
}
}


/* Обгортка для центрування та відступів */
/* Обгортка для центрування та відступів */
Рядок 26: Рядок 25:
}
}


/* Малий текст зверху */
/* Малий текст зверху — збільшений */
.welcome-subtitle {
.welcome-subtitle {
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     font-size: 1.45rem;         /* ≈23px */
     font-size: 1.7rem;           /* було 1.45rem — збільшено */
     font-weight: 400;
     font-weight: 400;
     color: #444;
     color: #444;
Рядок 37: Рядок 36:
}
}


/* Головний заголовок — однаковий шрифт і стиль */
/* Головний заголовок */
.welcome-title {
.welcome-title {
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     font-size: 2.45rem;         /* ≈39px */
     font-size: 2.45rem;
     font-weight: 700;
     font-weight: 700;
     line-height: 1.18;
     line-height: 1.18;
Рядок 48: Рядок 47:
}
}


/* Жовтий акцент (якщо хочеш виділити частину назви) */
/* Жовтий акцент */
.welcome-title .highlight {
.welcome-title .highlight {
     color: #ffd700;
     color: #ffd700;
Рядок 56: Рядок 55:
/* Заголовок "Категорії" */
/* Заголовок "Категорії" */
.section-categories {
.section-categories {
     font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     font-size: 2.1rem;           /* ≈34px */
     font-size: 2.1rem;
     font-weight: 700;
     font-weight: 700;
     color: #003d82;
     color: #003d82;
Рядок 104: Рядок 103:
}
}


/* Картка */
/* Картка — біла з мінімальним сірим відтінком і скругленими кутами */
.category-card {
.category-card {
     background: white;
     background: rgba(245, 247, 250, 0.55);   /* майже білий з легким сірим */
     border-radius: 16px;
     border-radius: 20px;                     /* скруглені кути */
     overflow: hidden;
     overflow: hidden;
     box-shadow: 0 6px 24px rgba(0,0,0,0.08);
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
     transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
     transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
     cursor: pointer;
     cursor: pointer;
     border: 1px solid rgba(0,61,130,0.08);
     border: 1px solid rgba(200, 215, 235, 0.6);
     height: 100%;
     height: 100%;
     display: flex;
     display: flex;
Рядок 120: Рядок 119:
.category-card:hover {
.category-card:hover {
     transform: translateY(-10px);
     transform: translateY(-10px);
     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);
}
}


Рядок 131: Рядок 130:
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     background: white;           /* без градієнта */
     background: transparent;
}
}


Рядок 145: Рядок 144:
}
}


/* Назва категорії — більший шрифт, сучасний */
.card-title {
.card-title {
     font-size: 16px;
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     font-size: 15.5px;          /* було 16px але тепер сучасніший шрифт */
     font-weight: 600;
     font-weight: 600;
     color: #003d82;
     color: #003d82;
Рядок 179: Рядок 180:
     }
     }
     .welcome-wrapper { padding: 40px 6vw 50px; }
     .welcome-wrapper { padding: 40px 6vw 50px; }
     .welcome-subtitle { font-size: 1.25rem; }
     .welcome-subtitle { font-size: 1.35rem; }
     .welcome-title { font-size: 2rem; }
     .welcome-title { font-size: 2rem; }
     .section-categories { font-size: 1.8rem; }
     .section-categories { font-size: 1.8rem; }
Рядок 189: Рядок 190:
     gap: 32px;
     gap: 32px;
     margin: 30px 0 50px;
     margin: 30px 0 50px;
     align-items: stretch;         /* блоки однакової висоти */
     align-items: stretch;
}
}


Рядок 196: Рядок 197:
     flex: 1;
     flex: 1;
     min-width: 280px;
     min-width: 280px;
     background: rgba(220, 235, 255, 0.18);   /* почти белый, чуть голубой */
     background: rgba(220, 235, 255, 0.18);
     border: 1px solid rgba(180, 210, 240, 0.5);
     border: 1px solid rgba(180, 210, 240, 0.5);
     border-radius: 12px;
     border-radius: 12px;
Рядок 202: Рядок 203:
     box-shadow: 0 4px 12px rgba(0, 61, 130, 0.06);
     box-shadow: 0 4px 12px rgba(0, 61, 130, 0.06);
     box-sizing: border-box;
     box-sizing: border-box;
    /* Одинаковая высота — блоки растягиваются по flex-контейнеру */
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
}
}


/* Список занимает оставшееся место, выравнивая высоту блоков */
.resource-block ul,
.resource-block ul,
.contacts-block ul {
.contacts-block ul {
Рядок 217: Рядок 215:
}
}


/* Заголовки */
/*.resource-block h2,
.contacts-block h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #003d82;
    margin: 0 0 16px 0;
    padding-bottom: 120px;
}
*/
.resource-block h2,
.resource-block h2,
.contacts-block h2 {
.contacts-block h2 {
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     font-size: 1.45rem !important;
     font-size: 1.45rem !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
     color: #003d82 !important;
     color: #003d82 !important;
     margin: 0 0 16px 0 !important;
     margin: 0 0 16px 0 !important;
     padding: 20px 0 20px 0 !important; /* отступ сверху и снизу */
     padding: 20px 0 20px 0 !important;
     border: none !important;             /* убираем стандартную рамку MediaWiki */
     border: none !important;
}
}
/* Элементы списка */
 
.resource-block li,
.resource-block li,
.contacts-block li {
.contacts-block li {
Рядок 243: Рядок 232:
     font-size: 1.1rem;
     font-size: 1.1rem;
     color: #444;
     color: #444;
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
}



Версія за 13:46, 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: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.7rem;           /* було 1.45rem — збільшено */
    font-weight: 400;
    color: #444;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    opacity: 0.92;
}

/* Головний заголовок */
.welcome-title {
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 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: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;
}

/* Сітка карток */
.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: rgba(245, 247, 250, 0.55);   /* майже білий з легким сірим */
    border-radius: 20px;                      /* скруглені кути */
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(200, 215, 235, 0.6);
    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: transparent;
}

.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-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15.5px;           /* було 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.35rem; }
    .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-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    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;
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.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;
    }
}