MediaWiki:Common.css
Увага: Після публікування слід очистити кеш браузера, щоб побачити зміни.
- Firefox / Safari: тримайте Shift, коли натискаєте Оновити, або натисніть Ctrl-F5 чи Ctrl-Shift-R (⌘-R на Apple Mac)
- Google Chrome: натисніть Ctrl-Shift-R (⌘-Shift-R на Apple Mac)
- Edge: тримайте Ctrl, коли натискаєте Оновити, або натисніть Ctrl-F5.
/* Привітальний блок */
.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; }
}