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

Матеріал з Київський національний лінгвістичний університет
Перейти до навігації Перейти до пошуку
Немає опису редагування
Немає опису редагування
Рядок 1: Рядок 1:
/* Привітальний блок — ширше, в межах екрану */
/* Привітальний блок */
.welcome-text {
.welcome-text {
     text-align: center;
     text-align: center;
     font-style: italic;
     font-style: italic;
     margin: 20px 0 30px;
     margin: 30px 0 40px;
     padding: 30px 4vw; /* 4vw — комфортні бокові відступи */
     padding: 35px 5vw;
     background: #003d82;
     background: linear-gradient(135deg, #003d82 0%, #004080 100%);
     color: white;
     color: white;
     border-radius: 12px;
     border-radius: 16px;
     box-shadow: 0 4px 20px rgba(0,61,130,0.18);
     box-shadow: 0 8px 32px rgba(0,61,130,0.20);
     width: 100%;
     width: 100%;
     max-width: none;
     max-width: none;
Рядок 14: Рядок 14:
}
}


/* Секція "Наші проєкти" */
.welcome-text strong {
.section-projects {
    background: #003d82;
     color: #ffd700;
     color: #ffd700;
    padding: 16px 4vw;
     font-size: 26px;
     font-size: 20px;
     font-weight: 700;
     font-weight: 700;
     margin: 0 0 25px;
    display: block;
     margin-top: 12px;
    font-style: normal;
}
 
/* Заголовок "Категорії" — без фону, мінімалістично */
.section-categories {
    font-size: 28px;
    font-weight: 700;
    color: #003d82;
     text-align: center;
     text-align: center;
     box-shadow: 0 3px 12px rgba(0,61,130,0.15);
     margin: 0 0 35px;
     width: 100%;
    padding: 0;
     max-width: none;
    background: transparent;
    position: relative;
}
 
.section-categories::after {
    content: '';
    display: block;
     width: 80px;
     height: 4px;
    background: #ffd700;
    margin: 12px auto 0;
    border-radius: 2px;
}
}


/* Сітка карток — ширше, адаптивно */
/* Сітка карток */
.category-grid-container {
.category-grid-container {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-columns: repeat(4, 1fr);
     gap: 24px 18px; /* трохи більше простору */
     gap: 28px 20px;
     margin: 0 0 50px;
     margin: 0 0 60px;
     padding: 0 4vw 40px;
     padding: 0 5vw;
     width: 100%;
     width: 100%;
     max-width: none;
     max-width: none;
Рядок 40: Рядок 57:
}
}


/* Перебиваємо обмеження Vector 2022 для наших блоків (найнадійніше) */
/* Перебиваємо обмеження Vector 2022 */
body.skin-vector-2022 .mw-page-container-inner,
body.skin-vector-2022 .mw-page-container-inner,
body.skin-vector .mw-content-container,
body.skin-vector .mw-content-container,
Рядок 50: Рядок 67:
}
}


/* Але повертаємо нормальні відступи для решти сторінки, щоб не ламати статті */
body.skin-vector-2022 .mw-body,
body.skin-vector-2022 .mw-body,
body.skin-vector-2022 .mw-body-content {
body.skin-vector-2022 .mw-body-content {
     max-width: 960px !important; /* або 1000px — повертаємо стандарт для тексту статей */
     max-width: 1000px !important;
     margin: 0 auto !important;
     margin: 0 auto !important;
}
}


/* Картки + клікабельність */
/* Картка — мінімалістична, сучасна */
.category-card {
.category-card {
    text-align: center;
     background: white;
     background: #ffffff;
     border-radius: 16px;
    border: 1px solid #e2e8f0;
     border-radius: 10px;
     overflow: hidden;
     overflow: hidden;
     box-shadow: 0 3px 10px rgba(0,0,0,0.06);
     box-shadow: 0 6px 24px rgba(0,0,0,0.08);
     transition: all 0.18s ease;
     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%;
     height: 100%;
    display: flex;
    flex-direction: column;
}
}


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


.card-link {
/* JS додає .card-hover, але hover вже є — можна залишити обидва */
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
 
.card-link:hover .card-title {
    text-decoration: underline;
}


/* Вміст картки */
.card-image {
.card-image {
     padding: 16px 0 0;
     padding: 28px 0 16px;
     flex-grow: 1;
     flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9ff, #ffffff);
}
}


.card-image img {
.card-image img {
     width: 80px;
     width: 88px;
     height: 80px;
     height: 88px;
     object-fit: contain;
     object-fit: contain;
     margin: 0 auto;
     transition: transform 0.35s ease;
     display: block;
}
 
.category-card:hover .card-image img {
     transform: scale(1.12);
}
}


.card-title {
.card-title {
     font-size: 15px;
     font-size: 16px;
     font-weight: 600;
     font-weight: 600;
    color: #003d82;
    text-align: center;
    padding: 0 16px 24px;
     line-height: 1.4;
     line-height: 1.4;
    color: #1e40af;
     flex-grow: 0;
    padding: 12px 12px 16px;
     flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
}


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


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


@media (max-width: 480px) {
@media (max-width: 520px) {
     .category-grid-container {
     .category-grid-container {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
         padding: 0 4vw 20px;
        gap: 20px;
         padding: 0 5vw;
     }
     }
    .welcome-text { padding: 30px 6vw; }
}
}

Версія за 13:20, 11 лютого 2026

/* Привітальний блок */
.welcome-text {
    text-align: center;
    font-style: italic;
    margin: 30px 0 40px;
    padding: 35px 5vw;
    background: linear-gradient(135deg, #003d82 0%, #004080 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,61,130,0.20);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.welcome-text strong {
    color: #ffd700;
    font-size: 26px;
    font-weight: 700;
    display: block;
    margin-top: 12px;
    font-style: normal;
}

/* Заголовок "Категорії" — без фону, мінімалістично */
.section-categories {
    font-size: 28px;
    font-weight: 700;
    color: #003d82;
    text-align: center;
    margin: 0 0 35px;
    padding: 0;
    background: transparent;
    position: relative;
}

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

/* Сітка карток */
.category-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
    margin: 0 0 60px;
    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);
}

/* JS додає .card-hover, але hover вже є — можна залишити обидва */

/* Вміст картки */
.card-image {
    padding: 28px 0 16px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9ff, #ffffff);
}

.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-text { padding: 30px 6vw; }
}