MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування Мітка: Скасовано |
Немає опису редагування Мітка: Скасовано |
||
| Рядок 1: | Рядок 1: | ||
/* ══════════════════════════════════════════════ | /* ══════════════════════════════════════════════ | ||
1. | 1. СБРОС СТАНДАРТНЫХ ОГРАНИЧЕНИЙ MEDIAWIKI | ||
══════════════════════════════════════════════ */ | ══════════════════════════════════════════════ */ | ||
#content, #mw-content-container, .mw-body { | |||
margin: 0; | |||
padding: 0; | |||
max-width: none; | |||
} | |||
/* | /* Скрываем элементы боковой панели, оставляя логотип */ | ||
#mw-panel .portal, #mw-panel h3 { | |||
display: none; | |||
} | } | ||
# | #mw-panel { | ||
width: 0; | |||
position: relative; | |||
} | |||
/* ══════════════════════════════════════════════ | /* ══════════════════════════════════════════════ | ||
2. | 2. ЛОГОТИП | ||
══════════════════════════════════════════════ */ | ══════════════════════════════════════════════ */ | ||
#p-logo { | |||
display: block; | |||
margin: 20px auto; | |||
width: 160px; | |||
height: 160px; | |||
} | |||
#p-logo a { | |||
display: block; | |||
width: 100%; | |||
height: 100%; | |||
background-repeat: no-repeat; | |||
background-size: contain; | |||
background-position: center; | |||
} | |||
/* ══════════════════════════════════════════════ | |||
3. ПРИВЕТСТВИЕ И СТАТИСТИКА | |||
══════════════════════════════════════════════ */ | |||
.welcome-wrapper { | .welcome-wrapper { | ||
display: flex; | display: flex; | ||
align-items: | flex-wrap: wrap; | ||
justify-content: | align-items: flex-start; | ||
gap: | justify-content: center; | ||
gap: 30px; | |||
padding: 60px 5vw; | padding: 60px 5vw; | ||
background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 50%, #fff 100%); | background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 50%, #fff 100%); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.welcome-text { | .welcome-text { | ||
flex: 1; | flex: 1 1 300px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.welcome-title { | .welcome-title { | ||
font-size: clamp(1.8rem, | font-size: clamp(1.8rem, 5vw, 3rem); | ||
font-weight: 800; | font-weight: 800; | ||
color: #003d82; | |||
margin: 0 0 10px; | |||
line-height: 1.1; | |||
- | |||
} | } | ||
.welcome-subtitle { | .welcome-subtitle { | ||
font-size: 1. | font-size: 1.2rem; | ||
color: #444; | color: #444; | ||
margin-bottom: | margin-bottom: 10px; | ||
} | } | ||
.stats-panel { | .stats-panel { | ||
flex: 0 0 280px; | |||
background: rgba(255, 255, 255, 0. | background: rgba(255, 255, 255, 0.8); | ||
backdrop-filter: blur(10px); | backdrop-filter: blur(10px); | ||
border-radius: 20px; | border-radius: 20px; | ||
box-shadow: 0 10px 30px rgba(0, 61, 130, 0.1); | |||
box-shadow: 0 10px 30px rgba(0, 61, 130, 0. | border: 1px solid rgba(0, 61, 130, 0.05); | ||
padding: 15px; | padding: 15px; | ||
text-align: left; | |||
text-align: | |||
} | } | ||
/* Статистика */ | |||
.stats-panel-item { | .stats-panel-item { | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: | padding: 10px 0; | ||
border-bottom: 1px solid rgba(0, 61, 130, 0.05); | border-bottom: 1px solid rgba(0, 61, 130, 0.05); | ||
} | } | ||
.stats-panel-number { font-weight: 800; color: #003d82; } | .stats-panel-number { | ||
font-weight: 800; | |||
color: #003d82; | |||
} | |||
/* ══════════════════════════════════════════════ | /* ══════════════════════════════════════════════ | ||
4. СЕТКА КАТЕГОРИЙ | |||
══════════════════════════════════════════════ */ | ══════════════════════════════════════════════ */ | ||
.section-categories { | .section-categories { | ||
font-size: | font-size: 2rem; | ||
font-weight: 800; | font-weight: 800; | ||
color: #003d82; | color: #003d82; | ||
text-align: center; | text-align: center; | ||
margin: | margin: 60px auto 40px; | ||
position: relative; | |||
} | } | ||
| Рядок 106: | Рядок 111: | ||
width: 80px; | width: 80px; | ||
height: 5px; | height: 5px; | ||
background: | background: #ffd700; | ||
margin: 15px auto 0; | margin: 15px auto 0; | ||
border-radius: 10px; | border-radius: 10px; | ||
| Рядок 113: | Рядок 118: | ||
.main-content-layout { | .main-content-layout { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | |||
justify-content: center; | |||
gap: 30px; | gap: 30px; | ||
padding: 0 5vw; | padding: 0 5vw; | ||
} | } | ||
.category-grid-container { | .category-grid-container { | ||
display: grid | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | ||
gap: 25px | gap: 25px; | ||
width: 100%; | |||
} | } | ||
| Рядок 132: | Рядок 134: | ||
background: white; | background: white; | ||
border-radius: 20px; | border-radius: 20px; | ||
box-shadow: 0 8px 25px rgba(0,0,0,0.06); | |||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); | transition: transform 0.3s ease, box-shadow 0.3s ease; | ||
transition: | text-align: center; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
border: 1px solid rgba(0,61,130,0.05); | |||
} | } | ||
.category-card:hover { | .category-card:hover { | ||
transform: translateY(-10px | transform: translateY(-10px); | ||
box-shadow: 0 | box-shadow: 0 15px 35px rgba(0,61,130,0.15); | ||
} | } | ||
.card-image { padding: 30px 20px; | .card-image { | ||
.card-image img { width: | padding: 30px 20px; | ||
} | |||
.card-image img { | |||
width: 100%; | |||
max-width: 200px; | |||
height: 200px; | |||
object-fit: contain; | |||
margin: 0 auto; | |||
} | |||
.card-title { | .card-title { | ||
background: | background: #f0f6ff; | ||
padding: 15px; | padding: 15px; | ||
font-weight: 700; | font-weight: 700; | ||
color: #003d82; | color: #003d82; | ||
margin: 0 15px 15px; | margin: 0 15px 15px; | ||
border-radius: 12px; | border-radius: 12px; | ||
} | } | ||
/* ══════════════════════════════════════════════ | /* ══════════════════════════════════════════════ | ||
5. АДАПТИВНОСТЬ | |||
══════════════════════════════════════════════ */ | ══════════════════════════════════════════════ */ | ||
@media (max-width: 1200px) { | |||
.stats-panel { | |||
width: 100%; | |||
max-width: 320px; | |||
margin: 20px auto; | |||
flex: 1 1 auto; | |||
} | |||
} | } | ||
@media (max-width: 800px) { | |||
.welcome-wrapper { | |||
flex-direction: column; | |||
padding-top: 30px; | |||
gap: 20px; | |||
@media (max-width: | |||
} | } | ||
.category-grid-container { | |||
. | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | ||
} | } | ||
} | |||
@media (max-width: 650px) { | |||
.category-grid-container { | |||
grid-template-columns: 1fr; | |||
} | } | ||
.category-card { | |||
max-width: 100%; | |||
} | } | ||
.welcome- | .welcome-title { | ||
font-size: 1.6rem; | |||
} | } | ||
#p-logo, #p-logo a { | |||
width: 130px; | |||
height: 130px; | |||
width: | |||
} | } | ||
} | } | ||
/* ══════════════════════════════════════════════ | /* ══════════════════════════════════════════════ | ||
6. | 6. ДОПОЛНИТЕЛЬНЫЕ ФИКСЫ | ||
══════════════════════════════════════════════ */ | ══════════════════════════════════════════════ */ | ||
.random-article-card { | .random-article-card { | ||
background: | background: white; | ||
border-radius: 15px; | border-radius: 15px; | ||
padding: 15px; | padding: 15px; | ||
display: flex; | display: flex; | ||
gap: 15px; | gap: 15px; | ||
text-decoration: none | text-decoration: none; | ||
margin-bottom: 10px; | |||
border: 1px solid rgba(0,61,130,0.05); | border: 1px solid rgba(0,61,130,0.05); | ||
flex-wrap: wrap; | |||
} | } | ||
Версія за 16:30, 24 березня 2026
/* ══════════════════════════════════════════════
1. СБРОС СТАНДАРТНЫХ ОГРАНИЧЕНИЙ MEDIAWIKI
══════════════════════════════════════════════ */
#content, #mw-content-container, .mw-body {
margin: 0;
padding: 0;
max-width: none;
}
/* Скрываем элементы боковой панели, оставляя логотип */
#mw-panel .portal, #mw-panel h3 {
display: none;
}
#mw-panel {
width: 0;
position: relative;
}
/* ══════════════════════════════════════════════
2. ЛОГОТИП
══════════════════════════════════════════════ */
#p-logo {
display: block;
margin: 20px auto;
width: 160px;
height: 160px;
}
#p-logo a {
display: block;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
/* ══════════════════════════════════════════════
3. ПРИВЕТСТВИЕ И СТАТИСТИКА
══════════════════════════════════════════════ */
.welcome-wrapper {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
gap: 30px;
padding: 60px 5vw;
background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 50%, #fff 100%);
box-sizing: border-box;
}
.welcome-text {
flex: 1 1 300px;
text-align: center;
}
.welcome-title {
font-size: clamp(1.8rem, 5vw, 3rem);
font-weight: 800;
color: #003d82;
margin: 0 0 10px;
line-height: 1.1;
}
.welcome-subtitle {
font-size: 1.2rem;
color: #444;
margin-bottom: 10px;
}
.stats-panel {
flex: 0 0 280px;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 61, 130, 0.1);
border: 1px solid rgba(0, 61, 130, 0.05);
padding: 15px;
text-align: left;
}
/* Статистика */
.stats-panel-item {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid rgba(0, 61, 130, 0.05);
}
.stats-panel-number {
font-weight: 800;
color: #003d82;
}
/* ══════════════════════════════════════════════
4. СЕТКА КАТЕГОРИЙ
══════════════════════════════════════════════ */
.section-categories {
font-size: 2rem;
font-weight: 800;
color: #003d82;
text-align: center;
margin: 60px auto 40px;
position: relative;
}
.section-categories::after {
content: '';
display: block;
width: 80px;
height: 5px;
background: #ffd700;
margin: 15px auto 0;
border-radius: 10px;
}
.main-content-layout {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
padding: 0 5vw;
}
.category-grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
width: 100%;
}
.category-card {
background: white;
border-radius: 20px;
box-shadow: 0 8px 25px rgba(0,0,0,0.06);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
display: flex;
flex-direction: column;
border: 1px solid rgba(0,61,130,0.05);
}
.category-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 35px rgba(0,61,130,0.15);
}
.card-image {
padding: 30px 20px;
}
.card-image img {
width: 100%;
max-width: 200px;
height: 200px;
object-fit: contain;
margin: 0 auto;
}
.card-title {
background: #f0f6ff;
padding: 15px;
font-weight: 700;
color: #003d82;
margin: 0 15px 15px;
border-radius: 12px;
}
/* ══════════════════════════════════════════════
5. АДАПТИВНОСТЬ
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
.stats-panel {
width: 100%;
max-width: 320px;
margin: 20px auto;
flex: 1 1 auto;
}
}
@media (max-width: 800px) {
.welcome-wrapper {
flex-direction: column;
padding-top: 30px;
gap: 20px;
}
.category-grid-container {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
}
@media (max-width: 650px) {
.category-grid-container {
grid-template-columns: 1fr;
}
.category-card {
max-width: 100%;
}
.welcome-title {
font-size: 1.6rem;
}
#p-logo, #p-logo a {
width: 130px;
height: 130px;
}
}
/* ══════════════════════════════════════════════
6. ДОПОЛНИТЕЛЬНЫЕ ФИКСЫ
══════════════════════════════════════════════ */
.random-article-card {
background: white;
border-radius: 15px;
padding: 15px;
display: flex;
gap: 15px;
text-decoration: none;
margin-bottom: 10px;
border: 1px solid rgba(0,61,130,0.05);
flex-wrap: wrap;
}