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

Матеріал з Київський національний лінгвістичний університет
Перейти до навігації Перейти до пошуку
Немає опису редагування
Мітка: Скасовано
Немає опису редагування
Мітка: Ручний відкіт
Рядок 1: Рядок 1:
/* ========================================
  СОВРЕМЕННЫЙ МИНИМАЛИСТИЧНЫЙ ДИЗАЙН
  Цвета: синий, белый, жёлтый
  ======================================== */
/* Приветственный блок */
/* Приветственный блок */
.welcome-text {
.welcome-text {
Рядок 10: Рядок 5:
     margin: 30px auto;
     margin: 30px auto;
     padding: 30px;
     padding: 30px;
     max-width: 900px;
     max-width: 1100px;
     background: #003d82;
     background: #003d82;
     color: white;
     color: white;
Рядок 34: Рядок 29:
     font-weight: 600;
     font-weight: 600;
     border-radius: 10px;
     border-radius: 10px;
     margin: 30px 0 20px 0;
     margin: 30px auto 20px;
     text-align: center;
     text-align: center;
     box-shadow: 0 2px 10px rgba(0,61,130,0.1);
     box-shadow: 0 2px 10px rgba(0,61,130,0.1);
    max-width: 1100px;
}
}


Рядок 44: Рядок 40:
}
}


/* Сетка категорий - 4 В РЯД */
/* Сітка категорій — 4 в ряд */
.category-grid {
.category-grid-container {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr); /* 4 колонки */
     grid-template-columns: repeat(4, 1fr);   /* саме 4 стовпці */
     gap: 25px;
     gap: 20px 16px;                         /* відстань між картками */
    padding: 30px;
    max-width: 1100px;
    background: #f8f9fa;
     margin: 0 auto;
    border-radius: 12px;
     padding: 0 10px;
    margin-bottom: 30px;
     box-sizing: border-box;
}
 
/* Адаптивность */
@media (max-width: 1200px) {
     .category-grid {
        grid-template-columns: repeat(3, 1fr);
     }
}
 
@media (max-width: 800px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
     }
}
 
@media (max-width: 500px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
}


/* Карточка категории - МИНИМАЛИСТИЧНЫЙ ДИЗАЙН */
/* Важливо: стилі саме для вашого шаблону {{Карточка категорії}} */
.category-card {
.category-card {                         /* ← додайте цей клас у шаблон, якщо його ще немає */
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
     text-align: center;
     text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 10px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.08);
     box-shadow: 0 2px 8px rgba(0,0,0,0.08);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     transition: transform 0.12s, box-shadow 0.12s;
    cursor: pointer;
    border: 1px solid transparent;
}
}


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


/* Иконка */
.category-card img {
.category-card img {
     width: 70px;
     width: 100%;
     height: 70px;
     max-width: 120px;         /* або підберіть під розмір ваших іконок */
     object-fit: contain;
     height: auto;
     margin: 0 auto 15px auto;
     margin-bottom: 12px;
     display: block;
     display: block;
     transition: transform 0.3s ease;
     margin-left: auto;
    margin-right: auto;
}
}


.category-card:hover img {
.category-card .title {
     transform: scale(1.08);
    font-size: 16px;
    font-weight: 600;
    color: #003d82;
     line-height: 1.35;
}
}


/* Название категории ПОД иконкой */
/* Адаптивність (мобільні та планшети) */
.category-card .category-title {
@media (max-width: 1024px) {
     font-size: 14px;
     .category-grid-container {
    font-weight: 500;
        grid-template-columns: repeat(3, 1fr);
    color: #2c3e50;
     }
    margin: 0;
    line-height: 1.4;
    min-height: 40px; /* чтобы все карточки были одной высоты */
    display: flex;
    align-items: center;
     justify-content: center;
}
}


.category-card .category-title a {
@media (max-width: 720px) {
    text-decoration: none;
    .category-grid-container {
    color: #2c3e50;
        grid-template-columns: repeat(2, 1fr);
     transition: color 0.2s ease;
     }
}
}


.category-card:hover .category-title a {
@media (max-width: 480px) {
     color: #003d82;
     .category-grid-container {
}
        grid-template-columns: 1fr;
 
    }
/* Убираем рамку у ссылок на изображения */
.category-card a.image {
    border: none !important;
}
}


/* Общие улучшения */
/* Загальні стилі */
body {
body {
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
}


/* Цвета ссылок */
a {
a {
     color: #003d82;
     color: #003d82;
    transition: color 0.2s ease;
}
}


a:hover {
a:hover {
     color: #0052a8;
     color: #0052a8;
}
/* Убираем лишние отступы у основного контента */
#mw-content-text {
    margin-top: 0;
}
}

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

/* Приветственный блок */
.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 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* саме 4 стовпці */
    gap: 20px 16px;                          /* відстань між картками */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

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

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.category-card .title {
    font-size: 16px;
    font-weight: 600;
    color: #003d82;
    line-height: 1.35;
}

/* Адаптивність (мобільні та планшети) */
@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;
    }
}

/* Загальні стилі */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a {
    color: #003d82;
}

a:hover {
    color: #0052a8;
}