MediaWiki:Timeless.css: различия между версиями
Материал из Игровой проект Хаос Тайги
Elite (обсуждение | вклад) Нет описания правки |
Elite (обсуждение | вклад) Нет описания правки |
||
| Строка 158: | Строка 158: | ||
.skin-timeless.mw-theme-dark .quick-links a:hover { | .skin-timeless.mw-theme-dark .quick-links a:hover { | ||
background: #e67e22; | background: #e67e22; | ||
} | } | ||
Версия от 13:09, 4 ноября 2026
/* ============================================
КАСТОМНЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ
Скин: Timeless
Проект: Игровой проект Хаос Тайги
============================================ */
/* === 1. ГЛАВНЫЙ БАННЕР (HERO) === */
.hero-banner {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #ffffff;
padding: 40px 20px;
border-radius: 12px;
text-align: center;
margin-bottom: 30px;
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.hero-banner h1 {
font-size: 2.2em;
margin: 0 0 10px 0;
font-weight: 700;
letter-spacing: 1px;
}
.hero-banner p {
font-size: 1.1em;
opacity: 0.9;
margin: 0;
}
.hero-banner #toc,
.hero-banner .toc {
display: none !important;
}
/* === 2. СЕТКА КАРТОЧЕК СЕРВЕРОВ === */
.server-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
}
.server-card {
flex: 1;
min-width: 280px;
background: #ffffff;
border-radius: 10px;
padding: 25px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
border-top: 5px solid #ccc;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.server-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.server-card.tf2 { border-top-color: #e67e22; }
.server-card.csgo { border-top-color: #3498db; }
.server-card.css { border-top-color: #f1c40f; }
.server-card h3 {
margin-top: 0;
font-size: 1.4em;
display: flex;
align-items: center;
gap: 10px;
}
.server-card ul {
list-style: none;
padding: 0;
margin: 15px 0 0 0;
}
.server-card ul li {
margin-bottom: 10px;
padding-left: 20px;
position: relative;
}
.server-card ul li::before {
content: "▸";
position: absolute;
left: 0;
color: #888;
}
.server-card ul li a {
text-decoration: none;
color: #333;
font-weight: 500;
transition: color 0.2s;
}
.server-card ul li a:hover {
color: #e67e22;
}
/* === 3. БЛОК БЫСТРЫХ ССЫЛОК === */
.quick-links {
background: #f8f9fa;
border-radius: 10px;
padding: 20px;
text-align: center;
border: 1px solid #e9ecef;
}
.quick-links strong {
display: block;
margin-bottom: 10px;
font-size: 1.1em;
}
.quick-links a {
display: inline-block;
margin: 5px 10px;
padding: 10px 18px;
background: #2a2a2a;
color: white !important;
border-radius: 6px;
text-decoration: none;
font-weight: 600;
transition: background 0.2s, transform 0.2s;
}
.quick-links a:hover {
background: #e67e22;
transform: translateY(-2px);
}
/* === 4. ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ === */
.skin-timeless.mw-theme-dark .server-card {
background: #2d2d2d;
color: #e0e0e0;
}
.skin-timeless.mw-theme-dark .server-card ul li a {
color: #e0e0e0;
}
.skin-timeless.mw-theme-dark .server-card ul li a:hover {
color: #e67e22;
}
.skin-timeless.mw-theme-dark .quick-links {
background: #222;
border-color: #444;
color: #e0e0e0;
}
.skin-timeless.mw-theme-dark .quick-links a {
background: #444;
}
.skin-timeless.mw-theme-dark .quick-links a:hover {
background: #e67e22;
}