MediaWiki:Timeless.css: различия между версиями

Материал из AbduloverA.com
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
@font-face { font-family: 'Zekton'; src: url('https://cdn.jsdelivr.net/gh/sofusrose/arch-rice@master/.local/share/fonts/Zekton%20Rg.ttf') format('truetype'); font-weight: normal; font-style: normal; }
/* =====================================================
/* =====================================================
   ABDUL-WIKI FINAL HYBRID (LIGHT CONTENT / DARK UI)
   ABDUL-WIKI: ФИНАЛЬНЫЙ КОД (Zekton FIX + TRANSPARENCY)
   ===================================================== */
   ===================================================== */


/* --- 1. ОСНОВА (ПРОЗРАЧНОСТЬ) --- */
/* --- 1. ГЛОБАЛЬНЫЙ СБРОС (УБИРАЕМ БЕЛЫЕ КРАЯ) --- */
/* Делаем подложки прозрачными, чтобы было видно твою картинку фона */
 
html, body, #mw-page-base, #mw-head-base {
/* Сбрасываем все фоны в прозрачность, чтобы видна была картинка скина */
html, body,  
#mw-page-base,  
#mw-head-base,
#mw-content-container /* Главный контейнер статьи */
{
     background: transparent !important;
     background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* Применяем Zekton (он теперь подхватится с твоего сервера) */
body {
     font-family: 'Zekton', 'Arial', sans-serif !important;
     font-family: 'Zekton', 'Arial', sans-serif !important;
    color: #111; /* Базовый цвет текста */
}
}


/* --- 2. ЦЕНТРАЛЬНЫЙ БЛОК (СТАТЬЯ) - СВЕТЛЫЙ --- */
/* --- 2. ЦЕНТРАЛЬНЫЙ БЛОК (СТАТЬЯ) - СВЕТЛЫЙ ЛИСТ --- */
#mw-content-container {
 
     background: rgba(245, 245, 245, 0.96) !important; /* Светло-серый лист */
/* Сама область текста */
#content {
     background: rgba(235, 235, 235, 0.96) !important; /* Светло-серый, "бумага" */
     border: 2px solid #b71c1c !important; /* Красная рамка */
     border: 2px solid #b71c1c !important; /* Красная рамка */
     border-radius: 8px !important;
     border-radius: 8px !important;
     box-shadow: 0 0 50px rgba(0,0,0,0.9) !important;
     box-shadow: 0 0 50px rgba(0,0,0,0.8) !important;
     margin-top: 15px !important;
     padding: 25px !important;
     padding: 0 !important;
     margin-top: 10px !important;
}
 
/* Текст статьи - ЧЕРНЫЙ */
#content, .mw-body {
     color: #111 !important;
     color: #111 !important;
    background: transparent !important;
    padding: 25px !important;
}
}


/* --- 3. БОКОВЫЕ ПАНЕЛИ (МЕНЮ) - ТЕМНЫЕ --- */
/* --- 3. БОКОВЫЕ ПАНЕЛИ (МЕНЮ) - ТЕМНЫЕ ПЛАВАЮЩИЕ БЛОКИ --- */
/* Убираем белый фон у колонок */
#mw-site-navigation, #mw-related-navigation {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* Сами блоки меню делаем темными "стеклянными" */
/* Сами блоки меню (Навигация, Инструменты) */
.sidebar-chunk {
.sidebar-chunk {
     background: rgba(15, 15, 15, 0.85) !important; /* ТЕМНЫЙ ФОН */
     background: rgba(15, 15, 15, 0.85) !important; /* Темный полупрозрачный */
     border: 1px solid #b71c1c !important;
     border: 1px solid #b71c1c !important;
     border-radius: 6px !important;
     border-radius: 6px !important;
Строка 47: Строка 47:
}
}


