MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
     --link-hover: #ffc069;
     --link-hover: #ffc069;
     --border-color: #3f3f3f;
     --border-color: #3f3f3f;
    --header-bg: #222;
    --header-border: #444;
}
}


body {
/* === Общий фон === */
body,
.skin-vector-2022 {
     background-color: var(--bg-main);
     background-color: var(--bg-main);
     color: var(--text-main);
     color: var(--text-main);
Line 15: Line 20:
     font-size: 14px;
     font-size: 14px;
     line-height: 1.6;
     line-height: 1.6;
     margin: 0;
}
     padding: 0;
 
/* Контейнер контента */
.skin-vector-2022 .mw-body {
    background-color: var(--bg-content);
     border: 1px solid var(--border-color);
     padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
 
/* === Заголовок сайта (верхняя панель) === */
.vector-header,
.vector-page-toolbar-container,
.vector-page-toolbar {
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border);
}
 
/* === Ссылки === */
a {
    color: var(--link-color);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}
 
/* === Сайдбар === */
.vector-sidebar-container {
    background-color: #252525;
    border-right: 1px solid var(--border-color);
}
.vector-sidebar-container .vector-menu-content li a {
    color: var(--text-muted);
}
.vector-sidebar-container .vector-menu-content li a:hover {
    color: var(--link-hover);
}
 
/* === Таблицы === */
.mw-parser-output table {
    border: 1px solid var(--border-color);
    background-color: #333;
    color: var(--text-main);
}
.mw-parser-output th {
    background-color: #444;
    color: #fff;
}
}


Line 25: Line 78:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 300px;
     width: 300px;
     background-color: #fcfcfc;
     background-color: #2f2f2f;
     border: 1px solid #bbb;
     border: 1px solid #555;
     border-collapse: collapse;
     border-collapse: collapse;
     font-size: 90%;
     font-size: 90%;
     box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
     box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
     border-radius: 6px;
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
    color: var(--text-main);
}
}


.infobox th {
.infobox th {
     background: #f5f5f5 !important;
     background: #3a3a3a !important;
     text-align: left;
     text-align: left;
     font-weight: bold;
     font-weight: bold;
     padding: 6px;
     padding: 6px;
     border: none;
     border: none;
     color: #555;
     color: #fff;
     width: 40%;
     width: 40%;
}
}
Line 48: Line 102:
     padding: 6px;
     padding: 6px;
     vertical-align: middle;
     vertical-align: middle;
     background-color: #fff;
     background-color: #2f2f2f;
}
}


.infobox caption {
.infobox caption {
     background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
     background: linear-gradient(to bottom, #4b4b4b, #3a3a3a);
     font-weight: bold;
     font-weight: bold;
     font-size: 100%;
     font-size: 100%;
     padding: 6px;
     padding: 6px;
     text-align: center;
     text-align: center;
     border-bottom: 1px solid #bbb;
     border-bottom: 1px solid #555;
    color: #fff;
}
}


Line 69: Line 124:


.infobox tr {
.infobox tr {
     border-bottom: 1px solid #eee;
     border-bottom: 1px solid #444;
}
}


Line 75: Line 130:
     border-bottom: none;
     border-bottom: none;
}
}


/* === Recipes grid container === */
/* === Recipes grid container === */
Line 95: Line 149:
     margin: 0;
     margin: 0;
     border-collapse: collapse !important;
     border-collapse: collapse !important;
     border: 1px solid #bbb !important;
     border: 1px solid #555 !important;
     background: #fcfcfc !important;
     background: #2f2f2f !important;
     font-size: 85% !important;
     font-size: 85% !important;
     box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
     box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
     border-radius: 6px;
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
    color: var(--text-main);
}
}


/* Заголовок карточки */
/* Заголовок карточки */
table.recipe-table caption {
table.recipe-table caption {
     background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
     background: linear-gradient(to bottom, #4b4b4b, #3a3a3a);
     font-weight: bold;
     font-weight: bold;
     font-size: 95%;
     font-size: 95%;
     padding: 5px;
     padding: 5px;
     text-align: center;
     text-align: center;
     border-bottom: 1px solid #bbb;
     border-bottom: 1px solid #555;
    color: #fff;
}
}


/* Заголовки секций */
/* Заголовки секций */
table.recipe-table th {
table.recipe-table th {
     background: #f5f5f5 !important;
     background: #3a3a3a !important;
     text-align: center !important;
     text-align: center !important;
     font-weight: bold !important;
     font-weight: bold !important;
     padding: 3px 4px !important;
     padding: 3px 4px !important;
     border: none !important;
     border: none !important;
     color: #555;
     color: #fff;
     font-size: 80%;
     font-size: 80%;
     text-transform: uppercase;
     text-transform: uppercase;
Line 161: Line 217:
/* Подсветка */
/* Подсветка */
table.recipe-table tr.input-row td {
table.recipe-table tr.input-row td {
     background: #f9fcff;
     background: #2d3a44;
}
}


table.recipe-table tr.output-row td {
table.recipe-table tr.output-row td {
     background: #f9fff9;
     background: #2d4432;
}
}

Revision as of 11:09, 1 August 2025

:root {
    --bg-main: #1e1e1e;
    --bg-content: #2b2b2b;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --link-color: #ffa93a;
    --link-hover: #ffc069;
    --border-color: #3f3f3f;

    --header-bg: #222;
    --header-border: #444;
}

/* === Общий фон === */
body,
.skin-vector-2022 {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

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

/* === Заголовок сайта (верхняя панель) === */
.vector-header,
.vector-page-toolbar-container,
.vector-page-toolbar {
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border);
}

/* === Ссылки === */
a {
    color: var(--link-color);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* === Сайдбар === */
.vector-sidebar-container {
    background-color: #252525;
    border-right: 1px solid var(--border-color);
}
.vector-sidebar-container .vector-menu-content li a {
    color: var(--text-muted);
}
.vector-sidebar-container .vector-menu-content li a:hover {
    color: var(--link-hover);
}

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

/* === Infobox === */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: #2f2f2f;
    border: 1px solid #555;
    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);
}

.infobox th {
    background: #3a3a3a !important;
    text-align: left;
    font-weight: bold;
    padding: 6px;
    border: none;
    color: #fff;
    width: 40%;
}

.infobox td {
    border: none;
    padding: 6px;
    vertical-align: middle;
    background-color: #2f2f2f;
}

.infobox caption {
    background: linear-gradient(to bottom, #4b4b4b, #3a3a3a);
    font-weight: bold;
    font-size: 100%;
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #555;
    color: #fff;
}

.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 === */
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);
}

/* Заголовок карточки */
table.recipe-table caption {
    background: linear-gradient(to bottom, #4b4b4b, #3a3a3a);
    font-weight: bold;
    font-size: 95%;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #555;
    color: #fff;
}

/* Заголовки секций */
table.recipe-table th {
    background: #3a3a3a !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 3px 4px !important;
    border: none !important;
    color: #fff;
    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 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 {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/* Подсветка */
table.recipe-table tr.input-row td {
    background: #2d3a44;
}

table.recipe-table tr.output-row td {
    background: #2d4432;
}