MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/* Привітальний блок | /* Привітальний блок */ | ||
.welcome-text { | .welcome-text { | ||
text-align: center; | text-align: center; | ||
font-style: italic; | font-style: italic; | ||
margin: | margin: 30px 0 40px; | ||
padding: | padding: 35px 5vw; | ||
background: #003d82; | background: linear-gradient(135deg, #003d82 0%, #004080 100%); | ||
color: white; | color: white; | ||
border-radius: | border-radius: 16px; | ||
box-shadow: 0 | box-shadow: 0 8px 32px rgba(0,61,130,0.20); | ||
width: 100%; | width: 100%; | ||
max-width: none; | max-width: none; | ||
| Рядок 14: | Рядок 14: | ||
} | } | ||
.welcome-text strong { | |||
. | |||
color: #ffd700; | color: #ffd700; | ||
font-size: 26px; | |||
font-size: | |||
font-weight: 700; | font-weight: 700; | ||
margin: | display: block; | ||
margin-top: 12px; | |||
font-style: normal; | |||
} | |||
/* Заголовок "Категорії" — без фону, мінімалістично */ | |||
.section-categories { | |||
font-size: 28px; | |||
font-weight: 700; | |||
color: #003d82; | |||
text-align: center; | text-align: center; | ||
margin: 0 0 35px; | |||
width: | 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 { | .category-grid-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: | gap: 28px 20px; | ||
margin: 0 0 | margin: 0 0 60px; | ||
padding: 0 | padding: 0 5vw; | ||
width: 100%; | width: 100%; | ||
max-width: none; | max-width: none; | ||
| Рядок 40: | Рядок 57: | ||
} | } | ||
/* Перебиваємо обмеження Vector 2022 | /* Перебиваємо обмеження Vector 2022 */ | ||
body.skin-vector-2022 .mw-page-container-inner, | body.skin-vector-2022 .mw-page-container-inner, | ||
body.skin-vector .mw-content-container, | body.skin-vector .mw-content-container, | ||
| Рядок 50: | Рядок 67: | ||
} | } | ||
body.skin-vector-2022 .mw-body, | body.skin-vector-2022 .mw-body, | ||
body.skin-vector-2022 .mw-body-content { | body.skin-vector-2022 .mw-body-content { | ||
max-width: | max-width: 1000px !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
} | } | ||
/* | /* Картка — мінімалістична, сучасна */ | ||
.category-card { | .category-card { | ||
background: white; | |||
background: | border-radius: 16px; | ||
border-radius: | |||
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; | |||
border: 1px solid rgba(0,61,130,0.08); | |||
height: 100%; | height: 100%; | ||
display: flex; | |||
flex-direction: column; | |||
} | } | ||
.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: | border-color: rgba(0,61,130,0.15); | ||
} | } | ||
.card- | /* JS додає .card-hover, але hover вже є — можна залишити обидва */ | ||
/* Вміст картки */ | |||
.card-image { | .card-image { | ||
padding: 16px | padding: 28px 0 16px; | ||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: linear-gradient(to bottom, #f8f9ff, #ffffff); | |||
} | } | ||
.card-image img { | .card-image img { | ||
width: | width: 88px; | ||
height: | height: 88px; | ||
object-fit: contain; | object-fit: contain; | ||
transition: transform 0.35s ease; | |||
} | |||
.category-card:hover .card-image img { | |||
transform: scale(1.12); | |||
} | } | ||
.card-title { | .card-title { | ||
font-size: | font-size: 16px; | ||
font-weight: 600; | font-weight: 600; | ||
color: #003d82; | |||
text-align: center; | |||
padding: 0 16px 24px; | |||
line-height: 1.4; | line-height: 1.4; | ||
flex-grow: 0; | |||
flex-grow: | |||
} | } | ||
/* Адаптивність */ | /* Адаптивність */ | ||
@media (max-width: | @media (max-width: 1100px) { | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: | gap: 24px 18px; | ||
} | } | ||
} | } | ||
@media (max-width: | @media (max-width: 820px) { | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
padding: 0 | 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; } | ||
} | } | ||
@media (max-width: | @media (max-width: 520px) { | ||
.category-grid-container { | .category-grid-container { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
padding: 0 | gap: 20px; | ||
padding: 0 5vw; | |||
} | } | ||
.welcome-text { padding: 30px 6vw; } | |||
} | } | ||
Версія за 13:20, 11 лютого 2026
/* Привітальний блок */
.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; }
}