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

Материал из AbduloverA.com
Нет описания правки
Метка: отменено
Нет описания правки
Метка: отменено
Строка 160: Строка 160:


/* =====================================================
/* =====================================================
   ABDUL-WIKI HYBRID THEME (DARK UI / LIGHT CONTENT)
   ABDUL-WIKI: TRUE TRANSPARENT LAYOUT
   ===================================================== */
   ===================================================== */


/* --- 0. ПОДКЛЮЧЕНИЕ ШРИФТА ZEKTON (ПРЯМАЯ ССЫЛКА) --- */
/* --- 0. ШРИФТ ZEKTON (РАБОЧАЯ ССЫЛКА) --- */
@font-face {
@font-face {
     font-family: 'Zekton';
     font-family: 'Zekton';
     /* Ссылка на raw-файл с GitHub */
     /* Прямая ссылка на файл .ttf */
     src: url('https://raw.githubusercontent.com/sofusrose/arch-rice/master/.local/share/fonts/Zekton%20Rg.ttf') format('truetype');
     src: url('https://raw.githubusercontent.com/sofusrose/arch-rice/master/.local/share/fonts/Zekton%20Rg.ttf') format('truetype');
     font-weight: normal;
     font-weight: normal;
Строка 172: Строка 172:
}
}


/* --- 1. ГЛОБАЛЬНЫЙ ФОН --- */
/* --- 1. ГЛОБАЛЬНЫЙ ФОН (УБИРАЕМ БЕЛУЮ ЗАЛИВКУ) --- */
 
/* Сбрасываем все стандартные фоны скина */
html, body, #mw-page-base, #mw-head-base {
    background: transparent !important;
    color: #111;
    font-family: 'Zekton', 'Impact', sans-serif !important; /* Zekton или Impact */
}
 
body {
body {
     /* Делаем фон прозрачным, чтобы видна была картинка скина Timeless */
     /* Задай здесь цвет фона на случай, если картинка не прогрузится */
     background-color: transparent !important;
     background-color: #050505 !important;
     font-family: 'Zekton', 'Impact', sans-serif !important;
     /* Если фон задан в настройках вики, он появится. Если нет - раскомментируй строку ниже: */
    /* background-image: url('ССЫЛКА_НА_ТВОЙ_ФОН.jpg') !important; */
    background-attachment: fixed !important;
    background-size: cover !important;
}
}


/* --- 2. ЦЕНТРАЛЬНЫЙ КОНТЕЙНЕР (СТАТЬЯ) --- */
/* --- 2. КОНТЕЙНЕРЫ (РЕШАЕМ ПРОБЛЕМУ "ДЛИННОЙ ПАНЕЛИ") --- */
/* Делаем его светло-серым (газетным), чтобы читался черный текст */
 
/* Главный контейнер делаем ПРОЗРАЧНЫМ, чтобы было видно фон по бокам */
#mw-content-container {
#mw-content-container {
     background: rgba(225, 225, 225, 0.95) !important; /* Приглушенный светлый */
     background: transparent !important;  
     border: 2px solid #b71c1c !important; /* Красная рамка */
     border: none !important;
     box-shadow: 0 0 60px rgba(0,0,0,1) !important; /* Мощная тень */
     box-shadow: none !important;
    border-radius: 10px !important;
    margin-top: 15px !important;
    padding: 0 !important;
}
}


/* Сам текст статьи */
/* А вот САМУ СТАТЬЮ (центр) красим в светло-серый */
#content, .mw-body {
#content, .mw-body {
     color: #111 !important; /* ЧЕРНЫЙ ТЕКСТ */
     background: rgba(235, 235, 235, 0.96) !important; /* Светлая бумага */
     background: transparent !important;
    border: 2px solid #b71c1c !important; /* Красная рамка */
     border-radius: 8px !important;
     padding: 25px !important;
     padding: 25px !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.8) !important; /* Тень под листом */
    color: #111 !important; /* Черный текст */
    margin-top: 10px !important;
}
}


