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

Матеріал з Київський національний лінгвістичний університет
Перейти до навігації Перейти до пошуку
Немає опису редагування
Немає опису редагування
Мітка: Скасовано
Рядок 1: Рядок 1:
/* Приветственный блок */
.welcome-text {
    text-align: center;
    font-style: italic;
    margin: 30px auto;
    padding: 30px;
    max-width: 1100px;
    background: #003d82;
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,61,130,0.15);
}
.welcome-text strong {
    color: #ffd700;
    font-size: 22px;
    font-weight: 600;
    display: block;
    margin-top: 10px;
    font-style: normal;
}
/* Заголовок секции */
.section-projects {
    background: #003d82;
    color: #ffd700;
    padding: 18px 25px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    margin: 30px auto 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,61,130,0.1);
    max-width: 1100px;
}
.section-projects .emoji {
    font-size: 26px;
    margin-right: 12px;
}
/* Сітка категорій — 4 в ряд */
.category-grid-container {
.category-grid-container {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr);   /* саме 4 стовпці */
     grid-template-columns: repeat(4, 1fr);
     gap: 20px 16px;                         /* відстань між картками */
     gap: 24px 16px;
     max-width: 1100px;
     max-width: 1100px;
     margin: 0 auto;
     margin: 0 auto 40px auto;
     padding: 0 10px;
     padding: 0 10px;
     box-sizing: border-box;
     box-sizing: border-box;
}
}


/* Важливо: стилі саме для вашого шаблону {{Карточка категорії}} */
.category-card {
.category-card {                         /* ← додайте цей клас у шаблон, якщо його ще немає */
     text-align: center;
     text-align: center;
     background: #f8f9fa;
     background: #ffffff;
    border: 1px solid #e0e0e0;
     border-radius: 10px;
     border-radius: 10px;
     padding: 16px 10px;
     padding: 16px 8px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.08);
     box-shadow: 0 2px 8px rgba(0,0,0,0.06);
     transition: transform 0.12s, box-shadow 0.12s;
     transition: all 0.15s ease;
}
}


.category-card:hover {
.category-card:hover {
     transform: translateY(-4px);
     transform: translateY(-3px);
     box-shadow: 0 6px 16px rgba(0,0,0,0.12);
     box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #003d82;
}
}


.category-card img {
.card-image {
     width: 100%;
     margin-bottom: 12px;
     max-width: 120px;         /* або підберіть під розмір ваших іконок */
}
 
.card-image img {
     max-width: 80px;
     height: auto;
     height: auto;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
}


.category-card .title {
.card-title {
     font-size: 16px;
     font-size: 15px;
     font-weight: 600;
     font-weight: 600;
     color: #003d82;
     color: #003d82;
     line-height: 1.35;
     line-height: 1.4;
}
 
.card-title a {
    color: #003d82;
    text-decoration: none;
}
 
.card-title a:hover {
    text-decoration: underline;
}
}


/* Адаптивність (мобільні та планшети) */
/* Адаптивність */
@media (max-width: 1024px) {
@media (max-width: 1024px) {
     .category-grid-container {
     .category-grid-container {
Рядок 100: Рядок 67:
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
     }
     }
}
/* Загальні стилі */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a {
    color: #003d82;
}
a:hover {
    color: #0052a8;
}
}

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

.category-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.category-card {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.15s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #003d82;
}

.card-image {
    margin-bottom: 12px;
}

.card-image img {
    max-width: 80px;
    height: auto;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #003d82;
    line-height: 1.4;
}

.card-title a {
    color: #003d82;
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

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

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

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