MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 3: | Рядок 3: | ||
============================================= */ | ============================================= */ | ||
/* Привітальний блок */ | /* Привітальний блок — full-width */ | ||
.welcome-text { | .welcome-text { | ||
text-align: center; | text-align: center; | ||
font-style: italic; | font-style: italic; | ||
margin: 30px | margin: 30px -9999rem 30px -9999rem; /* негативні маржини для виходу за контент */ | ||
margin-left: calc(-50vw + 50%); | |||
margin-right: calc(-50vw + 50%); | |||
padding: 30px; | padding: 30px; | ||
background: #003d82; | background: #003d82; | ||
color: white; | color: white; | ||
border-radius: | border-radius: 0; /* прибираємо радіус, бо full-bleed */ | ||
box-shadow: 0 4px 20px rgba(0,61,130,0.18); | box-shadow: 0 4px 20px rgba(0,61,130,0.18); | ||
position: relative; | |||
z-index: 1; | |||
} | } | ||
| Рядок 25: | Рядок 28: | ||
} | } | ||
/* Заголовок секції "Наші проєкти" */ | /* Заголовок секції "Наші проєкти" — full-width */ | ||
.section-projects { | .section-projects { | ||
background: #003d82; | background: #003d82; | ||
| Рядок 32: | Рядок 35: | ||
font-size: 20px; | font-size: 20px; | ||
font-weight: 700; | font-weight: 700; | ||
margin: 35px -9999rem 25px -9999rem; | |||
margin: | margin-left: calc(-50vw + 50%); | ||
margin-right: calc(-50vw + 50%); | |||
text-align: center; | text-align: center; | ||
box-shadow: 0 3px 12px rgba(0,61,130,0.15); | box-shadow: 0 3px 12px rgba(0,61,130,0.15); | ||
position: relative; | |||
z-index: 1; | |||
} | } | ||
| Рядок 45: | Рядок 50: | ||
} | } | ||
/* Сітка карток — | /* Сітка карток — full-width */ | ||
.category-grid-container { | .category-grid-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: 20px 16px; | gap: 20px 16px; | ||
margin: 0 -9999rem 50px -9999rem; | |||
margin: | margin-left: calc(-50vw + 50%); | ||
padding: | margin-right: calc(-50vw + 50%); | ||
padding: 30px 5vw; /* внутрішні відступи з боків для краси */ | |||
box-sizing: border-box; | box-sizing: border-box; | ||
background: #f8fafc; /* легкий фон, щоб видно було розширення */ | |||
} | } | ||
| Рядок 62: | Рядок 69: | ||
border: 1px solid #e2e8f0; | border: 1px solid #e2e8f0; | ||
border-radius: 10px; | border-radius: 10px; | ||
overflow: hidden; /* щоб закруглення працювало */ | |||
box-shadow: 0 3px 10px rgba(0,0,0,0.06); | box-shadow: 0 3px 10px rgba(0,0,0,0.06); | ||
transition: all 0. | transition: all 0.18s ease; | ||
} | } | ||
.category-card:hover { | .category-card:hover { | ||
transform: translateY(- | transform: translateY(-6px); | ||
box-shadow: 0 | box-shadow: 0 10px 24px rgba(0,0,0,0.14); | ||
border-color: # | border-color: #a5b4fc; | ||
} | |||
/* Посилання на всю картку */ | |||
.card-link { | |||
display: block; | |||
height: 100%; | |||
text-decoration: none; | |||
color: inherit; | |||
} | |||
.card-link:hover .card-title { | |||
text-decoration: underline; | |||
} | } | ||
| Рядок 76: | Рядок 95: | ||
.card-image { | .card-image { | ||
margin-bottom: 14px; | margin-bottom: 14px; | ||
padding: 16px 0 0; | |||
} | } | ||
| Рядок 90: | Рядок 110: | ||
font-size: 15px; | font-size: 15px; | ||
font-weight: 600; | font-weight: 600; | ||
line-height: 1. | line-height: 1.4; | ||
color: #1e40af; | color: #1e40af; | ||
min-height: | padding: 0 12px 16px; | ||
min-height: 3em; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
| Рядок 121: | Рядок 131: | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
gap: 16px 12px; | gap: 16px 12px; | ||
padding: 20px 4vw; | |||
} | } | ||
| Рядок 137: | Рядок 148: | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
gap: 16px; | gap: 16px; | ||
padding: | padding: 16px 5vw; | ||
} | } | ||
} | } | ||
/* Загальні стилі | /* Загальні стилі */ | ||
body { | body { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | ||
Версія за 10:45, 11 лютого 2026
/* =============================================
Головна сторінка — привітання та сітка проєктів
============================================= */
/* Привітальний блок — full-width */
.welcome-text {
text-align: center;
font-style: italic;
margin: 30px -9999rem 30px -9999rem; /* негативні маржини для виходу за контент */
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
padding: 30px;
background: #003d82;
color: white;
border-radius: 0; /* прибираємо радіус, бо full-bleed */
box-shadow: 0 4px 20px rgba(0,61,130,0.18);
position: relative;
z-index: 1;
}
.welcome-text strong {
color: #ffd700;
font-size: 24px;
font-weight: 700;
display: block;
margin-top: 12px;
font-style: normal;
}
/* Заголовок секції "Наші проєкти" — full-width */
.section-projects {
background: #003d82;
color: #ffd700;
padding: 16px 24px;
font-size: 20px;
font-weight: 700;
margin: 35px -9999rem 25px -9999rem;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
text-align: center;
box-shadow: 0 3px 12px rgba(0,61,130,0.15);
position: relative;
z-index: 1;
}
.section-projects .emoji {
font-size: 28px;
margin-right: 10px;
vertical-align: middle;
}
/* Сітка карток — full-width */
.category-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px 16px;
margin: 0 -9999rem 50px -9999rem;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
padding: 30px 5vw; /* внутрішні відступи з боків для краси */
box-sizing: border-box;
background: #f8fafc; /* легкий фон, щоб видно було розширення */
}
/* Окрема картка */
.category-card {
text-align: center;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 10px;
overflow: hidden; /* щоб закруглення працювало */
box-shadow: 0 3px 10px rgba(0,0,0,0.06);
transition: all 0.18s ease;
}
.category-card:hover {
transform: translateY(-6px);
box-shadow: 0 10px 24px rgba(0,0,0,0.14);
border-color: #a5b4fc;
}
/* Посилання на всю картку */
.card-link {
display: block;
height: 100%;
text-decoration: none;
color: inherit;
}
.card-link:hover .card-title {
text-decoration: underline;
}
/* Блок з картинкою */
.card-image {
margin-bottom: 14px;
padding: 16px 0 0;
}
.card-image img {
width: 80px;
height: 80px;
object-fit: contain;
display: block;
margin: 0 auto;
}
/* Назва під картинкою */
.card-title {
font-size: 15px;
font-weight: 600;
line-height: 1.4;
color: #1e40af;
padding: 0 12px 16px;
min-height: 3em;
display: flex;
align-items: center;
justify-content: center;
}
/* Адаптивність */
@media (max-width: 1024px) {
.category-grid-container {
grid-template-columns: repeat(3, 1fr);
gap: 18px 14px;
}
}
@media (max-width: 768px) {
.category-grid-container {
grid-template-columns: repeat(2, 1fr);
gap: 16px 12px;
padding: 20px 4vw;
}
.card-image img {
width: 70px;
height: 70px;
}
.card-title {
font-size: 14.5px;
}
}
@media (max-width: 480px) {
.category-grid-container {
grid-template-columns: 1fr;
gap: 16px;
padding: 16px 5vw;
}
}
/* Загальні стилі */
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a {
color: #1d4ed8;
}
a:hover {
color: #1e40af;
}