MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
:root {
:root {
     --bg-main: #1e1e1e;
     --bg-main: #1e1e1e;
     --bg-gray: #515151;
     --bg-gray: #2b2b2b;
     --bg-content: #2b2b2b;
     --bg-content: #2f2f2f;
     --text-main: #cbcbcb;
     --text-main: #cbcbcb;
     --text-muted: #b0b0b0;
     --text-muted: #b0b0b0;
     --link-color: #69e9ff;
     --link-color: #69e9ff;
     --link-hover: #69e9ff;
     --link-hover: #69e9ff;
     --link-visited: #69e9ff;
     --link-visited: #cc7a2a;
     --link-missing: #b9676e;
     --link-missing: #b9676e;
     --border-color: #3f3f3f;
     --border-color: #3f3f3f;
     --header-bg: #222;
     --header-bg: #222;
     --header-border: #444;
     --header-border: #444;
Line 16: Line 15:


/* === Общий фон === */
/* === Общий фон === */
body,
body.skin-vector-2022,
.skin-vector-2022 {
body.skin-vector-2022 .mw-page-container,
     background-color: var(--bg-main);
body.skin-vector-2022 .vector-main-content-container,
     color: var(--text-main);
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned,
    font-family: Arial, Helvetica, sans-serif;
body.skin-vector-2022 .vector-page,
    font-size: 14px;
body.skin-vector-2022 .mw-workspace-container {
    line-height: 1.6;
     background-color: var(--bg-main) !important;
     color: var(--text-main) !important;
}
}


/* Контейнер контента */
/* Контент */
.skin-vector-2022 .mw-body {
body.skin-vector-2022 .mw-body,
     background-color: var(--bg-content);
body.skin-vector-2022 .mw-parser-output {
     border: 1px solid var(--border-color);
     background-color: var(--bg-content) !important;
    color: var(--text-main) !important;
     border: 1px solid var(--border-color) !important;
     padding: 20px;
     padding: 20px;
     border-radius: 6px;
     border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
}


/* === Заголовок сайта (верхняя панель) === */
/* === Верхняя панель (хедер) === */
.vector-header,
body.skin-vector-2022 .vector-header,
.vector-page-toolbar-container,
body.skin-vector-2022 .vector-page-toolbar-container,
.vector-page-toolbar {
body.skin-vector-2022 .vector-page-toolbar {
     background-color: var(--header-bg) !important;
     background-color: var(--header-bg) !important;
     border-bottom: 1px solid var(--header-border);
     border-bottom: 1px solid var(--header-border) !important;
}
 
/* === Заголовки страниц === */
body.skin-vector-2022 #firstHeading,
body.skin-vector-2022 .mw-page-title-main,
body.skin-vector-2022 .firstHeading,
body.skin-vector-2022 .mw-headline {
    color: var(--text-main) !important;
}
}


/* === Ссылки === */
/* === Левое меню (панель) === */
a,
body.skin-vector-2022 #mw-panel,
.mw-parser-output a {
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned {
     color: var(--link-color);
     background-color: #252525 !important;
    text-decoration: none;
    border-right: 1px solid var(--border-color) !important;
}
}


a:hover,
/* Заголовки меню */
.mw-parser-output a:hover {
body.skin-vector-2022 #mw-panel .vector-menu-heading,
     color: var(--link-hover);
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-heading {
     text-decoration: underline;
     color: var(--text-muted) !important;
     font-weight: bold !important;
}
}


a:visited,
/* Ссылки меню */
.mw-parser-output a:visited {
body.skin-vector-2022 #mw-panel .vector-menu-content li a,
     color: var(--link-visited);
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-content li a {
     color: var(--link-color) !important;
    text-decoration: none !important;
}
}


a.new,
body.skin-vector-2022 #mw-panel .vector-menu-content li a:visited,
.mw-parser-output a.new {
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-content li a:visited {
     color: var(--link-missing) !important;
    color: var(--link-visited) !important;
}
 
body.skin-vector-2022 #mw-panel .vector-menu-content li a:hover,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-content li a:hover {
     color: var(--link-hover) !important;
    text-decoration: underline !important;
}
}


/* === Сайдбар === */
/* === Ссылки в контенте === */
.vector-sidebar-container {
body.skin-vector-2022 .mw-parser-output a {
     background-color: #252525;
     color: var(--link-color) !important;
    border-right: 1px solid var(--border-color);
}
}
.vector-sidebar-container .vector-menu-content li a {
body.skin-vector-2022 .mw-parser-output a:visited {
     color: var(--text-muted);
     color: var(--link-visited) !important;
}
}
.vector-sidebar-container .vector-menu-content li a:hover {
body.skin-vector-2022 .mw-parser-output a.new {
     color: var(--link-hover);
     color: var(--link-missing) !important;
}
}


/* === Таблицы === */
/* === Таблицы === */
.mw-parser-output table {
.mw-parser-output table {
     border: 1px solid var(--border-color);
     border: 1px solid var(--border-color) !important;
     background-color: #333;
     background-color: #333 !important;
     color: var(--text-main);
     color: var(--text-main) !important;
}
}
.mw-parser-output th {
.mw-parser-output th {
     background-color: #444;
     background-color: #444 !important;
     color: #fff;
     color: #fff !important;
}
}


Line 94: Line 111:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 300px;
     width: 300px;
     background-color: #2f2f2f;
     background-color: #2f2f2f !important;
     border: 1px solid #555;
     border: 1px solid #555 !important;
     border-collapse: collapse;
     border-collapse: collapse;
     font-size: 90%;
     font-size: 90%;
Line 101: Line 118:
     border-radius: 6px;
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
     color: var(--text-main);
     color: var(--text-main) !important;
}
}
.infobox th {
.infobox th {
     background: #3a3a3a !important;
     background: #3a3a3a !important;
Line 110: Line 126:
     padding: 6px;
     padding: 6px;
     border: none;
     border: none;
     color: #fff;
     color: #fff !important;
     width: 40%;
     width: 40%;
}
}
.infobox td {
.infobox td {
     border: none;
     border: none;
     padding: 6px;
     padding: 6px;
     vertical-align: middle;
     vertical-align: middle;
     background-color: #2f2f2f;
     background-color: #2f2f2f !important;
}
}
.infobox caption {
.infobox caption {
     background: linear-gradient(to bottom, #4b4b4b, #3a3a3a);
     background: linear-gradient(to bottom, #4b4b4b, #3a3a3a) !important;
     font-weight: bold;
     font-weight: bold;
     font-size: 100%;
     font-size: 100%;
Line 128: Line 142:
     text-align: center;
     text-align: center;
     border-bottom: 1px solid #555;
     border-bottom: 1px solid #555;
     color: #fff;
     color: #fff !important;
}
 
.infobox img {
    max-width: 64px;
    max-height: 64px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
 
.infobox tr {
    border-bottom: 1px solid #444;
}
 
.infobox tr:last-child {
    border-bottom: none;
}
 
/* === Recipes grid container === */
.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    align-items: flex-start;
}
}


/* === Recipe table card === */
/* === Recipe таблицы === */
table.recipe-table {
table.recipe-table {
     width: 220px !important;
     width: 220px !important;
Line 171: Line 160:
     border-radius: 6px;
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
     color: var(--text-main);
     color: var(--text-main) !important;
}
}
/* Заголовок карточки */
table.recipe-table caption {
table.recipe-table caption {
     background: linear-gradient(to bottom, #4b4b4b, #3a3a3a);
     background: linear-gradient(to bottom, #4b4b4b, #3a3a3a) !important;
     font-weight: bold;
     font-weight: bold;
     font-size: 95%;
     font-size: 95%;
Line 182: Line 169:
     text-align: center;
     text-align: center;
     border-bottom: 1px solid #555;
     border-bottom: 1px solid #555;
     color: #fff;
     color: #fff !important;
}
}
/* Заголовки секций */
table.recipe-table th {
table.recipe-table th {
     background: #3a3a3a !important;
     background: #3a3a3a !important;
Line 192: Line 177:
     padding: 3px 4px !important;
     padding: 3px 4px !important;
     border: none !important;
     border: none !important;
     color: #fff;
     color: #fff !important;
     font-size: 80%;
     font-size: 80%;
     text-transform: uppercase;
     text-transform: uppercase;
}
}
/* Ячейки */
table.recipe-table td {
table.recipe-table td {
     padding: 3px 6px !important;
     padding: 3px 6px !important;
Line 206: Line 189:
     width: auto;
     width: auto;
}
}
/* Иконка */
table.recipe-table td:first-child {
    width: 28px !important;
    text-align: center !important;
    white-space: nowrap;
}
/* Название предмета + количество */
table.recipe-table td:nth-child(2) {
    width: 100% !important;
    text-align: left !important;
    white-space: nowrap;
}
/* Иконки */
table.recipe-table img {
table.recipe-table img {
     width: 22px !important;
     width: 22px !important;
Line 229: Line 196:
     display: inline-block;
     display: inline-block;
     vertical-align: middle;
     vertical-align: middle;
}
/* === Переопределение белого фона Vector 2022 === */
.skin-vector-2022,
.skin-vector-2022 body,
.skin-vector-2022 .mw-page-container,
.skin-vector-2022 .mw-body,
.skin-vector-2022 .mw-workspace-container,
.skin-vector-2022 .vector-page,
.skin-vector-2022 .vector-main-content-container,
.skin-vector-2022 .vector-column-end {
    background-color: var(--bg-gray) !important;
    color: var(--text-main) !important;
}
/* Контейнер с содержимым страницы */
.skin-vector-2022 .mw-parser-output {
    background-color: var(--bg-gray) !important;
    color: var(--text-main) !important;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
/* Убираем белый фон у заголовков и меню */
.skin-vector-2022 .vector-header,
.skin-vector-2022 .vector-page-toolbar,
.skin-vector-2022 .vector-page-toolbar-container {
    background-color: #222 !important;
    border-bottom: 1px solid #444;
}
/* Принудительная тёмная тема для всех div */
body .mw-body,
.mw-body-content,
div.mw-parser-output > div {
    background-color: transparent !important;
}
/* === Левое меню Vector 2022 === */
.skin-vector-2022 .vector-menu-content li a {
    color: var(--link-color) !important;
}
.skin-vector-2022 .vector-menu-content li a:visited {
    color: #cc7a2a !important; /* цвет посещённых */
}
.skin-vector-2022 .vector-menu-content li a:hover {
    color: var(--link-hover) !important;
}
.skin-vector-2022 .vector-menu-heading {
    color: var(--text-muted) !important;
    font-weight: bold;
}
/* Заголовки страниц */
.skin-vector-2022 .mw-page-title-main,
.skin-vector-2022 .firstHeading,
.skin-vector-2022 .mw-headline {
    color: var(--text-main) !important;
}
/* Цвет ссылок внутри контента */
.skin-vector-2022 .mw-parser-output a {
    color: var(--link-color) !important;
}
.skin-vector-2022 .mw-parser-output a:visited {
    color: #cc7a2a !important;
}
.skin-vector-2022 .mw-parser-output a:hover {
    color: var(--link-hover) !important;
}
}

Revision as of 11:50, 1 August 2025

:root {
    --bg-main: #1e1e1e;
    --bg-gray: #2b2b2b;
    --bg-content: #2f2f2f;
    --text-main: #cbcbcb;
    --text-muted: #b0b0b0;
    --link-color: #69e9ff;
    --link-hover: #69e9ff;
    --link-visited: #cc7a2a;
    --link-missing: #b9676e;
    --border-color: #3f3f3f;
    --header-bg: #222;
    --header-border: #444;
}

/* === Общий фон === */
body.skin-vector-2022,
body.skin-vector-2022 .mw-page-container,
body.skin-vector-2022 .vector-main-content-container,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned,
body.skin-vector-2022 .vector-page,
body.skin-vector-2022 .mw-workspace-container {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

/* Контент */
body.skin-vector-2022 .mw-body,
body.skin-vector-2022 .mw-parser-output {
    background-color: var(--bg-content) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px;
    border-radius: 6px;
}

/* === Верхняя панель (хедер) === */
body.skin-vector-2022 .vector-header,
body.skin-vector-2022 .vector-page-toolbar-container,
body.skin-vector-2022 .vector-page-toolbar {
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border) !important;
}

/* === Заголовки страниц === */
body.skin-vector-2022 #firstHeading,
body.skin-vector-2022 .mw-page-title-main,
body.skin-vector-2022 .firstHeading,
body.skin-vector-2022 .mw-headline {
    color: var(--text-main) !important;
}

/* === Левое меню (панель) === */
body.skin-vector-2022 #mw-panel,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned {
    background-color: #252525 !important;
    border-right: 1px solid var(--border-color) !important;
}

/* Заголовки меню */
body.skin-vector-2022 #mw-panel .vector-menu-heading,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-heading {
    color: var(--text-muted) !important;
    font-weight: bold !important;
}

/* Ссылки меню */
body.skin-vector-2022 #mw-panel .vector-menu-content li a,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-content li a {
    color: var(--link-color) !important;
    text-decoration: none !important;
}

body.skin-vector-2022 #mw-panel .vector-menu-content li a:visited,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-content li a:visited {
    color: var(--link-visited) !important;
}

body.skin-vector-2022 #mw-panel .vector-menu-content li a:hover,
body.skin-vector-2022 .vector-feature-sidebar-main-menu-pinned .vector-menu-content li a:hover {
    color: var(--link-hover) !important;
    text-decoration: underline !important;
}

/* === Ссылки в контенте === */
body.skin-vector-2022 .mw-parser-output a {
    color: var(--link-color) !important;
}
body.skin-vector-2022 .mw-parser-output a:visited {
    color: var(--link-visited) !important;
}
body.skin-vector-2022 .mw-parser-output a.new {
    color: var(--link-missing) !important;
}

/* === Таблицы === */
.mw-parser-output table {
    border: 1px solid var(--border-color) !important;
    background-color: #333 !important;
    color: var(--text-main) !important;
}
.mw-parser-output th {
    background-color: #444 !important;
    color: #fff !important;
}

/* === Infobox === */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: #2f2f2f !important;
    border: 1px solid #555 !important;
    border-collapse: collapse;
    font-size: 90%;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    color: var(--text-main) !important;
}
.infobox th {
    background: #3a3a3a !important;
    text-align: left;
    font-weight: bold;
    padding: 6px;
    border: none;
    color: #fff !important;
    width: 40%;
}
.infobox td {
    border: none;
    padding: 6px;
    vertical-align: middle;
    background-color: #2f2f2f !important;
}
.infobox caption {
    background: linear-gradient(to bottom, #4b4b4b, #3a3a3a) !important;
    font-weight: bold;
    font-size: 100%;
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #555;
    color: #fff !important;
}

/* === Recipe таблицы === */
table.recipe-table {
    width: 220px !important;
    min-width: 220px;
    max-width: 220px;
    display: inline-block !important;
    vertical-align: top;
    margin: 0;
    border-collapse: collapse !important;
    border: 1px solid #555 !important;
    background: #2f2f2f !important;
    font-size: 85% !important;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    border-radius: 6px;
    overflow: hidden;
    color: var(--text-main) !important;
}
table.recipe-table caption {
    background: linear-gradient(to bottom, #4b4b4b, #3a3a3a) !important;
    font-weight: bold;
    font-size: 95%;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #555;
    color: #fff !important;
}
table.recipe-table th {
    background: #3a3a3a !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 3px 4px !important;
    border: none !important;
    color: #fff !important;
    font-size: 80%;
    text-transform: uppercase;
}
table.recipe-table td {
    padding: 3px 6px !important;
    border: none !important;
    vertical-align: middle !important;
    height: auto !important;
    line-height: normal !important;
    width: auto;
}
table.recipe-table img {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
}