MediaWiki:Timeless.css: различия между версиями
Материал из Игровой проект Хаос Тайги
Elite (обсуждение | вклад) Нет описания правки |
Elite (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* === КАСТОМНЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ | /* ============================================ | ||
КАСТОМНЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ | |||
Скин: Timeless | |||
Проект: Игровой проект Хаос Тайги | |||
============================================ */ | |||
/* | /* === 1. ГЛАВНЫЙ БАННЕР (HERO) === */ | ||
.hero-banner { | .hero-banner { | ||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | ||
| Строка 11: | Строка 15: | ||
box-shadow: 0 8px 20px rgba(0,0,0,0.15); | box-shadow: 0 8px 20px rgba(0,0,0,0.15); | ||
} | } | ||
.hero-banner h1 { | .hero-banner h1 { | ||
font-size: 2.2em; | font-size: 2.2em; | ||
| Строка 17: | Строка 22: | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
} | } | ||
.hero-banner p { | .hero-banner p { | ||
font-size: 1.1em; | font-size: 1.1em; | ||
| Строка 23: | Строка 29: | ||
} | } | ||
/* | /* Скрываем оглавление внутри баннера (если вдруг появится) */ | ||
.hero-banner #toc, | |||
.hero-banner .toc { | |||
display: none !important; | |||
} | |||
/* === 2. СЕТКА КАРТОЧЕК СЕРВЕРОВ === */ | |||
.server-grid { | .server-grid { | ||
display: flex; | display: flex; | ||
| Строка 42: | Строка 54: | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
} | } | ||
.server-card:hover { | .server-card:hover { | ||
transform: translateY(-5px); | transform: translateY(-5px); | ||
| Строка 48: | Строка 61: | ||
/* Цветовые акценты для разных игр */ | /* Цветовые акценты для разных игр */ | ||
.server-card.tf2 { border-top-color: #e67e22; | .server-card.tf2 { | ||
.server-card.csgo { border-top-color: #3498db; | border-top-color: #e67e22; /* Оранжевый для TF2 */ | ||
.server-card.css { border-top-color: #f1c40f; | } | ||
.server-card.csgo { | |||
border-top-color: #3498db; /* Синий для CS:GO */ | |||
} | |||
.server-card.css { | |||
border-top-color: #f1c40f; /* Жёлтый для CS:S */ | |||
} | |||
.server-card h3 { | .server-card h3 { | ||
| Строка 66: | Строка 87: | ||
margin: 15px 0 0 0; | margin: 15px 0 0 0; | ||
} | } | ||
.server-card ul li { | .server-card ul li { | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
| Строка 71: | Строка 93: | ||
position: relative; | position: relative; | ||
} | } | ||
.server-card ul li::before { | .server-card ul li::before { | ||
content: "▸"; | content: "▸"; | ||
| Строка 77: | Строка 100: | ||
color: #888; | color: #888; | ||
} | } | ||
.server-card ul li a { | .server-card ul li a { | ||
text-decoration: none; | text-decoration: none; | ||
| Строка 83: | Строка 107: | ||
transition: color 0.2s; | transition: color 0.2s; | ||
} | } | ||
.server-card ul li a:hover { | .server-card ul li a:hover { | ||
color: #e67e22; | color: #e67e22; | ||
} | } | ||
/* | /* === 3. БЛОК БЫСТРЫХ ССЫЛОК === */ | ||
.quick-links { | .quick-links { | ||
background: #f8f9fa; | background: #f8f9fa; | ||
| Строка 95: | Строка 120: | ||
border: 1px solid #e9ecef; | border: 1px solid #e9ecef; | ||
} | } | ||
.quick-links strong { | |||
display: block; | |||
margin-bottom: 10px; | |||
font-size: 1.1em; | |||
} | |||
.quick-links a { | .quick-links a { | ||
display: inline-block; | display: inline-block; | ||
margin: 5px 10px; | margin: 5px 10px; | ||
padding: | padding: 10px 18px; | ||
background: #2a2a2a; | background: #2a2a2a; | ||
color: white !important; | color: white !important; | ||
| Строка 104: | Строка 136: | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: 600; | font-weight: 600; | ||
transition: background 0.2s; | transition: background 0.2s, transform 0.2s; | ||
} | } | ||
.quick-links a:hover { | .quick-links a:hover { | ||
background: #e67e22; | background: #e67e22; | ||
transform: translateY(-2px); | |||
} | } | ||
/* | /* === 4. ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ TIMELESS === */ | ||
.skin-timeless.mw-theme-dark .server-card { | .skin-timeless.mw-theme-dark .server-card { | ||
background: #2d2d2d; | background: #2d2d2d; | ||
color: #e0e0e0; | color: #e0e0e0; | ||
} | } | ||
.skin-timeless.mw-theme-dark .server-card ul li a { | .skin-timeless.mw-theme-dark .server-card ul li a { | ||
color: #e0e0e0; | color: #e0e0e0; | ||
} | } | ||
.skin-timeless.mw-theme-dark .server-card ul li a:hover { | |||
color: #e67e22; | |||
} | |||
.skin-timeless.mw-theme-dark .quick-links { | .skin-timeless.mw-theme-dark .quick-links { | ||
background: #222; | background: #222; | ||
border-color: #444; | 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; | |||
} | |||
/* === 5. СКРЫТИЕ БОКОВЫХ ПАНЕЛЕЙ ТОЛЬКО НА ГЛАВНОЙ СТРАНИЦЕ (Home) === */ | |||
/* Скрываем правую панель "Ещё" (инструменты страницы) */ | |||
.skin-timeless.page-Home #mw-panel-page-tools, | |||
.skin-timeless.page-Home .mw-portlet-page-tools, | |||
.skin-timeless.page-Home #p-page-tools, | |||
.skin-timeless.page-Home #mw-panel-tb, | |||
.skin-timeless.page-Home .mw-portlet-page-tools { | |||
display: none !important; | |||
} | } | ||
/* | |||
/* Скрываем левую панель "Навигация" */ | |||
.skin-timeless.page-Home #mw-panel-navigation, | .skin-timeless.page-Home #mw-panel-navigation, | ||
.skin-timeless.page-Home .mw-portlet-navigation, | .skin-timeless.page-Home .mw-portlet-navigation, | ||
.skin-timeless.page-Home .mw-portlet-page-tools { | .skin-timeless.page-Home #p-navigation { | ||
display: none !important; | display: none !important; | ||
} | |||
/* Также скрываем на странице "Заглавная_страница" (если есть перенаправление) */ | |||
.skin-timeless.page-Заглавная_страница #mw-panel-page-tools, | |||
.skin-timeless.page-Заглавная_страница .mw-portlet-page-tools, | |||
.skin-timeless.page-Заглавная_страница #mw-panel-navigation, | |||
.skin-timeless.page-Заглавная_страница .mw-portlet-navigation { | |||
display: none !important; | |||
} | |||
/* === 6. РАСШИРЕНИЕ КОНТЕНТА НА ГЛАВНОЙ СТРАНИЦЕ === */ | |||
.skin-timeless.page-Home #mw-content-container, | |||
.skin-timeless.page-Home .mw-content-container { | |||
max-width: 100% !important; | |||
margin: 0 auto !important; | |||
padding: 0 20px !important; | |||
} | } | ||
.skin-timeless.page-Заглавная_страница #mw-content-container, | |||
.skin-timeless.page- | .skin-timeless.page-Заглавная_страница .mw-content-container { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
padding: 0 20px !important; | |||
} | } | ||
Версия от 13:03, 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; /* Оранжевый для TF2 */
}
.server-card.csgo {
border-top-color: #3498db; /* Синий для CS:GO */
}
.server-card.css {
border-top-color: #f1c40f; /* Жёлтый для CS:S */
}
.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. ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ TIMELESS === */
.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;
}
/* === 5. СКРЫТИЕ БОКОВЫХ ПАНЕЛЕЙ ТОЛЬКО НА ГЛАВНОЙ СТРАНИЦЕ (Home) === */
/* Скрываем правую панель "Ещё" (инструменты страницы) */
.skin-timeless.page-Home #mw-panel-page-tools,
.skin-timeless.page-Home .mw-portlet-page-tools,
.skin-timeless.page-Home #p-page-tools,
.skin-timeless.page-Home #mw-panel-tb,
.skin-timeless.page-Home .mw-portlet-page-tools {
display: none !important;
}
/* Скрываем левую панель "Навигация" */
.skin-timeless.page-Home #mw-panel-navigation,
.skin-timeless.page-Home .mw-portlet-navigation,
.skin-timeless.page-Home #p-navigation {
display: none !important;
}
/* Также скрываем на странице "Заглавная_страница" (если есть перенаправление) */
.skin-timeless.page-Заглавная_страница #mw-panel-page-tools,
.skin-timeless.page-Заглавная_страница .mw-portlet-page-tools,
.skin-timeless.page-Заглавная_страница #mw-panel-navigation,
.skin-timeless.page-Заглавная_страница .mw-portlet-navigation {
display: none !important;
}
/* === 6. РАСШИРЕНИЕ КОНТЕНТА НА ГЛАВНОЙ СТРАНИЦЕ === */
.skin-timeless.page-Home #mw-content-container,
.skin-timeless.page-Home .mw-content-container {
max-width: 100% !important;
margin: 0 auto !important;
padding: 0 20px !important;
}
.skin-timeless.page-Заглавная_страница #mw-content-container,
.skin-timeless.page-Заглавная_страница .mw-content-container {
max-width: 100% !important;
margin: 0 auto !important;
padding: 0 20px !important;
}