MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування Мітка: Ручний відкіт |
Немає опису редагування Мітка: Скасовано |
||
| Рядок 32: | Рядок 32: | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | justify-content: space-between; | ||
gap: 40px; | gap: clamp(20px, 4vw, 40px); | ||
padding: 40px 5vw | padding: clamp(30px, 5vw, 40px) clamp(20px, 5vw, 60px); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
width: 100%; | width: 100%; | ||
| Рядок 41: | Рядок 41: | ||
flex: 1; | flex: 1; | ||
text-align: center; | text-align: center; | ||
} | |||
transform: translateX(-50px); | |||
/* Адаптивне зміщення тексту */ | |||
@media (min-width: 1200px) { | |||
.welcome-text { | |||
transform: translateX(-50px); | |||
} | |||
} | |||
@media (max-width: 1199px) and (min-width: 768px) { | |||
.welcome-text { | |||
transform: translateX(-30px); | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
.welcome-text { | |||
transform: translateX(0); | |||
} | |||
} | } | ||
.welcome-subtitle { | .welcome-subtitle { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 1.45rem; | font-size: clamp(1.1rem, 3vw, 1.45rem); | ||
font-weight: 400; | font-weight: 400; | ||
color: #444; | color: #444; | ||
| Рядок 57: | Рядок 74: | ||
.welcome-title { | .welcome-title { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 2.45rem; | font-size: clamp(1.6rem, 5vw, 2.45rem); | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.18; | line-height: 1.18; | ||
| Рядок 67: | Рядок 84: | ||
/* ── Панель статистики (справа від привітання) ── */ | /* ── Панель статистики (справа від привітання) ── */ | ||
.stats-panel { | .stats-panel { | ||
width: | width: clamp(240px, 25vw, 300px); | ||
flex-shrink: 0; | flex-shrink: 0; | ||
background: white; | background: white; | ||
| Рядок 80: | Рядок 97: | ||
color: #003d82; | color: #003d82; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 1rem; | font-size: clamp(0.9rem, 2vw, 1rem); | ||
font-weight: 700; | font-weight: 700; | ||
padding: 12px 18px; | padding: clamp(10px, 2vw, 12px) clamp(14px, 2.5vw, 18px); | ||
border-bottom: 1px solid rgba(0,61,130,0.1); | border-bottom: 1px solid rgba(0,61,130,0.1); | ||
} | } | ||
| Рядок 94: | Рядок 111: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
padding: 10px 18px; | padding: clamp(8px, 1.8vw, 10px) clamp(14px, 2.5vw, 18px); | ||
border-bottom: 1px solid rgba(0,61,130,0.05); | border-bottom: 1px solid rgba(0,61,130,0.05); | ||
transition: background 0.2s; | transition: background 0.2s; | ||
| Рядок 109: | Рядок 126: | ||
.stats-panel-label { | .stats-panel-label { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 14px; | font-size: clamp(12px, 2vw, 14px); | ||
color: #555; | color: #555; | ||
} | } | ||
| Рядок 115: | Рядок 132: | ||
.stats-panel-number { | .stats-panel-number { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 18px; | font-size: clamp(16px, 3vw, 18px); | ||
font-weight: 800; | font-weight: 800; | ||
color: #003d82; | color: #003d82; | ||
| Рядок 125: | Рядок 142: | ||
.section-categories { | .section-categories { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 2.1rem; | font-size: clamp(1.5rem, 5vw, 2.1rem); | ||
font-weight: 700; | font-weight: 700; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
margin: 30px | margin: clamp(20px, 4vw, 30px) auto clamp(20px, 4vw, 30px); | ||
padding: 0; | padding: 0 clamp(15px, 3vw, 20px); | ||
background: transparent; | background: transparent; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
/* | position: relative; | ||
margin-right: calc(360px + 24px); | } | ||
/* Адаптивний margin-right для заголовка */ | |||
@media (min-width: 1200px) { | |||
.section-categories { | |||
margin-right: calc(360px + 24px); | |||
} | |||
} | |||
@media (max-width: 1199px) and (min-width: 768px) { | |||
.section-categories { | |||
margin-right: 0; | |||
padding-left: clamp(20px, 5vw, 40px); | |||
padding-right: clamp(20px, 5vw, 40px); | |||
text-align: left; | |||
} | |||
.section-categories::after { | |||
margin-left: 0; | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
.section-categories { | |||
margin-right: 0; | |||
text-align: center; | |||
} | |||
.section-categories::after { | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
} | } | ||
| Рядок 140: | Рядок 186: | ||
content: ''; | content: ''; | ||
display: block; | display: block; | ||
width: 90px; | width: clamp(60px, 10vw, 90px); | ||
height: 4px; | height: 4px; | ||
background: #ffd700; | background: #ffd700; | ||
| Рядок 152: | Рядок 198: | ||
.main-content-layout { | .main-content-layout { | ||
display: flex; | display: flex; | ||
gap: 24px; | gap: clamp(16px, 3vw, 24px); | ||
align-items: flex-start; | align-items: flex-start; | ||
padding: 0 5vw; | padding: 0 clamp(15px, 5vw, 60px); | ||
margin: 0 0 70px; | margin: 0 0 clamp(40px, 8vw, 70px); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
width: 100%; | width: 100%; | ||
} | } | ||
/* ── Сітка карток | /* ── Сітка карток ── */ | ||
.category-grid-container { | .category-grid-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); | ||
gap: 20px; | gap: clamp(16px, 2.5vw, 20px); | ||
flex: 1; | flex: 1; | ||
min-width: 0; | min-width: 0; | ||
} | |||
/* Контроль кількості колонок через медіа-запити */ | |||
@media (min-width: 1200px) { | |||
.category-grid-container { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
} | |||
@media (max-width: 1199px) and (min-width: 768px) { | |||
.category-grid-container { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
.category-grid-container { | |||
grid-template-columns: 1fr; | |||
} | |||
} | } | ||
/* ── Права колонка ── */ | /* ── Права колонка ── */ | ||
.right-column { | .right-column { | ||
width: 360px; | width: clamp(280px, 25vw, 360px); | ||
min-width: 360px; | min-width: clamp(260px, 22vw, 360px); | ||
flex-shrink: 0; | flex-shrink: 0; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 20px; | gap: clamp(16px, 2.5vw, 20px); | ||
align-self: flex-start; | align-self: flex-start; | ||
padding-top: 0; | padding-top: 0; | ||
| Рядок 186: | Рядок 251: | ||
.category-card { | .category-card { | ||
background: white; | background: white; | ||
border-radius: 16px; | border-radius: clamp(12px, 2vw, 16px); | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 6px 24px rgba(0,0,0,0.08); | box-shadow: 0 6px 24px rgba(0,0,0,0.08); | ||
| Рядок 204: | Рядок 269: | ||
.card-image { | .card-image { | ||
padding: 20px 0 12px; | padding: clamp(15px, 3vw, 20px) 0 clamp(8px, 1.5vw, 12px); | ||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | display: flex; | ||
| Рядок 213: | Рядок 278: | ||
.card-image img { | .card-image img { | ||
width: 230px; | width: clamp(120px, 20vw, 230px); | ||
height: 230px; | height: clamp(120px, 20vw, 230px); | ||
object-fit: contain; | object-fit: contain; | ||
transition: transform 0.35s ease; | transition: transform 0.35s ease; | ||
| Рядок 224: | Рядок 289: | ||
.card-title { | .card-title { | ||
font-size: 15px; | font-size: clamp(13px, 2.5vw, 15px); | ||
font-weight: 600; | font-weight: 600; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
padding: 8px 12px 12px; | padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 12px) clamp(10px, 2vw, 12px); | ||
line-height: 1.4; | line-height: 1.4; | ||
flex-grow: 0; | flex-grow: 0; | ||
background: rgba(210, 230, 255, 0.15); | background: rgba(210, 230, 255, 0.15); | ||
border-radius: 10px; | border-radius: 10px; | ||
margin: 0 10px 14px; | margin: 0 clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 14px); | ||
} | } | ||
| Рядок 262: | Рядок 327: | ||
position: relative; | position: relative; | ||
} | } | ||
.random-articles-header { | .random-articles-header { | ||
| Рядок 269: | Рядок 332: | ||
color: #003d82; | color: #003d82; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 1rem; | font-size: clamp(0.9rem, 2vw, 1rem); | ||
font-weight: 700; | font-weight: 700; | ||
padding: 14px 18px; | padding: clamp(12px, 2vw, 14px) clamp(14px, 2.5vw, 18px); | ||
border-bottom: 1px solid rgba(0,61,130,0.1); | border-bottom: 1px solid rgba(0,61,130,0.1); | ||
} | } | ||
#random-articles-list { | #random-articles-list { | ||
padding: 12px; | padding: clamp(10px, 2vw, 12px); | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 12px; | gap: clamp(10px, 2vw, 12px); | ||
} | } | ||
.random-article-card { | .random-article-card { | ||
display: flex; | display: flex; | ||
gap: 14px; | gap: clamp(10px, 2vw, 14px); | ||
padding: 14px; | padding: clamp(10px, 2vw, 14px); | ||
border-radius: 12px; | border-radius: clamp(10px, 1.8vw, 12px); | ||
background: rgba(210, 230, 255, 0.12); | background: rgba(210, 230, 255, 0.12); | ||
border: 1px solid rgba(0,61,130,0.07); | border: 1px solid rgba(0,61,130,0.07); | ||
| Рядок 303: | Рядок 366: | ||
.random-article-thumb { | .random-article-thumb { | ||
width: 90px; | width: clamp(70px, 12vw, 90px); | ||
height: 90px; | height: clamp(70px, 12vw, 90px); | ||
border-radius: 10px; | border-radius: clamp(8px, 1.5vw, 10px); | ||
object-fit: cover; | object-fit: cover; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
| Рядок 312: | Рядок 375: | ||
.random-article-thumb-placeholder { | .random-article-thumb-placeholder { | ||
width: 90px; | width: clamp(70px, 12vw, 90px); | ||
height: 90px; | height: clamp(70px, 12vw, 90px); | ||
border-radius: 10px; | border-radius: clamp(8px, 1.5vw, 10px); | ||
flex-shrink: 0; | flex-shrink: 0; | ||
background: linear-gradient(135deg, #e8eef7, #c8d8ee); | background: linear-gradient(135deg, #e8eef7, #c8d8ee); | ||
| Рядок 320: | Рядок 383: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
font-size: 22px; | font-size: clamp(18px, 4vw, 22px); | ||
} | } | ||
| Рядок 330: | Рядок 393: | ||
.random-article-title { | .random-article-title { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 15px; | font-size: clamp(13px, 2.5vw, 15px); | ||
font-weight: 700; | font-weight: 700; | ||
color: #003d82; | color: #003d82; | ||
| Рядок 343: | Рядок 406: | ||
.random-article-excerpt { | .random-article-excerpt { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | ||
font-size: 13px; | font-size: clamp(11px, 2vw, 13px); | ||
color: #555; | color: #555; | ||
line-height: 1.45; | line-height: 1.45; | ||
| Рядок 358: | Рядок 421: | ||
font-size: 13px; | font-size: 13px; | ||
font-family: system-ui, sans-serif; | font-family: system-ui, sans-serif; | ||
} | } | ||
| Рядок 370: | Рядок 429: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 24px; | gap: clamp(20px, 4vw, 24px); | ||
margin: 50px 5vw 60px; | margin: clamp(30px, 6vw, 50px) clamp(15px, 5vw, 60px) clamp(40px, 8vw, 60px); | ||
align-items: stretch; | align-items: stretch; | ||
} | } | ||
| Рядок 378: | Рядок 437: | ||
.contacts-block { | .contacts-block { | ||
flex: 1; | flex: 1; | ||
min-width: | min-width: min(100%, 280px); | ||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.85)); | background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.85)); | ||
backdrop-filter: blur(12px); | backdrop-filter: blur(12px); | ||
-webkit-backdrop-filter: blur(12px); | -webkit-backdrop-filter: blur(12px); | ||
border: 1px solid rgba(0, 61, 130, 0.12); | border: 1px solid rgba(0, 61, 130, 0.12); | ||
border-radius: 16px; | border-radius: clamp(14px, 2vw, 16px); | ||
padding: 24px 28px 28px; | padding: clamp(20px, 3vw, 24px) clamp(20px, 3.5vw, 28px) clamp(24px, 4vw, 28px); | ||
box-shadow: 0 6px 20px rgba(0, 61, 130, 0.08); | box-shadow: 0 6px 20px rgba(0, 61, 130, 0.08); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Рядок 392: | Рядок 451: | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| Рядок 436: | Рядок 456: | ||
.contacts-block h2 { | .contacts-block h2 { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; | ||
font-size: 1.4rem !important; | font-size: clamp(1.2rem, 4vw, 1.4rem) !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
color: #003d82 !important; | color: #003d82 !important; | ||
margin: 0 0 18px 0 !important; | margin: 0 0 clamp(14px, 2.5vw, 18px) 0 !important; | ||
padding: 0 0 12px 0 !important; | padding: 0 0 clamp(8px, 1.5vw, 12px) 0 !important; | ||
line-height: 1.3 !important; | line-height: 1.3 !important; | ||
letter-spacing: -0.3px !important; | letter-spacing: -0.3px !important; | ||
| Рядок 449: | Рядок 469: | ||
.resource-block li, | .resource-block li, | ||
.contacts-block li { | .contacts-block li { | ||
margin-bottom: 10px; | margin-bottom: clamp(8px, 1.5vw, 10px); | ||
line-height: 1.6; | line-height: 1.6; | ||
font-size: 14.5px; | font-size: clamp(13px, 2.2vw, 14.5px); | ||
color: #444; | color: #444; | ||
padding: 8px 12px 8px 28px; | padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.5vw, 12px) clamp(6px, 1.2vw, 8px) clamp(24px, 4vw, 28px); | ||
position: relative; | position: relative; | ||
border-radius: 8px; | border-radius: 8px; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
background: rgba(255, 255, 255, 0.4); | background: rgba(255, 255, 255, 0.4); | ||
} | } | ||
| Рядок 470: | Рядок 484: | ||
content: '→'; | content: '→'; | ||
position: absolute; | position: absolute; | ||
left: 10px; | left: clamp(8px, 1.5vw, 10px); | ||
color: #003d82; | color: #003d82; | ||
font-weight: 700; | font-weight: 700; | ||
font-size: 16px; | font-size: clamp(14px, 2.5vw, 16px); | ||
transition: transform 0.2s; | transition: transform 0.2s; | ||
} | } | ||
/* ════════════════════════════════════ | /* ════════════════════════════════════ | ||
АДАПТИВНІСТЬ | АДАПТИВНІСТЬ - ОСНОВНІ ТОЧКИ ЗЛАМУ | ||
═══════════════════════════════════════ */ | ═══════════════════════════════════════ */ | ||
/* Планшети та маленькі десктопи */ | |||
@media (max-width: 1100px) { | @media (max-width: 1100px) { | ||
.welcome-wrapper { | .welcome-wrapper { | ||
| Рядок 508: | Рядок 501: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.stats-panel { | .stats-panel { | ||
width: 100%; | width: 100%; | ||
max-width: 400px; | max-width: 400px; | ||
margin: 0 auto; | |||
} | } | ||
.main-content-layout { | .main-content-layout { | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.right-column { | .right-column { | ||
width: 100%; | width: 100%; | ||
| Рядок 520: | Рядок 517: | ||
flex-direction: row; | flex-direction: row; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: clamp(16px, 3vw, 24px); | |||
} | } | ||
. | |||
.random-articles-panel { | |||
flex: 1; | |||
min-width: 280px; | |||
} | } | ||
} | } | ||
@media (max-width: | /* Мобільні пристрої (горизонтальна орієнтація) */ | ||
. | @media (max-width: 768px) { | ||
.right-column { | |||
flex-direction: column; | |||
} | } | ||
.random-articles-panel { | |||
width: 100%; | |||
. | |||
} | } | ||
.resources-and-contacts { | .resources-and-contacts { | ||
flex-direction: column; | flex-direction: column; | ||
gap: 20px; | gap: 20px; | ||
} | |||
.resource-block, | |||
.contacts-block { | |||
min-width: 100%; | |||
} | } | ||
} | } | ||
/* | /* Мобільні пристрої (вертикальна орієнтація) */ | ||
. | @media (max-width: 480px) { | ||
.welcome-title { | |||
font-size: clamp(1.4rem, 6vw, 1.8rem); | |||
} | |||
flex-direction: column; | |||
} | .welcome-subtitle { | ||
font-size: clamp(0.9rem, 4vw, 1.1rem); | |||
. | } | ||
} | .stats-panel { | ||
max-width: 100%; | |||
} | |||
. | |||
.stats-panel-item { | |||
flex-direction: column; | |||
align-items: flex-start; | |||
gap: 5px; | |||
} | |||
.stats-panel-label, | |||
.stats-panel-number { | |||
width: 100%; | |||
} | |||
.stats-panel-number { | |||
font-size: clamp(18px, 5vw, 20px); | |||
} | |||
.card-image img { | |||
width: clamp(100px, 30vw, 150px); | |||
height: clamp(100px, 30vw, 150px); | |||
} | |||
.random-article-card { | |||
flex-direction: column; | |||
align-items: center; | |||
text-align: center; | |||
} | } | ||
. | |||
.random-article-thumb, | |||
.random-article-thumb-placeholder { | |||
width: 80px; | |||
height: 80px; | |||
} | } | ||
. | |||
.random-article-title { | |||
font-size: 14px; | font-size: 14px; | ||
} | |||
.random-article-excerpt { | |||
font-size: 12px; | |||
-webkit-line-clamp: 2; | |||
} | |||
.resource-block li, | |||
.contacts-block li { | |||
font-size: 12px; | |||
padding-left: 24px; | |||
} | } | ||
} | } | ||
/* Дуже маленькі екрани */ | |||
@media (max-width: 360px) { | |||
.main-content-layout { | |||
padding: 0 12px; | |||
/* | } | ||
.welcome-wrapper { | |||
padding: 20px 12px; | |||
} | |||
. | |||
.category-card { | |||
border-radius: 12px; | |||
} | |||
.card-title { | |||
font-size: 12px; | |||
} | |||
.resource-block h2, | |||
.contacts-block h2 { | |||
font-size: 1.1rem !important; | |||
} | |||
} | } | ||
/* | /* ════════════════════════════════════ | ||
ДОДАТКОВІ АДАПТИВНІ НАЛАШТУВАННЯ ДЛЯ БОКОВОГО МЕНЮ | |||
═══════════════════════════════════════ */ | |||
@media (max-width: 768px) { | |||
body #mw-panel .portal, | |||
.mw-body #mw-panel .portal { | |||
padding: 12px 10px !important; | |||
margin-bottom: 10px !important; | |||
} | |||
body #mw-panel .portal h3, | |||
.mw-body #mw-panel .portal h3 { | |||
font-size: 13px !important; | |||
margin-bottom: 10px !important; | |||
} | |||
body #mw-panel .portal .body ul li a, | |||
.mw-body #mw-panel .portal .body ul li a { | |||
font-size: 12px !important; | |||
padding: 7px 10px !important; | |||
} | |||
} | } | ||
@media (max-width: 480px) { | |||
#p-personal ul { | |||
padding: 4px 6px !important; | |||
gap: 2px !important; | |||
} | |||
#p-personal li a { | |||
font-size: 12px !important; | |||
padding: 4px 8px !important; | |||
} | |||
#p-namespaces li a, | |||
#p-views li a { | |||
font-size: 12px !important; | |||
} | |||
} | } | ||
.welcome- | /* ════════════════════════════════════ | ||
.stats-panel { | ПОКРАЩЕНА АДАПТИВНІСТЬ ДЛЯ ГРАДІЄНТІВ ТА ЕФЕКТІВ | ||
═══════════════════════════════════════ */ | |||
@media (max-width: 768px) { | |||
.welcome-wrapper { | |||
background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 100%); | |||
} | |||
.stats-panel { | |||
backdrop-filter: blur(8px); | |||
} | |||
.random-articles-panel { | |||
backdrop-filter: blur(8px); | |||
} | |||
.category-card:hover { | |||
transform: translateY(-4px); | |||
} | |||
.category-card:hover .card-image img { | |||
transform: scale(1.08); | |||
} | |||
} | } | ||
/* | /* Для пристроїв з підтримкою hover (настільні) */ | ||
@media (hover: hover) { | |||
.resource-block:hover, | |||
.contacts-block:hover { | |||
- | transform: translateY(-6px); | ||
} | |||
.category-card:hover { | |||
transform: translateY(-8px) scale(1.02); | |||
} | |||
} | } | ||
/* Для сенсорних пристроїв */ | |||
@media (hover: none) { | |||
.category-card:active { | |||
transform: scale(0.98); | |||
/* | } | ||
.random-article-card:active { | |||
background: rgba(210, 230, 255, 0.35); | |||
} | |||
.category-card: | |||
.random-article-card | |||
} | |||
} | } | ||
Версія за 16:40, 24 березня 2026
/* ── Заголовок сторінки ── */
#firstHeading {
font-size: clamp(28px, 4vw, 48px);
}
/* ── Бокове меню ── */
#mw-panel {
font-size: clamp(14px, 1.2vw, 18px);
}
/* ── Прибираємо обмеження Vector ── */
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: none !important;
margin: 0 !important;
}
/* ════════════════════════════════════
ПРИВІТАННЯ + СТАТИСТИКА
═══════════════════════════════════════ */
.welcome-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
gap: clamp(20px, 4vw, 40px);
padding: clamp(30px, 5vw, 40px) clamp(20px, 5vw, 60px);
box-sizing: border-box;
width: 100%;
}
.welcome-text {
flex: 1;
text-align: center;
}
/* Адаптивне зміщення тексту */
@media (min-width: 1200px) {
.welcome-text {
transform: translateX(-50px);
}
}
@media (max-width: 1199px) and (min-width: 768px) {
.welcome-text {
transform: translateX(-30px);
}
}
@media (max-width: 767px) {
.welcome-text {
transform: translateX(0);
}
}
.welcome-subtitle {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(1.1rem, 3vw, 1.45rem);
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', sans-serif;
font-size: clamp(1.6rem, 5vw, 2.45rem);
font-weight: 700;
line-height: 1.18;
color: #003d82;
letter-spacing: -0.3px;
margin: 0;
}
/* ── Панель статистики (справа від привітання) ── */
.stats-panel {
width: clamp(240px, 25vw, 300px);
flex-shrink: 0;
background: white;
border-radius: 16px;
border: 1px solid rgba(0,61,130,0.08);
box-shadow: 0 6px 24px rgba(0,0,0,0.07);
overflow: hidden;
}
.stats-panel-header {
background: rgba(210, 230, 255, 0.35);
color: #003d82;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(0.9rem, 2vw, 1rem);
font-weight: 700;
padding: clamp(10px, 2vw, 12px) clamp(14px, 2.5vw, 18px);
border-bottom: 1px solid rgba(0,61,130,0.1);
}
.stats-panel-list {
padding: 4px 0;
}
.stats-panel-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: clamp(8px, 1.8vw, 10px) clamp(14px, 2.5vw, 18px);
border-bottom: 1px solid rgba(0,61,130,0.05);
transition: background 0.2s;
}
.stats-panel-item:last-child {
border-bottom: none;
}
.stats-panel-item:hover {
background: rgba(210, 230, 255, 0.2);
}
.stats-panel-label {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(12px, 2vw, 14px);
color: #555;
}
.stats-panel-number {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(16px, 3vw, 18px);
font-weight: 800;
color: #003d82;
}
/* ════════════════════════════════════
ЗАГОЛОВОК КАТЕГОРІЙ
═══════════════════════════════════════ */
.section-categories {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(1.5rem, 5vw, 2.1rem);
font-weight: 700;
color: #003d82;
text-align: center;
margin: clamp(20px, 4vw, 30px) auto clamp(20px, 4vw, 30px);
padding: 0 clamp(15px, 3vw, 20px);
background: transparent;
box-sizing: border-box;
position: relative;
}
/* Адаптивний margin-right для заголовка */
@media (min-width: 1200px) {
.section-categories {
margin-right: calc(360px + 24px);
}
}
@media (max-width: 1199px) and (min-width: 768px) {
.section-categories {
margin-right: 0;
padding-left: clamp(20px, 5vw, 40px);
padding-right: clamp(20px, 5vw, 40px);
text-align: left;
}
.section-categories::after {
margin-left: 0;
}
}
@media (max-width: 767px) {
.section-categories {
margin-right: 0;
text-align: center;
}
.section-categories::after {
margin-left: auto;
margin-right: auto;
}
}
.section-categories::after {
content: '';
display: block;
width: clamp(60px, 10vw, 90px);
height: 4px;
background: #ffd700;
margin: 14px auto 0;
border-radius: 2px;
}
/* ════════════════════════════════════
ОСНОВНИЙ LAYOUT: категорії + права колонка
═══════════════════════════════════════ */
.main-content-layout {
display: flex;
gap: clamp(16px, 3vw, 24px);
align-items: flex-start;
padding: 0 clamp(15px, 5vw, 60px);
margin: 0 0 clamp(40px, 8vw, 70px);
box-sizing: border-box;
width: 100%;
}
/* ── Сітка карток ── */
.category-grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
gap: clamp(16px, 2.5vw, 20px);
flex: 1;
min-width: 0;
}
/* Контроль кількості колонок через медіа-запити */
@media (min-width: 1200px) {
.category-grid-container {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 1199px) and (min-width: 768px) {
.category-grid-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 767px) {
.category-grid-container {
grid-template-columns: 1fr;
}
}
/* ── Права колонка ── */
.right-column {
width: clamp(280px, 25vw, 360px);
min-width: clamp(260px, 22vw, 360px);
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: clamp(16px, 2.5vw, 20px);
align-self: flex-start;
padding-top: 0;
}
/* ════════════════════════════════════
КАРТКИ КАТЕГОРІЙ
═══════════════════════════════════════ */
.category-card {
background: white;
border-radius: clamp(12px, 2vw, 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(-6px);
box-shadow: 0 20px 40px rgba(0,61,130,0.18);
border-color: rgba(0,61,130,0.15);
}
.card-image {
padding: clamp(15px, 3vw, 20px) 0 clamp(8px, 1.5vw, 12px);
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background: white;
}
.card-image img {
width: clamp(120px, 20vw, 230px);
height: clamp(120px, 20vw, 230px);
object-fit: contain;
transition: transform 0.35s ease;
}
.category-card:hover .card-image img {
transform: scale(1.12);
}
.card-title {
font-size: clamp(13px, 2.5vw, 15px);
font-weight: 600;
color: #003d82;
text-align: center;
padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 12px) clamp(10px, 2vw, 12px);
line-height: 1.4;
flex-grow: 0;
background: rgba(210, 230, 255, 0.15);
border-radius: 10px;
margin: 0 clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 14px);
}
.card-title pre {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: inherit !important;
font-weight: inherit !important;
color: inherit !important;
white-space: normal !important;
}
/* ════════════════════════════════════
ВИПАДКОВІ СТАТТІ
═══════════════════════════════════════ */
.random-articles-panel {
background: white;
border-radius: 16px;
border: 1px solid rgba(0,61,130,0.08);
box-shadow: 0 6px 24px rgba(0,0,0,0.07);
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
.random-articles-header {
background: rgba(210, 230, 255, 0.35);
color: #003d82;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(0.9rem, 2vw, 1rem);
font-weight: 700;
padding: clamp(12px, 2vw, 14px) clamp(14px, 2.5vw, 18px);
border-bottom: 1px solid rgba(0,61,130,0.1);
}
#random-articles-list {
padding: clamp(10px, 2vw, 12px);
display: flex;
flex-direction: column;
gap: clamp(10px, 2vw, 12px);
}
.random-article-card {
display: flex;
gap: clamp(10px, 2vw, 14px);
padding: clamp(10px, 2vw, 14px);
border-radius: clamp(10px, 1.8vw, 12px);
background: rgba(210, 230, 255, 0.12);
border: 1px solid rgba(0,61,130,0.07);
text-decoration: none;
color: inherit;
transition: all 0.22s ease;
align-items: flex-start;
}
.random-article-card:hover {
background: rgba(210, 230, 255, 0.35);
border-color: rgba(0,61,130,0.18);
transform: translateX(3px);
text-decoration: none;
}
.random-article-thumb {
width: clamp(70px, 12vw, 90px);
height: clamp(70px, 12vw, 90px);
border-radius: clamp(8px, 1.5vw, 10px);
object-fit: cover;
flex-shrink: 0;
background: #eef2f8;
}
.random-article-thumb-placeholder {
width: clamp(70px, 12vw, 90px);
height: clamp(70px, 12vw, 90px);
border-radius: clamp(8px, 1.5vw, 10px);
flex-shrink: 0;
background: linear-gradient(135deg, #e8eef7, #c8d8ee);
display: flex;
align-items: center;
justify-content: center;
font-size: clamp(18px, 4vw, 22px);
}
.random-article-info {
flex: 1;
min-width: 0;
}
.random-article-title {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(13px, 2.5vw, 15px);
font-weight: 700;
color: #003d82;
margin-bottom: 6px;
line-height: 1.35;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.random-article-excerpt {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: clamp(11px, 2vw, 13px);
color: #555;
line-height: 1.45;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.random-articles-loading {
padding: 20px;
text-align: center;
color: #888;
font-size: 13px;
font-family: system-ui, sans-serif;
}
/* ════════════════════════════════════
РЕСУРСИ ТА ПОСИЛАННЯ — MODERN STYLE
═══════════════════════════════════════ */
.resources-and-contacts {
display: flex;
flex-wrap: wrap;
gap: clamp(20px, 4vw, 24px);
margin: clamp(30px, 6vw, 50px) clamp(15px, 5vw, 60px) clamp(40px, 8vw, 60px);
align-items: stretch;
}
.resource-block,
.contacts-block {
flex: 1;
min-width: min(100%, 280px);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.85));
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(0, 61, 130, 0.12);
border-radius: clamp(14px, 2vw, 16px);
padding: clamp(20px, 3vw, 24px) clamp(20px, 3.5vw, 28px) clamp(24px, 4vw, 28px);
box-shadow: 0 6px 20px rgba(0, 61, 130, 0.08);
box-sizing: border-box;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
position: relative;
overflow: hidden;
}
.resource-block h2,
.contacts-block h2 {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
font-size: clamp(1.2rem, 4vw, 1.4rem) !important;
font-weight: 700 !important;
color: #003d82 !important;
margin: 0 0 clamp(14px, 2.5vw, 18px) 0 !important;
padding: 0 0 clamp(8px, 1.5vw, 12px) 0 !important;
line-height: 1.3 !important;
letter-spacing: -0.3px !important;
position: relative;
z-index: 1;
}
.resource-block li,
.contacts-block li {
margin-bottom: clamp(8px, 1.5vw, 10px);
line-height: 1.6;
font-size: clamp(13px, 2.2vw, 14.5px);
color: #444;
padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.5vw, 12px) clamp(6px, 1.2vw, 8px) clamp(24px, 4vw, 28px);
position: relative;
border-radius: 8px;
transition: all 0.2s ease;
background: rgba(255, 255, 255, 0.4);
}
.resource-block li::before,
.contacts-block li::before {
content: '→';
position: absolute;
left: clamp(8px, 1.5vw, 10px);
color: #003d82;
font-weight: 700;
font-size: clamp(14px, 2.5vw, 16px);
transition: transform 0.2s;
}
/* ════════════════════════════════════
АДАПТИВНІСТЬ - ОСНОВНІ ТОЧКИ ЗЛАМУ
═══════════════════════════════════════ */
/* Планшети та маленькі десктопи */
@media (max-width: 1100px) {
.welcome-wrapper {
flex-direction: column;
text-align: center;
}
.stats-panel {
width: 100%;
max-width: 400px;
margin: 0 auto;
}
.main-content-layout {
flex-direction: column;
}
.right-column {
width: 100%;
min-width: unset;
flex-direction: row;
flex-wrap: wrap;
gap: clamp(16px, 3vw, 24px);
}
.random-articles-panel {
flex: 1;
min-width: 280px;
}
}
/* Мобільні пристрої (горизонтальна орієнтація) */
@media (max-width: 768px) {
.right-column {
flex-direction: column;
}
.random-articles-panel {
width: 100%;
}
.resources-and-contacts {
flex-direction: column;
gap: 20px;
}
.resource-block,
.contacts-block {
min-width: 100%;
}
}
/* Мобільні пристрої (вертикальна орієнтація) */
@media (max-width: 480px) {
.welcome-title {
font-size: clamp(1.4rem, 6vw, 1.8rem);
}
.welcome-subtitle {
font-size: clamp(0.9rem, 4vw, 1.1rem);
}
.stats-panel {
max-width: 100%;
}
.stats-panel-item {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.stats-panel-label,
.stats-panel-number {
width: 100%;
}
.stats-panel-number {
font-size: clamp(18px, 5vw, 20px);
}
.card-image img {
width: clamp(100px, 30vw, 150px);
height: clamp(100px, 30vw, 150px);
}
.random-article-card {
flex-direction: column;
align-items: center;
text-align: center;
}
.random-article-thumb,
.random-article-thumb-placeholder {
width: 80px;
height: 80px;
}
.random-article-title {
font-size: 14px;
}
.random-article-excerpt {
font-size: 12px;
-webkit-line-clamp: 2;
}
.resource-block li,
.contacts-block li {
font-size: 12px;
padding-left: 24px;
}
}
/* Дуже маленькі екрани */
@media (max-width: 360px) {
.main-content-layout {
padding: 0 12px;
}
.welcome-wrapper {
padding: 20px 12px;
}
.category-card {
border-radius: 12px;
}
.card-title {
font-size: 12px;
}
.resource-block h2,
.contacts-block h2 {
font-size: 1.1rem !important;
}
}
/* ════════════════════════════════════
ДОДАТКОВІ АДАПТИВНІ НАЛАШТУВАННЯ ДЛЯ БОКОВОГО МЕНЮ
═══════════════════════════════════════ */
@media (max-width: 768px) {
body #mw-panel .portal,
.mw-body #mw-panel .portal {
padding: 12px 10px !important;
margin-bottom: 10px !important;
}
body #mw-panel .portal h3,
.mw-body #mw-panel .portal h3 {
font-size: 13px !important;
margin-bottom: 10px !important;
}
body #mw-panel .portal .body ul li a,
.mw-body #mw-panel .portal .body ul li a {
font-size: 12px !important;
padding: 7px 10px !important;
}
}
@media (max-width: 480px) {
#p-personal ul {
padding: 4px 6px !important;
gap: 2px !important;
}
#p-personal li a {
font-size: 12px !important;
padding: 4px 8px !important;
}
#p-namespaces li a,
#p-views li a {
font-size: 12px !important;
}
}
/* ════════════════════════════════════
ПОКРАЩЕНА АДАПТИВНІСТЬ ДЛЯ ГРАДІЄНТІВ ТА ЕФЕКТІВ
═══════════════════════════════════════ */
@media (max-width: 768px) {
.welcome-wrapper {
background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 100%);
}
.stats-panel {
backdrop-filter: blur(8px);
}
.random-articles-panel {
backdrop-filter: blur(8px);
}
.category-card:hover {
transform: translateY(-4px);
}
.category-card:hover .card-image img {
transform: scale(1.08);
}
}
/* Для пристроїв з підтримкою hover (настільні) */
@media (hover: hover) {
.resource-block:hover,
.contacts-block:hover {
transform: translateY(-6px);
}
.category-card:hover {
transform: translateY(-8px) scale(1.02);
}
}
/* Для сенсорних пристроїв */
@media (hover: none) {
.category-card:active {
transform: scale(0.98);
}
.random-article-card:active {
background: rgba(210, 230, 255, 0.35);
}
}