MediaWiki:Dark.css: відмінності між версіями
Wiki (обговорення | внесок) Немає опису редагування |
Wiki (обговорення | внесок) мНемає опису редагування |
||
| (Не показані 3 проміжні версії цього користувача) | |||
| Рядок 196: | Рядок 196: | ||
a:visited { | a:visited { | ||
color: #ffffff !important; | color: #ffffff !important; | ||
} | |||
/* ========================= | |||
ЗМІСТ (TOC) - ТЕМНА ТЕМА | |||
========================= */ | |||
#toc { | |||
background-color: #1c1c1c !important; | |||
color: #ffffff !important; | |||
border: 1px solid #444 !important; | |||
padding: 10px !important; | |||
border-radius: 6px !important; | |||
} | |||
#toc a { | |||
color: #ffffff !important; | |||
text-decoration: none !important; | |||
} | |||
#toc a:hover { | |||
color: #ffcc00 !important; | |||
text-decoration: underline !important; | |||
} | |||
/* ========================= | |||
ЗАГОЛОВКИ - ТЕМНА ТЕМА | |||
========================= */ | |||
.mw-parser-output h1, | |||
.mw-parser-output h2, | |||
.mw-parser-output h3, | |||
.mw-parser-output h4, | |||
.mw-parser-output h5, | |||
.mw-parser-output h6 { | |||
color: #ffffff !important; | |||
border-color: #444 !important; | |||
} | } | ||
| Рядок 714: | Рядок 748: | ||
color: #ffcc00 !important; | color: #ffcc00 !important; | ||
background-color: #2a2a2a !important; | background-color: #2a2a2a !important; | ||
} | |||
/* ========================= | |||
ПРИХОВАННЯ ЕЛЕМЕНТІВ У БІЧНОМУ МЕНЮ MINERVA | |||
========================= */ | |||
/* Приховати "Відмову від відповідальності" в бічному меню */ | |||
@media screen and (max-width: 768px) { | |||
.toggle-list-item:has(a[href*="%D0%92%D1%96%D0%B4%D0%BC%D0%BE%D0%B2%D0%B0_%D0%B2%D1%96%D0%B4_%D0%B2%D1%96%D0%B4%D0%BF%D0%BE%D0%B2%D1%96%D0%B4%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D1%81%D1%82%D1%96"]), | |||
.toggle-list-item:has(a[href*="%D0%92%D1%96%D0%B4%D0%BC%D0%BE%D0%B2%D0%B0"]), | |||
.toggle-list-item:has(.menu__item--disclaimers) { | |||
display: none !important; | |||
} | |||
/* Альтернативний спосіб - приховати за текстом */ | |||
.toggle-list-item__label:contains("Відмова"), | |||
li:has(a:contains("Відмова")) { | |||
display: none !important; | |||
} | |||
} | |||
/* Специфічні селектори для елементів меню */ | |||
.skin-minerva .toggle-list-item a[href*="%D0%92%D1%96%D0%B4%D0%BC%D0%BE%D0%B2%D0%B0"], | |||
.skin-minerva .menu__item--disclaimers { | |||
display: none !important; | |||
} | |||
/* Приховати конкретний список з відмовою */ | |||
.hlist .toggle-list-item:last-child { /* часто відмова останній елемент */ | |||
display: none !important; | |||
} | |||
/* Приховати весь блок з відмовою та політикою */ | |||
.hlist .toggle-list-item:nth-child(2), /* Відмова */ | |||
.hlist .toggle-list-item:nth-child(1) { /* Політика (якщо потрібно) */ | |||
display: none !important; | |||
} | |||
/* ========================= | |||
ДОДАВАННЯ ЕЛЕМЕНТІВ У БІЧНЕ МЕНЮ | |||
========================= */ | |||
/* Стилі для нових елементів меню */ | |||
.menu__item--mainpage, | |||
.menu__item--randompage { | |||
display: flex !important; | |||
align-items: center !important; | |||
padding: 12px 15px !important; | |||
color: #ffffff !important; | |||
text-decoration: none !important; | |||
border-bottom: 1px solid #333 !important; | |||
} | |||
.menu__item--mainpage:hover, | |||
.menu__item--randompage:hover { | |||
background-color: #2a2a2a !important; | |||
color: #ffcc00 !important; | |||
} | |||
.menu__item--mainpage .minerva-icon, | |||
.menu__item--randompage .minerva-icon { | |||
filter: brightness(0) invert(1) !important; | |||
margin-right: 12px !important; | |||
width: 20px !important; | |||
height: 20px !important; | |||
} | } | ||