/* --- 3. БОКОВЫЕ ПАНЕЛИ (МЕНЮ) - ВОЗВРАЩАЕМ ТЕМНЫЙ СТИЛЬ --- */
/* --- 3. БОКОВЫЕ ПАНЕЛИ (МЕНЮ СЛЕВА И СПРАВА) --- */
/* Сами блоки меню (Навигация, Инструменты) */
 
#mw-site-navigation, #mw-related-navigation, .sidebar-chunk {
/* Делаем их отдельными темными блоками */
     background: rgba(10, 10, 10, 0.85) !important; /* Темный полупрозрачный */
.sidebar-chunk {
     border: 1px solid #b71c1c !important;
     background: rgba(10, 10, 10, 0.9) !important; /* Темный фон */
     border-radius: 8px !important;
     border: 1px solid #b71c1c !important; /* Красная рамка */
     border-radius: 6px !important;
    padding: 10px !important;
     margin-bottom: 15px !important;
     margin-bottom: 15px !important;
     box-shadow: 0 0 15px rgba(0,0,0,0.8) !important;
     box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    padding: 10px !important;
}
}


/* Заголовки в боковом меню */
/* Заголовки меню */
.sidebar-chunk h2 {
.sidebar-chunk h2 {
     color: #42a5f5 !important; /* Голубой неон */
     color: #42a5f5 !important; /* Голубой неон */
     font-family: 'Zekton', sans-serif !important;
     font-family: 'Zekton', 'Impact', sans-serif !important;
     border-bottom: 1px solid #42a5f5 !important;
     border-bottom: 1px solid #42a5f5 !important;
    text-shadow: 0 0 10px rgba(66, 165, 245, 0.6) !important;
     margin-bottom: 10px !important;
     margin-bottom: 10px !important;
    padding-bottom: 5px !important;
    background: transparent !important;
    border-left: none !important; /* Убираем боковую полосу у меню */
}
}


/* Ссылки в боковом меню */
/* Ссылки в меню */
.sidebar-chunk ul li a {
.sidebar-chunk ul li a {
     color: #ccc !important; /* Светлый текст ссылок на темном фоне */
     color: #ccc !important;
    font-size: 0.95em !important;
}
}
.sidebar-chunk ul li a:hover {
.sidebar-chunk ul li a:hover {
     color: #ffd700 !important; /* Золото при наведении */
     color: #ffd700 !important; /* Золото */
     padding-left: 5px !important;
     padding-left: 5px !important;
     transition: 0.2s;
     transition: 0.2s;
}
}


/* --- 4. ЗАГОЛОВКИ В СТАТЬЕ --- */
/* --- 4. ЗАГОЛОВКИ ВНУТРИ СТАТЬИ --- */
 
/* Название статьи */
#firstHeading {
#firstHeading {
    font-family: 'Zekton', 'Impact', sans-serif !important;
     font-size: 2.8em !important;
     font-size: 2.8em !important;
    color: #b71c1c !important; /* Красный */
    text-shadow: 2px 2px 0 #000 !important;
    border-bottom: 3px solid #b71c1c !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
    color: #b71c1c !important; /* Темно-красный */
    text-shadow: 2px 2px 0 #000 !important; /* Тень для объема */
    border-bottom: 3px solid #b71c1c !important;
    padding-bottom: 10px !important;
}
}


/* Главы (H2) */
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: 10px 20px !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
     border-radius: 0 10px 10px 0 !important;
     border-radius: 0 10px 10px 0 !important;
     margin-top: 30px !important;
     margin-top: 30px !important;
    font-family: 'Zekton', 'Impact', sans-serif !important;
     text-shadow: 1px 1px 2px #000 !important;
     text-shadow: 1px 1px 2px #000 !important;
}
}