/* Заголовки меню (Навигация и т.д.) */
/* Заголовки меню */
.sidebar-chunk h2 {
.sidebar-chunk h2 {
     color: #42a5f5 !important; /* Голубой */
     color: #42a5f5 !important;
     border-bottom: 1px solid #42a5f5 !important;
     border-bottom: 1px solid #42a5f5 !important;
     margin-bottom: 8px !important;
     margin-bottom: 8px !important;
Строка 55: Строка 55:
     font-family: 'Zekton', sans-serif !important;
     font-family: 'Zekton', sans-serif !important;
     text-shadow: 0 0 5px #42a5f5 !important;
     text-shadow: 0 0 5px #42a5f5 !important;
    background: transparent !important; /* Убираем градиент h2, если он был */
}
}


/* Ссылки в меню - БЕЛЫЕ (чтобы видно на темном) */
/* Ссылки в меню */
.sidebar-chunk ul li a {
.sidebar-chunk ul li a {
     color: #ddd !important;  
     color: #ddd !important;
     font-size: 0.95em !important;
     font-weight: bold;
}
    text-shadow: 1px 1px 2px #000 !important;
 
.sidebar-chunk ul li a:hover {
    color: #ffd700 !important; /* Золото */
    padding-left: 5px !important;
    transition: 0.2s;
}
}


Строка 73: Строка 69:
     font-size: 2.8em !important;
     font-size: 2.8em !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
     color: #b71c1c !important; /* Красный заголовок */
     color: #b71c1c !important;
     border-bottom: 3px solid #b71c1c !important;
     border-bottom: 3px solid #b71c1c !important;
     text-shadow: 1px 1px 0 #000 !important;
     text-shadow: 1px 1px 0 #000 !important;
    font-family: 'Zekton', sans-serif !important;
}
}


h2 {
h2 {
    /* Темная полоса, белый текст, Золотая линия */
     background: linear-gradient(90deg, #222 0%, rgba(255,255,255,0) 100%) !important;
     background: linear-gradient(90deg, #222 0%, rgba(255,255,255,0) 100%) !important;
     border-left: 8px solid #ffd700 !important;
     border-left: 8px solid #ffd700 !important;
     color: #fff !important; /* Белый текст на темной полосе */
     color: #fff !important;
     padding: 8px 20px !important;
     padding: 8px 20px !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
Строка 87: Строка 85:
     text-shadow: 1px 1px 2px #000 !important;
     text-shadow: 1px 1px 2px #000 !important;
     border-radius: 0 10px 10px 0 !important;
     border-radius: 0 10px 10px 0 !important;
    font-family: 'Zekton', sans-serif !important;
}
}


h3 {
/* --- 5. ССЫЛКИ И КАРТИНКИ --- */
    color: #b71c1c !important;
    border-bottom: 1px dashed #888 !important;
}
 
/* --- 5. ССЫЛКИ В ТЕКСТЕ --- */
/* Темно-красные, чтобы выделялись на белом */
#mw-content-text a {
#mw-content-text a {
     color: #b71c1c !important;
     color: #b71c1c !important;
    font-weight: bold !important;
     text-decoration: none !important;
     text-decoration: none !important;
    font-weight: bold;
}
}
#mw-content-text a:hover {
#mw-content-text a:hover {
Строка 105: Строка 98:
     text-decoration: underline !important;
     text-decoration: underline !important;
}
}
#mw-content-text a.new { color: #ff0000 !important; }


/* --- 6. КНОПКИ ВЕРХНЕГО МЕНЮ --- */
div.thumbinner {
    background-color: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}
 
/* --- 6. ВЕРХНЕЕ МЕНЮ (КНОПКИ) --- */
#p-namespaces, #p-views, #p-cactions {
#p-namespaces, #p-views, #p-cactions {
     background: transparent !important;
     background: transparent !important;
Строка 117: Строка 116:
     border: 1px solid #555 !important;
     border: 1px solid #555 !important;
     border-bottom: none !important;
     border-bottom: none !important;
    margin-right: 3px !important;
     border-radius: 6px 6px 0 0 !important;
     border-radius: 6px 6px 0 0 !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
    font-family: 'Zekton', sans-serif !important;
}
}


Строка 126: Строка 125:
     color: #fff !important;
     color: #fff !important;
     border-color: #ff0000 !important;
     border-color: #ff0000 !important;
    font-weight: bold !important;
}
/* --- 7. КАРТИНКИ (РАМКИ) --- */
div.thumbinner {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}
}

