MediaWiki:Common.css

Матеріал з Київський національний лінгвістичний університет
Версія від 11:19, 9 лютого 2026, створена Wikiuser (обговорення | внесок) (Створена сторінка: .section-projects { background: #003d82; синий цвет университета: color: #ffd700; жёлтый: padding: 15px 20px; font-size: 18px; font-weight: bold; border-radius: 8px; margin: 20px 0 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.15); text-align: center; } .category-grid { display: grid; grid-template-columns: repeat(5, 1fr); 5 колонок: gap: 20px; padding: 25px...)
(різн.) ← Попередня версія | Поточна версія (різн.) | Новіша версія → (різн.)
Перейти до навігації Перейти до пошуку

Увага: Після публікування слід очистити кеш браузера, щоб побачити зміни.

  • Firefox / Safari: тримайте Shift, коли натискаєте Оновити, або натисніть Ctrl-F5 чи Ctrl-Shift-R (⌘-R на Apple Mac)
  • Google Chrome: натисніть Ctrl-Shift-R (⌘-Shift-R на Apple Mac)
  • Edge: тримайте Ctrl, коли натискаєте Оновити, або натисніть Ctrl-F5.

.section-projects {
    background: #003d82; /* синий цвет университета */
    color: #ffd700; /* жёлтый */
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px 0 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 колонок */
    gap: 20px;
    padding: 25px;
    background: #f0f4ff; /* светло-синий фон */
    border: 3px solid #003d82; /* синяя рамка */
    border-radius: 10px;
    margin-bottom: 20px;
}

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

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

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

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

.category-card {
    background: white;
    border: 2px solid #003d82; /* синяя рамка */
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,61,130,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #ffd700; /* жёлтый */
    transition: height 0.3s ease;
}

.category-card:hover::before {
    height: 5px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,61,130,0.3);
    border-color: #ffd700; /* жёлтая рамка при наведении */
}

.category-card img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin: 0 auto 12px auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .category-title {
    font-size: 14px;
    font-weight: 600;
    color: #003d82; /* синий текст */
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

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

.category-card a:hover {
    color: #ffd700; 
}

.category-card a.image {
    border: none !important;
}

.welcome-text {
    text-align: center;
    font-style: italic;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #003d82 0%, #0052a8 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,61,130,0.3);
}

.welcome-text strong {
    color: #ffd700; 
    font-size: 20px;
    display: block;
    margin-top: 8px;
}

.section-projects .emoji {
    font-size: 24px;
    margin-right: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#content {
    background: white;
}

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

a:hover {
    color: #ffd700;
}

.selected {
    background: #003d82 !important;
    color: #ffd700 !important;
}