/* Подзаголовки (H3) */
h3 {
h3 {
     color: #b71c1c !important;
     color: #b71c1c !important;
     border-bottom: 1px dashed #999 !important;
     border-bottom: 2px dashed #999 !important;
    margin-top: 20px !important;
     font-family: 'Zekton', sans-serif !important;
}
 
/* --- 5. ССЫЛКИ В ТЕКСТЕ --- */
#mw-content-text a {
    color: #8b0000 !important; /* Кроваво-красный */
     font-weight: bold !important;
    text-decoration: none !important;
}
#mw-content-text a:hover {
    color: #ff4500 !important; /* Оранжевый */
    text-decoration: underline !important;
}
#mw-content-text a.new { color: #ff0000 !important; }
 
/* --- 6. КАРТИНКИ (УБИРАЕМ ОСТРЫЕ УГЛЫ) --- */
div.thumbinner {
    background-color: #f5f5f5 !important;
    border: 1px solid #b71c1c !important;
    border-radius: 8px !important; /* Скругление рамки */
    padding: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}
}


div.thumbinner img {
/* --- 5. ССЫЛКИ И ТЕКСТ --- */
    border-radius: 4px !important; /* Скругление самой картинки */
a { color: #b71c1c !important; text-decoration: none !important; font-weight: bold; }
    border: 1px solid #ccc !important;
a:hover { color: #e65100 !important; text-decoration: underline !important; }
}
a.new { color: #ff0000 !important; }


/* --- 7. КНОПКИ В ШАПКЕ (Заглавная, Обсуждение) --- */
/* --- 6. ВЕРХНИЕ КНОПКИ (ЗАГЛАВНАЯ...) --- */
/* Фон всей панели */
#p-namespaces, #p-views, #p-cactions {
#p-namespaces, #p-views, #p-cactions {
     background: transparent !important;
     background: transparent !important; /* Прозрачный фон под кнопками */
}
}


/* Кнопки */
.mw-portlet-body ul li a {
.mw-portlet-body ul li a {
     background: rgba(0,0,0,0.8) !important;
     background: #1a1a1a !important;
     color: #ddd !important;
     color: #ddd !important;
     border: 1px solid #555 !important;
     border: 1px solid #555 !important;
     border-bottom: none !important;
     border-bottom: none !important;
     margin-right: 3px !important;
     margin-right: 4px !important;
     border-radius: 6px 6px 0 0 !important;
     border-radius: 5px 5px 0 0 !important;
     font-family: 'Zekton', sans-serif !important;
     font-family: 'Zekton', 'Impact', sans-serif !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
}
}


/* Активная кнопка */
.mw-portlet-body ul li.selected a {
.mw-portlet-body ul li.selected a {
     background: #b71c1c !important;
     background: #b71c1c !important;
     color: #fff !important;
     color: #fff !important;
     border: 1px solid #ff0000 !important;
     border: 1px solid #ff0000 !important;
    padding-bottom: 8px !important;
     font-weight: bold !important;
     font-weight: bold !important;
    padding-bottom: 10px !important;
}
}


.mw-portlet-body ul li a:hover {
/* --- 7. ЛОГОТИП (НАЗВАНИЕ) --- */
    background: #333 !important;
    color: #ffd700 !important;
}
 
/* --- 8. ЛОГОТИП --- */
/* Исправляем название, чтобы оно было золотым */
.mw-wiki-title {
.mw-wiki-title {
     color: #ffd700 !important;
     color: #ffd700 !important;
     text-shadow: 0 0 10px #b71c1c !important;
     text-shadow: 2px 2px 0 #b71c1c !important;
     font-family: 'Zekton', Impact, sans-serif !important;
     font-family: 'Zekton', 'Impact', sans-serif !important;
}
}

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

/* Контекст всплывающего окна */
.mw-echo-ui-notificationsListWidget a, #p-personal .mw-echo-ui-notificationsListWidget a.new {
    /* color: #54595d; */
    background: linear-gradient(0deg, #ff8000, #ffffff);
}


.oo-ui-popupWidget-head {
    background: linear-gradient(12deg, black, transparent);
    text-shadow: 0px 0px 2px rgba(255,255,0);
    color: #FFFFFF;
}



div.mw-warning-with-logexcerpt {
    padding: 3px;
    margin-bottom: 3px;
    color: white;
    border: 4px solid rgba(255, 255, 0, 0.75);
    background: rgba(64,64,64,0.9);
    clear: both;
}


div.embedvideo.ev_left {
    margin-right: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px 10px rgba(255, 0, 0, 0.5);
}


div.embedvideo.ev_right {
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px 10px rgba(255, 0, 0, 0.5);
}
/* === УНИВЕРСАЛЬНАЯ АБДУЛО-ГАЛЕРЕЯ (FINAL) === */

/* ОБЩИЙ КОНТЕЙНЕР */
.abdul-gallery-container {
    margin: 20px 0;
    width: 100%;
}

/* ЗАГОЛОВОК */
.abdul-gallery-title {
    font-family: 'Zekton', 'Impact', sans-serif;
    font-size: 1.5em;
    color: #b71c1c;
    text-transform: uppercase;
    border-bottom: 2px solid #b71c1c;
    display: inline-block;
    padding-right: 20px;
    margin-bottom: 15px;
}

/* --- ВАРИАНТ 1: СЕТКА --- */
.abdul-grid-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.abdul-grid-item {
    width: 200px;
    height: 200px;
    border: 2px solid #b71c1c;
    border-radius: 8px;
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: 0.2s;
}

.abdul-grid-item:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    z-index: 10;
}