Версия от 19:45, 25 ноября 2025

/* =====================================================
   ABDUL-WIKI: ФИНАЛЬНЫЙ КОД (Zekton FIX + TRANSPARENCY)
   ===================================================== */

/* --- 1. ГЛОБАЛЬНЫЙ СБРОС (УБИРАЕМ БЕЛЫЕ КРАЯ) --- */

/* Сбрасываем все фоны в прозрачность, чтобы видна была картинка скина */
html, body, 
#mw-page-base, 
#mw-head-base,
#mw-content-container /* Главный контейнер статьи */
{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Применяем Zekton (он теперь подхватится с твоего сервера) */
body {
    font-family: 'Zekton', 'Arial', sans-serif !important;
    color: #111; /* Базовый цвет текста */
}

/* --- 2. ЦЕНТРАЛЬНЫЙ БЛОК (СТАТЬЯ) - СВЕТЛЫЙ ЛИСТ --- */

/* Сама область текста */
#content {
    background: rgba(235, 235, 235, 0.96) !important; /* Светло-серый, "бумага" */
    border: 2px solid #b71c1c !important; /* Красная рамка */
    border-radius: 8px !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.8) !important;
    padding: 25px !important;
    margin-top: 10px !important;
    color: #111 !important;
}

/* --- 3. БОКОВЫЕ ПАНЕЛИ (МЕНЮ) - ТЕМНЫЕ ПЛАВАЮЩИЕ БЛОКИ --- */

/* Сами блоки меню (Навигация, Инструменты) */
.sidebar-chunk {
    background: rgba(15, 15, 15, 0.85) !important; /* Темный полупрозрачный */
    border: 1px solid #b71c1c !important;
    border-radius: 6px !important;
    margin-bottom: 15px !important;
    padding: 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
}

/* Заголовки меню */
.sidebar-chunk h2 {
    color: #42a5f5 !important;
    border-bottom: 1px solid #42a5f5 !important;
    margin-bottom: 8px !important;
    padding-bottom: 5px !important;
    font-family: 'Zekton', sans-serif !important;
    text-shadow: 0 0 5px #42a5f5 !important;
    background: transparent !important; /* Убираем градиент h2, если он был */
}

/* Ссылки в меню */
.sidebar-chunk ul li a {
    color: #ddd !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000 !important;
}

/* --- 4. ЗАГОЛОВКИ СТАТЕЙ --- */
#firstHeading {
    font-size: 2.8em !important;
    text-transform: uppercase !important;
    color: #b71c1c !important;
    border-bottom: 3px solid #b71c1c !important;
    text-shadow: 1px 1px 0 #000 !important;
    font-family: 'Zekton', sans-serif !important;
}

h2 {
    /* Темная полоса, белый текст, Золотая линия */
    background: linear-gradient(90deg, #222 0%, rgba(255,255,255,0) 100%) !important;
    border-left: 8px solid #ffd700 !important;
    color: #fff !important;
    padding: 8px 20px !important;
    text-transform: uppercase !important;
    margin-top: 30px !important;
    text-shadow: 1px 1px 2px #000 !important;
    border-radius: 0 10px 10px 0 !important;
    font-family: 'Zekton', sans-serif !important;
}

/* --- 5. ССЫЛКИ И КАРТИНКИ --- */
#mw-content-text a {
    color: #b71c1c !important;
    text-decoration: none !important;
    font-weight: bold;
}
#mw-content-text a:hover {
    color: #e65100 !important;
    text-decoration: underline !important;
}

div.thumbinner {
    background-color: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* --- 6. ВЕРХНЕЕ МЕНЮ (КНОПКИ) --- */
#p-namespaces, #p-views, #p-cactions {
    background: transparent !important;
}

.mw-portlet-body ul li a {
    background: rgba(20, 20, 20, 0.9) !important;
    color: #ccc !important;
    border: 1px solid #555 !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    text-transform: uppercase !important;
    font-family: 'Zekton', sans-serif !important;
}

.mw-portlet-body ul li.selected a {
    background: #b71c1c !important;
    color: #fff !important;
    border-color: #ff0000 !important;
}