MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/* Привітальний блок */ | /* Обгортка для центрування та відступів */ | ||
.welcome-wrapper { | |||
width: 100%; | |||
padding: 50px 5vw 60px; | |||
background: none; | |||
text-align: center; | |||
box-sizing: border-box; | |||
} | |||
/* Привітальний блок — повністю без фону */ | |||
.welcome-text { | .welcome-text { | ||
display: inline-block; | |||
max-width: 1100px; | |||
width: 100%; | width: 100%; | ||
} | } | ||
.welcome- | /* Малий текст зверху */ | ||
.welcome-subtitle { | |||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |||
font-size: 1.45rem; /* ≈23px */ | |||
font-weight: 400; | |||
color: #444; | |||
letter-spacing: 0.6px; | |||
margin-bottom: 10px; | |||
opacity: 0.92; | |||
} | |||
/* Головний заголовок — однаковий шрифт і стиль */ | |||
.welcome-title { | |||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |||
font-size: 2.45rem; /* ≈39px */ | |||
font-weight: 700; | |||
line-height: 1.18; | |||
color: #003d82; | |||
letter-spacing: -0.3px; | |||
margin: 0; | |||
} | |||
/* Жовтий акцент (якщо хочеш виділити частину назви) */ | |||
.welcome-title .highlight { | |||
color: #ffd700; | color: #ffd700; | ||
font-weight: 800; | |||
font-weight: | |||
} | } | ||
/* Заголовок "Категорії" | /* Заголовок "Категорії" */ | ||
.section-categories { | .section-categories { | ||
font-size: | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | ||
font-size: 2.1rem; /* ≈34px */ | |||
font-weight: 700; | font-weight: 700; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
margin: 0 0 | margin: 0 0 40px; | ||
padding: 0; | padding: 0; | ||
background: transparent; | background: transparent; | ||
} | } | ||
| Рядок 38: | Рядок 58: | ||
content: ''; | content: ''; | ||
display: block; | display: block; | ||
width: | width: 90px; | ||
height: 4px; | height: 4px; | ||
background: #ffd700; | background: #ffd700; | ||
margin: | margin: 14px auto 0; | ||
border-radius: 2px; | border-radius: 2px; | ||
} | } | ||
| Рядок 50: | Рядок 70: | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: 28px 20px; | gap: 28px 20px; | ||
margin: 0 0 | margin: 0 0 70px; | ||
padding: 0 5vw; | padding: 0 5vw; | ||
width: 100%; | width: 100%; | ||
| Рядок 73: | Рядок 93: | ||
} | } | ||
/* Картка | /* Картка */ | ||
.category-card { | .category-card { | ||
background: white; | background: white; | ||
| Рядок 92: | Рядок 112: | ||
border-color: rgba(0,61,130,0.15); | border-color: rgba(0,61,130,0.15); | ||
} | } | ||
/* Вміст картки */ | /* Вміст картки */ | ||
| Рядок 102: | Рядок 120: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
background: | background: white; /* без градієнта */ | ||
} | } | ||
| Рядок 149: | Рядок 167: | ||
padding: 0 5vw; | padding: 0 5vw; | ||
} | } | ||
.welcome- | .welcome-wrapper { padding: 40px 6vw 50px; } | ||
.welcome-subtitle { font-size: 1.25rem; } | |||
.welcome-title { font-size: 2rem; } | |||
.section-categories { font-size: 1.8rem; } | |||
} | } | ||
Версія за 13:25, 11 лютого 2026
/* Обгортка для центрування та відступів */
.welcome-wrapper {
width: 100%;
padding: 50px 5vw 60px;
background: none;
text-align: center;
box-sizing: border-box;
}
/* Привітальний блок — повністю без фону */
.welcome-text {
display: inline-block;
max-width: 1100px;
width: 100%;
}
/* Малий текст зверху */
.welcome-subtitle {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 1.45rem; /* ≈23px */
font-weight: 400;
color: #444;
letter-spacing: 0.6px;
margin-bottom: 10px;
opacity: 0.92;
}
/* Головний заголовок — однаковий шрифт і стиль */
.welcome-title {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 2.45rem; /* ≈39px */
font-weight: 700;
line-height: 1.18;
color: #003d82;
letter-spacing: -0.3px;
margin: 0;
}
/* Жовтий акцент (якщо хочеш виділити частину назви) */
.welcome-title .highlight {
color: #ffd700;
font-weight: 800;
}
/* Заголовок "Категорії" */
.section-categories {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 2.1rem; /* ≈34px */
font-weight: 700;
color: #003d82;
text-align: center;
margin: 0 0 40px;
padding: 0;
background: transparent;
}
.section-categories::after {
content: '';
display: block;
width: 90px;
height: 4px;
background: #ffd700;
margin: 14px auto 0;
border-radius: 2px;
}
/* Сітка карток */
.category-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 28px 20px;
margin: 0 0 70px;
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);
}
/* Вміст картки */
.card-image {
padding: 28px 0 16px;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background: white; /* без градієнта */
}
.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-wrapper { padding: 40px 6vw 50px; }
.welcome-subtitle { font-size: 1.25rem; }
.welcome-title { font-size: 2rem; }
.section-categories { font-size: 1.8rem; }
}