.abdul-grid-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-width: 200px;
    min-height: 200px;
}

/* --- ВАРИАНТ 2: СЛАЙДЕР --- */
.abdul-slider-wrap {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: #000;
    border: 2px solid #b71c1c;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    overflow: hidden;
}

.abdul-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Скрываем скролл Firefox */
}
.abdul-slider-track::-webkit-scrollbar { 
    display: none; /* Скрываем скролл Chrome */
}

.abdul-slide {
    flex: 0 0 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Принудительное вписывание картинки */
.abdul-slide img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; 
}

/* Кнопки навигации */
.abdul-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 2px solid #b71c1c;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    user-select: none;
    transition: 0.2s;
}
.abdul-nav-btn:hover {
    background: #b71c1c;
    transform: translateY(-50%) scale(1.1);
}
.abdul-nav-btn.prev { left: 10px; }
.abdul-nav-btn.next { right: 10px; }

/* =====================================================
   ABDUL-WIKI: TRUE TRANSPARENT LAYOUT
   ===================================================== */

/* --- 0. ШРИФТ ZEKTON (РАБОЧАЯ ССЫЛКА) --- */
@font-face {
    font-family: 'Zekton';
    /* Прямая ссылка на файл .ttf */
    src: url('https://raw.githubusercontent.com/sofusrose/arch-rice/master/.local/share/fonts/Zekton%20Rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- 1. ГЛОБАЛЬНЫЙ ФОН (УБИРАЕМ БЕЛУЮ ЗАЛИВКУ) --- */

/* Сбрасываем все стандартные фоны скина */
html, body, #mw-page-base, #mw-head-base {
    background: transparent !important;
    color: #111;
    font-family: 'Zekton', 'Impact', sans-serif !important; /* Zekton или Impact */
}

body {
    /* Задай здесь цвет фона на случай, если картинка не прогрузится */
    background-color: #050505 !important;
    /* Если фон задан в настройках вики, он появится. Если нет - раскомментируй строку ниже: */
    /* background-image: url('ССЫЛКА_НА_ТВОЙ_ФОН.jpg') !important; */
    background-attachment: fixed !important;
    background-size: cover !important;
}

/* --- 2. КОНТЕЙНЕРЫ (РЕШАЕМ ПРОБЛЕМУ "ДЛИННОЙ ПАНЕЛИ") --- */

/* Главный контейнер делаем ПРОЗРАЧНЫМ, чтобы было видно фон по бокам */
#mw-content-container {
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important;
}

