MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 6: | Рядок 6: | ||
text-align: center; | text-align: center; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| Рядок 19: | Рядок 18: | ||
.welcome-subtitle { | .welcome-subtitle { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | ||
font-size: 1. | font-size: 1.45rem; /* ≈23px */ | ||
font-weight: 400; | font-weight: 400; | ||
color: # | color: #444; | ||
letter-spacing: 0. | letter-spacing: 0.6px; | ||
margin-bottom: | margin-bottom: 10px; | ||
opacity: 0. | opacity: 0.92; | ||
} | } | ||
/* Головний заголовок */ | /* Головний заголовок — однаковий шрифт і стиль */ | ||
.welcome-title { | .welcome-title { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | ||
font-size: 2. | font-size: 2.45rem; /* ≈39px */ | ||
font-weight: | font-weight: 700; | ||
line-height: 1. | line-height: 1.18; | ||
color: #003d82; | color: #003d82; | ||
letter-spacing: -0. | letter-spacing: -0.3px; | ||
margin: 0; | margin: 0; | ||
} | } | ||
/* Жовтий акцент */ | /* Жовтий акцент (якщо хочеш виділити частину назви) */ | ||
.welcome-title .highlight { | .welcome-title .highlight { | ||
color: #ffd700; | color: #ffd700; | ||
font-weight: | font-weight: 800; | ||
} | } | ||
| Рядок 47: | Рядок 46: | ||
.section-categories { | .section-categories { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | ||
font-size: | font-size: 2.1rem; /* ≈34px */ | ||
font-weight: | 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; | ||
| Рядок 59: | Рядок 58: | ||
content: ''; | content: ''; | ||
display: block; | display: block; | ||
width: | width: 90px; | ||
height: | height: 4px; | ||
background: #ffd700; | background: #ffd700; | ||
margin: | margin: 14px auto 0; | ||
border-radius: 2px; | border-radius: 2px; | ||
} | } | ||
| Рядок 70: | Рядок 69: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: | gap: 28px 20px; | ||
margin: 0 0 70px; | margin: 0 0 70px; | ||
padding: 0 5vw; | padding: 0 5vw; | ||
| Рядок 76: | Рядок 75: | ||
max-width: none; | max-width: none; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| Рядок 93: | Рядок 91: | ||
max-width: 1000px !important; | max-width: 1000px !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
} | } | ||
| Рядок 105: | Рядок 96: | ||
.category-card { | .category-card { | ||
background: white; | background: white; | ||
border-radius: | border-radius: 16px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 | box-shadow: 0 6px 24px rgba(0,0,0,0.08); | ||
transition: all 0. | transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1); | ||
cursor: pointer; | cursor: pointer; | ||
border: 1px solid rgba(0, 61, 130, 0. | border: 1px solid rgba(0,61,130,0.08); | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
| Рядок 117: | Рядок 108: | ||
.category-card:hover { | .category-card:hover { | ||
transform: translateY(- | transform: translateY(-10px); | ||
box-shadow: 0 | box-shadow: 0 20px 40px rgba(0,61,130,0.18); | ||
border-color: rgba(0, 61, 130, 0. | border-color: rgba(0,61,130,0.15); | ||
} | } | ||
/* Вміст картки */ | /* Вміст картки */ | ||
.card-image { | .card-image { | ||
padding: | padding: 28px 0 16px; | ||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
background: white; | background: white; /* без градієнта */ | ||
} | } | ||
.card-image img { | .card-image img { | ||
width: | width: 88px; | ||
height: | height: 88px; | ||
object-fit: contain; | object-fit: contain; | ||
transition: transform 0. | transition: transform 0.35s ease; | ||
} | } | ||
.category-card:hover .card-image img { | .category-card:hover .card-image img { | ||
transform: scale(1. | transform: scale(1.12); | ||
} | } | ||
.card-title { | .card-title { | ||
font-size: | font-size: 16px; | ||
font-weight: | font-weight: 600; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
padding: 0 | padding: 0 16px 24px; | ||
line-height: 1.4; | line-height: 1.4; | ||
flex-grow: 0; | flex-grow: 0; | ||
} | } | ||
| Рядок 158: | Рядок 148: | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: | gap: 24px 18px; | ||
} | } | ||
} | } | ||
| Рядок 167: | Рядок 157: | ||
padding: 0 4vw; | padding: 0 4vw; | ||
} | } | ||
.card-image img { width: | .card-image img { width: 80px; height: 80px; } | ||
.card-title { font-size: | .card-title { font-size: 15px; padding-bottom: 20px; } | ||
} | } | ||
| Рядок 174: | Рядок 164: | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
gap: | gap: 20px; | ||
padding: 0 5vw; | padding: 0 5vw; | ||
} | } | ||
.welcome-wrapper { padding: | .welcome-wrapper { padding: 40px 6vw 50px; } | ||
.welcome-subtitle { font-size: 1. | .welcome-subtitle { font-size: 1.25rem; } | ||
.welcome-title { font-size: | .welcome-title { font-size: 2rem; } | ||
.section-categories { font-size: 1. | .section-categories { font-size: 1.8rem; } | ||
} | } | ||
.resources-and-contacts { | .resources-and-contacts { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 32px; | ||
margin: | margin: 30px 0 50px; | ||
align-items: stretch; | align-items: stretch; /* блоки однакової висоти */ | ||
} | } | ||
| Рядок 195: | Рядок 184: | ||
.contacts-block { | .contacts-block { | ||
flex: 1; | flex: 1; | ||
min-width: | min-width: 280px; | ||
background: rgba( | background: rgba(173, 216, 250, 0.35); /* ← полупрозрачный голубой */ | ||
border: 1px solid rgba( | border: 1px solid rgba(100, 170, 240, 0.45); | ||
border-radius: | border-radius: 12px; | ||
padding: | padding: 24px; | ||
box-shadow: | box-shadow: 0 4px 12px rgba(0, 61, 130, 0.06); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
/* Одинаковая высота — блоки растягиваются по flex-контейнеру */ | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
/* | /* Список занимает оставшееся место, выравнивая высоту блоков */ | ||
.resource-block ul, | .resource-block ul, | ||
.contacts-block ul { | .contacts-block ul { | ||
| Рядок 227: | Рядок 206: | ||
} | } | ||
/* Заголовки */ | |||
.resource-block h2, | |||
.contacts-block h2 { | |||
font-size: 1.45rem; | |||
font-weight: 700; | |||
color: #003d82; | |||
margin: 0 0 16px 0; | |||
padding-bottom: 8px; | |||
} | |||
/* Элементы списка */ | |||
.resource-block li, | .resource-block li, | ||
.contacts-block li { | .contacts-block li { | ||
margin-bottom: | margin-bottom: 12px; | ||
line-height: 1.5; | line-height: 1.5; | ||
} | } | ||
| Рядок 239: | Рядок 227: | ||
color: #1e40af; | color: #1e40af; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Рядок 245: | Рядок 232: | ||
.contacts-block li a:hover { | .contacts-block li a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* Адаптив */ | |||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
.resources-and-contacts { | .resources-and-contacts { | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 24px; | ||
} | } | ||
} | } | ||
Версія за 11:42, 15 лютого 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; }
}
.resources-and-contacts {
display: flex;
flex-wrap: wrap;
gap: 32px;
margin: 30px 0 50px;
align-items: stretch; /* блоки однакової висоти */
}
.resource-block,
.contacts-block {
flex: 1;
min-width: 280px;
background: rgba(173, 216, 250, 0.35); /* ← полупрозрачный голубой */
border: 1px solid rgba(100, 170, 240, 0.45);
border-radius: 12px;
padding: 24px;
box-shadow: 0 4px 12px rgba(0, 61, 130, 0.06);
box-sizing: border-box;
/* Одинаковая высота — блоки растягиваются по flex-контейнеру */
display: flex;
flex-direction: column;
}
/* Список занимает оставшееся место, выравнивая высоту блоков */
.resource-block ul,
.contacts-block ul {
flex: 1;
list-style: none;
padding-left: 0;
margin: 0;
}
/* Заголовки */
.resource-block h2,
.contacts-block h2 {
font-size: 1.45rem;
font-weight: 700;
color: #003d82;
margin: 0 0 16px 0;
padding-bottom: 8px;
}
/* Элементы списка */
.resource-block li,
.contacts-block li {
margin-bottom: 12px;
line-height: 1.5;
}
.resource-block li a,
.contacts-block li a {
color: #1e40af;
text-decoration: none;
}
.resource-block li a:hover,
.contacts-block li a:hover {
text-decoration: underline;
}
/* Адаптив */
@media (max-width: 900px) {
.resources-and-contacts {
flex-direction: column;
gap: 24px;
}
}