MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/* Привітальний блок — ширше, в межах екрану */ | |||
.welcome-text { | |||
text-align: center; | |||
font-style: italic; | |||
margin: 20px 0 30px; | |||
padding: 30px 4vw; /* 4vw — комфортні бокові відступи */ | |||
background: #003d82; | |||
color: white; | |||
border-radius: 12px; | |||
box-shadow: 0 4px 20px rgba(0,61,130,0.18); | |||
width: 100%; | |||
max-width: none; | |||
box-sizing: border-box; | |||
} | |||
/* Секція "Наші проєкти" */ | |||
.section-projects { | |||
background: #003d82; | |||
color: #ffd700; | |||
padding: 16px 4vw; | |||
font-size: 20px; | |||
} | font-weight: 700; | ||
} | margin: 0 0 25px; | ||
text-align: center; | |||
box-shadow: 0 3px 12px rgba(0,61,130,0.15); | |||
width: 100%; | |||
max-width: none; | |||
} | |||
/* Сітка карток — ширше, адаптивно */ | |||
.category-grid-container { | |||
display: grid; | |||
grid-template-columns: repeat(4, 1fr); | |||
gap: 24px 18px; /* трохи більше простору */ | |||
margin: 0 0 50px; | |||
padding: 0 4vw 40px; | |||
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: 960px !important; /* або 1000px — повертаємо стандарт для тексту статей */ | |||
margin: 0 auto !important; | |||
} | |||
/* Картки + клікабельність */ | |||
.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; | |||
height: 100%; | |||
} | |||
.category-card:hover { | |||
transform: translateY(-6px); | |||
box-shadow: 0 10px 24px rgba(0,0,0,0.14); | |||
border-color: #a5b4fc; | |||
} | |||
.card-link { | |||
display: flex; | |||
flex-direction: column; | |||
height: 100%; | |||
text-decoration: none; | |||
color: inherit; | |||
} | |||
.card-link:hover .card-title { | |||
text-decoration: underline; | |||
} | |||
.card-image { | |||
padding: 16px 0 0; | |||
flex-grow: 1; | |||
} | |||
.card-image img { | |||
width: 80px; | |||
height: 80px; | |||
object-fit: contain; | |||
margin: 0 auto; | |||
display: block; | |||
} | |||
.card-title { | |||
font-size: 15px; | |||
font-weight: 600; | |||
line-height: 1.4; | |||
color: #1e40af; | |||
padding: 12px 12px 16px; | |||
flex-grow: 1; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
/* Адаптивність */ | |||
@media (max-width: 1024px) { | |||
.category-grid-container { | |||
grid-template-columns: repeat(3, 1fr); | |||
gap: 20px 14px; | |||
} | |||
} | |||
@media (max-width: 768px) { | |||
.category-grid-container { | |||
grid-template-columns: repeat(2, 1fr); | |||
padding: 0 3vw 30px; | |||
} | |||
.card-image img { width: 70px; height: 70px; } | |||
.card-title { font-size: 14.5px; } | |||
} | |||
@media (max-width: 480px) { | |||
.category-grid-container { | |||
grid-template-columns: 1fr; | |||
padding: 0 4vw 20px; | |||
} | |||
} | |||
Версія за 13:05, 11 лютого 2026
/* Привітальний блок — ширше, в межах екрану */
.welcome-text {
text-align: center;
font-style: italic;
margin: 20px 0 30px;
padding: 30px 4vw; /* 4vw — комфортні бокові відступи */
background: #003d82;
color: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,61,130,0.18);
width: 100%;
max-width: none;
box-sizing: border-box;
}
/* Секція "Наші проєкти" */
.section-projects {
background: #003d82;
color: #ffd700;
padding: 16px 4vw;
font-size: 20px;
font-weight: 700;
margin: 0 0 25px;
text-align: center;
box-shadow: 0 3px 12px rgba(0,61,130,0.15);
width: 100%;
max-width: none;
}
/* Сітка карток — ширше, адаптивно */
.category-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px 18px; /* трохи більше простору */
margin: 0 0 50px;
padding: 0 4vw 40px;
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: 960px !important; /* або 1000px — повертаємо стандарт для тексту статей */
margin: 0 auto !important;
}
/* Картки + клікабельність */
.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;
height: 100%;
}
.category-card:hover {
transform: translateY(-6px);
box-shadow: 0 10px 24px rgba(0,0,0,0.14);
border-color: #a5b4fc;
}
.card-link {
display: flex;
flex-direction: column;
height: 100%;
text-decoration: none;
color: inherit;
}
.card-link:hover .card-title {
text-decoration: underline;
}
.card-image {
padding: 16px 0 0;
flex-grow: 1;
}
.card-image img {
width: 80px;
height: 80px;
object-fit: contain;
margin: 0 auto;
display: block;
}
.card-title {
font-size: 15px;
font-weight: 600;
line-height: 1.4;
color: #1e40af;
padding: 12px 12px 16px;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
}
/* Адаптивність */
@media (max-width: 1024px) {
.category-grid-container {
grid-template-columns: repeat(3, 1fr);
gap: 20px 14px;
}
}
@media (max-width: 768px) {
.category-grid-container {
grid-template-columns: repeat(2, 1fr);
padding: 0 3vw 30px;
}
.card-image img { width: 70px; height: 70px; }
.card-title { font-size: 14.5px; }
}
@media (max-width: 480px) {
.category-grid-container {
grid-template-columns: 1fr;
padding: 0 4vw 20px;
}
}