/* А вот САМУ СТАТЬЮ (центр) красим в светло-серый */
#content, .mw-body {
    background: rgba(235, 235, 235, 0.96) !important; /* Светлая бумага */
    border: 2px solid #b71c1c !important; /* Красная рамка */
    border-radius: 8px !important;
    padding: 25px !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.8) !important; /* Тень под листом */
    color: #111 !important; /* Черный текст */
    margin-top: 10px !important;
}

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

/* Делаем их отдельными темными блоками */
.sidebar-chunk {
    background: rgba(10, 10, 10, 0.9) !important; /* Темный фон */
    border: 1px solid #b71c1c !important; /* Красная рамка */
    border-radius: 6px !important;
    padding: 10px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
}

/* Заголовки меню */
.sidebar-chunk h2 {
    color: #42a5f5 !important; /* Голубой неон */
    font-family: 'Zekton', 'Impact', sans-serif !important;
    border-bottom: 1px solid #42a5f5 !important;
    margin-bottom: 10px !important;
    padding-bottom: 5px !important;
    background: transparent !important;
    border-left: none !important; /* Убираем боковую полосу у меню */
}

/* Ссылки в меню */
.sidebar-chunk ul li a {
    color: #ccc !important;
}
.sidebar-chunk ul li a:hover {
    color: #ffd700 !important; /* Золото */
    padding-left: 5px !important;
    transition: 0.2s;
}

/* --- 4. ЗАГОЛОВКИ ВНУТРИ СТАТЬИ --- */

/* Название статьи */
#firstHeading {
    font-family: 'Zekton', 'Impact', sans-serif !important;
    font-size: 2.8em !important;
    color: #b71c1c !important; /* Красный */
    text-shadow: 2px 2px 0 #000 !important;
    border-bottom: 3px solid #b71c1c !important;
    text-transform: uppercase !important;
}

/* Главы (H2) */
h2 {
    background: linear-gradient(90deg, #222 0%, rgba(255,255,255,0) 100%) !important;
    border-left: 8px solid #ffd700 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    text-transform: uppercase !important;
    border-radius: 0 10px 10px 0 !important;
    margin-top: 30px !important;
    font-family: 'Zekton', 'Impact', sans-serif !important;
    text-shadow: 1px 1px 2px #000 !important;
}

/* Подзаголовки (H3) */
h3 {
    color: #b71c1c !important;
    border-bottom: 2px dashed #999 !important;
    font-family: 'Zekton', sans-serif !important;
}

/* --- 5. ССЫЛКИ И ТЕКСТ --- */
a { color: #b71c1c !important; text-decoration: none !important; font-weight: bold; }
a:hover { color: #e65100 !important; text-decoration: underline !important; }
a.new { color: #ff0000 !important; }

/* --- 6. ВЕРХНИЕ КНОПКИ (ЗАГЛАВНАЯ...) --- */
#p-namespaces, #p-views, #p-cactions {
    background: transparent !important; /* Прозрачный фон под кнопками */
}

.mw-portlet-body ul li a {
    background: #1a1a1a !important;
    color: #ddd !important;
    border: 1px solid #555 !important;
    border-bottom: none !important;
    margin-right: 4px !important;
    border-radius: 5px 5px 0 0 !important;
    font-family: 'Zekton', 'Impact', sans-serif !important;
    text-transform: uppercase !important;
}

.mw-portlet-body ul li.selected a {
    background: #b71c1c !important;
    color: #fff !important;
    border: 1px solid #ff0000 !important;
    font-weight: bold !important;
    padding-bottom: 10px !important;
}

/* --- 7. ЛОГОТИП (НАЗВАНИЕ) --- */
.mw-wiki-title {
    color: #ffd700 !important;
    text-shadow: 2px 2px 0 #b71c1c !important;
    font-family: 'Zekton', 'Impact', sans-serif !important;
}