MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/* Обгортка для центрування та відступів */ | /* Обгортка для центрування та відступів */ | ||
.welcome-wrapper { | .welcome-wrapper { | ||
| Рядок 7: | Рядок 6: | ||
text-align: center; | text-align: center; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |||
} | } | ||
| Рядок 19: | Рядок 19: | ||
.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.2rem; | ||
font-weight: 400; | font-weight: 400; | ||
color: # | color: #666; | ||
letter-spacing: 0. | letter-spacing: 0.3px; | ||
margin-bottom: | margin-bottom: 8px; | ||
opacity: 0. | opacity: 0.85; | ||
} | } | ||
/* Головний заголовок | /* Головний заголовок */ | ||
.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.1rem; | ||
font-weight: | font-weight: 600; | ||
line-height: 1. | line-height: 1.2; | ||
color: #003d82; | color: #003d82; | ||
letter-spacing: -0. | letter-spacing: -0.2px; | ||
margin: 0; | margin: 0; | ||
} | } | ||
/* Жовтий акцент | /* Жовтий акцент */ | ||
.welcome-title .highlight { | .welcome-title .highlight { | ||
color: #ffd700; | color: #ffd700; | ||
font-weight: | font-weight: 700; | ||
} | } | ||
| Рядок 47: | Рядок 47: | ||
.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: 1.7rem; | ||
font-weight: | font-weight: 600; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
margin: 0 0 | margin: 0 0 36px; | ||
padding: 0; | padding: 0; | ||
background: transparent; | background: transparent; | ||
| Рядок 59: | Рядок 59: | ||
content: ''; | content: ''; | ||
display: block; | display: block; | ||
width: | width: 60px; | ||
height: | height: 3px; | ||
background: #ffd700; | background: #ffd700; | ||
margin: | margin: 10px auto 0; | ||
border-radius: 2px; | border-radius: 2px; | ||
} | } | ||
| Рядок 70: | Рядок 70: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: | gap: 24px 18px; | ||
margin: 0 0 70px; | margin: 0 0 70px; | ||
padding: 0 5vw; | padding: 0 5vw; | ||
| Рядок 76: | Рядок 76: | ||
max-width: none; | max-width: none; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |||
} | } | ||
| Рядок 92: | Рядок 93: | ||
max-width: 1000px !important; | max-width: 1000px !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; | |||
} | |||
/* Глобальный шрифт для всего сайта */ | |||
body, | |||
body * { | |||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; | |||
} | } | ||
| Рядок 97: | Рядок 105: | ||
.category-card { | .category-card { | ||
background: white; | background: white; | ||
border-radius: | border-radius: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 | box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); | ||
transition: all 0. | transition: all 0.25s ease; | ||
cursor: pointer; | cursor: pointer; | ||
border: 1px solid rgba(0,61,130,0. | border: 1px solid rgba(0, 61, 130, 0.06); | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
| Рядок 109: | Рядок 117: | ||
.category-card:hover { | .category-card:hover { | ||
transform: translateY(- | transform: translateY(-6px); | ||
box-shadow: 0 | box-shadow: 0 12px 28px rgba(0, 61, 130, 0.12); | ||
border-color: rgba(0,61,130,0. | border-color: rgba(0, 61, 130, 0.12); | ||
} | } | ||
/* Вміст картки */ | /* Вміст картки */ | ||
.card-image { | .card-image { | ||
padding: | padding: 24px 0 12px; | ||
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: 80px; | ||
height: | height: 80px; | ||
object-fit: contain; | object-fit: contain; | ||
transition: transform 0. | transition: transform 0.3s ease; | ||
} | } | ||
.category-card:hover .card-image img { | .category-card:hover .card-image img { | ||
transform: scale(1. | transform: scale(1.08); | ||
} | } | ||
.card-title { | .card-title { | ||
font-size: | font-size: 14px; | ||
font-weight: | font-weight: 500; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
padding: 0 | padding: 0 14px 20px; | ||
line-height: 1.4; | line-height: 1.4; | ||
flex-grow: 0; | flex-grow: 0; | ||
letter-spacing: 0.1px; | |||
} | } | ||
| Рядок 149: | Рядок 158: | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: | gap: 20px 16px; | ||
} | } | ||
} | } | ||
| Рядок 158: | Рядок 167: | ||
padding: 0 4vw; | padding: 0 4vw; | ||
} | } | ||
.card-image img { width: | .card-image img { width: 72px; height: 72px; } | ||
.card-title { font-size: | .card-title { font-size: 13px; padding-bottom: 18px; } | ||
} | } | ||
| Рядок 165: | Рядок 174: | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
gap: | gap: 16px; | ||
padding: 0 5vw; | padding: 0 5vw; | ||
} | } | ||
.welcome-wrapper { padding: | .welcome-wrapper { padding: 36px 6vw 44px; } | ||
.welcome-subtitle { font-size: 1. | .welcome-subtitle { font-size: 1.05rem; } | ||
.welcome-title { font-size: | .welcome-title { font-size: 1.7rem; } | ||
.section-categories { font-size: 1. | .section-categories { font-size: 1.5rem; } | ||
} | } | ||
/* Блоки ресурсів і контактів */ | |||
.resources-and-contacts { | .resources-and-contacts { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 24px; | ||
margin: | margin: 24px 0 44px; | ||
align-items: stretch; | align-items: stretch; | ||
} | } | ||
| Рядок 185: | Рядок 195: | ||
.contacts-block { | .contacts-block { | ||
flex: 1; | flex: 1; | ||
min-width: | min-width: 260px; | ||
background: rgba( | background: rgba(220, 235, 255, 0.18); /* почти белый, чуть голубой */ | ||
border: 1px solid rgba( | border: 1px solid rgba(180, 210, 240, 0.5); | ||
border-radius: | border-radius: 10px; | ||
padding: 24px; | padding: 20px 24px; | ||
box-shadow: | box-shadow: none; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
/* | /* Заголовки блоків */ | ||
.resource-block h2, | |||
.contacts-block h2 { | |||
font-size: 1.05rem; | |||
font-weight: 600; | |||
color: #003d82; | |||
margin: 0 0 14px 0; | |||
padding-bottom: 10px; | |||
border-bottom: 1.5px solid rgba(255, 215, 0, 0.7); | |||
letter-spacing: 0.1px; | |||
} | |||
/* Списки */ | |||
.resource-block ul, | .resource-block ul, | ||
.contacts-block ul { | .contacts-block ul { | ||
| Рядок 207: | Рядок 227: | ||
} | } | ||
.resource-block li, | .resource-block li, | ||
.contacts-block li { | .contacts-block li { | ||
margin-bottom: | margin-bottom: 9px; | ||
line-height: 1.5; | line-height: 1.5; | ||
font-size: 0.9rem; | |||
color: #444; | |||
} | } | ||
| Рядок 229: | Рядок 239: | ||
color: #1e40af; | color: #1e40af; | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: 400; | |||
} | } | ||
| Рядок 234: | Рядок 245: | ||
.contacts-block li a:hover { | .contacts-block li a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
color: #003d82; | |||
} | } | ||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
.resources-and-contacts { | .resources-and-contacts { | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 16px; | ||
} | } | ||
} | } | ||
Версія за 11:40, 15 лютого 2026
/* Обгортка для центрування та відступів */
.welcome-wrapper {
width: 100%;
padding: 50px 5vw 60px;
background: none;
text-align: center;
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Привітальний блок — повністю без фону */
.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.2rem;
font-weight: 400;
color: #666;
letter-spacing: 0.3px;
margin-bottom: 8px;
opacity: 0.85;
}
/* Головний заголовок */
.welcome-title {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 2.1rem;
font-weight: 600;
line-height: 1.2;
color: #003d82;
letter-spacing: -0.2px;
margin: 0;
}
/* Жовтий акцент */
.welcome-title .highlight {
color: #ffd700;
font-weight: 700;
}
/* Заголовок "Категорії" */
.section-categories {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 1.7rem;
font-weight: 600;
color: #003d82;
text-align: center;
margin: 0 0 36px;
padding: 0;
background: transparent;
}
.section-categories::after {
content: '';
display: block;
width: 60px;
height: 3px;
background: #ffd700;
margin: 10px auto 0;
border-radius: 2px;
}
/* Сітка карток */
.category-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px 18px;
margin: 0 0 70px;
padding: 0 5vw;
width: 100%;
max-width: none;
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Перебиваємо обмеження 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;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
/* Глобальный шрифт для всего сайта */
body,
body * {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
/* Картка */
.category-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
transition: all 0.25s ease;
cursor: pointer;
border: 1px solid rgba(0, 61, 130, 0.06);
height: 100%;
display: flex;
flex-direction: column;
}
.category-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 28px rgba(0, 61, 130, 0.12);
border-color: rgba(0, 61, 130, 0.12);
}
/* Вміст картки */
.card-image {
padding: 24px 0 12px;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background: white;
}
.card-image img {
width: 80px;
height: 80px;
object-fit: contain;
transition: transform 0.3s ease;
}
.category-card:hover .card-image img {
transform: scale(1.08);
}
.card-title {
font-size: 14px;
font-weight: 500;
color: #003d82;
text-align: center;
padding: 0 14px 20px;
line-height: 1.4;
flex-grow: 0;
letter-spacing: 0.1px;
}
/* Адаптивність */
@media (max-width: 1100px) {
.category-grid-container {
grid-template-columns: repeat(3, 1fr);
gap: 20px 16px;
}
}
@media (max-width: 820px) {
.category-grid-container {
grid-template-columns: repeat(2, 1fr);
padding: 0 4vw;
}
.card-image img { width: 72px; height: 72px; }
.card-title { font-size: 13px; padding-bottom: 18px; }
}
@media (max-width: 520px) {
.category-grid-container {
grid-template-columns: 1fr;
gap: 16px;
padding: 0 5vw;
}
.welcome-wrapper { padding: 36px 6vw 44px; }
.welcome-subtitle { font-size: 1.05rem; }
.welcome-title { font-size: 1.7rem; }
.section-categories { font-size: 1.5rem; }
}
/* Блоки ресурсів і контактів */
.resources-and-contacts {
display: flex;
flex-wrap: wrap;
gap: 24px;
margin: 24px 0 44px;
align-items: stretch;
}
.resource-block,
.contacts-block {
flex: 1;
min-width: 260px;
background: rgba(220, 235, 255, 0.18); /* почти белый, чуть голубой */
border: 1px solid rgba(180, 210, 240, 0.5);
border-radius: 10px;
padding: 20px 24px;
box-shadow: none;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
/* Заголовки блоків */
.resource-block h2,
.contacts-block h2 {
font-size: 1.05rem;
font-weight: 600;
color: #003d82;
margin: 0 0 14px 0;
padding-bottom: 10px;
border-bottom: 1.5px solid rgba(255, 215, 0, 0.7);
letter-spacing: 0.1px;
}
/* Списки */
.resource-block ul,
.contacts-block ul {
flex: 1;
list-style: none;
padding-left: 0;
margin: 0;
}
.resource-block li,
.contacts-block li {
margin-bottom: 9px;
line-height: 1.5;
font-size: 0.9rem;
color: #444;
}
.resource-block li a,
.contacts-block li a {
color: #1e40af;
text-decoration: none;
font-weight: 400;
}
.resource-block li a:hover,
.contacts-block li a:hover {
text-decoration: underline;
color: #003d82;
}
@media (max-width: 900px) {
.resources-and-contacts {
flex-direction: column;
gap: 16px;
}
}