MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
:root {
/* ================================
    --bg-main: #2a2a2a;
  ===  GLOBAL PAGE STYLING  ===
    --bg-panel: #3b3b3b;
  ================================ */
    --bg-panel-dark: #252525;
 
    --text-main: #d8d8d8;
/* Фон всей страницы */
    --text-muted: #999999;
body {
     --border-color: #555555;
     background-color: #1e1e1e !important;
     --accent-color: #4fd1c5; /* бирюзовый из UI */
     color: #ddd !important;
     --accent-hover: #6fe3d5;
     font-family: "Segoe UI", Roboto, sans-serif;
    --danger-color: #d86c6c;
}
}


body {
/* Основной контейнер страницы - тянем по ширине */
    background-color: var(--bg-main);
#content,
     color: var(--text-main);
.mw-body,
     font-family: "Segoe UI", Arial, sans-serif;
#bodyContent,
     font-size: 14px;
#mw-content-text {
     line-height: 1.6;
     max-width: 100% !important;
     margin: 0;
     width: 100% !important;
     padding: 0;
     margin: 0 auto !important;
     padding: 20px 40px !important;
     background: #1e1e1e !important;
     border: none !important;
}
}


/* Контентная область */
/* Заголовки */
.mw-body, #content, #bodyContent {
h1, h2, h3, h4, h5 {
     background-color: var(--bg-panel);
     color: #f0f0f0 !important;
    padding: 16px;
     font-weight: 500;
    margin: 20px auto;
    max-width: 1200px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
     box-shadow: none;
}
}


/* Ссылки */
/* Ссылки */
a, a:visited {
a {
     color: var(--accent-color);
     color: #4fd1c5 !important;
     text-decoration: none;
     text-decoration: none;
}
}
a:hover {
a:hover {
    color: var(--accent-hover);
     text-decoration: underline;
     text-decoration: underline;
    color: #76fff3 !important;
}
/* Выравниваем стандартные элементы */
p, li {
    line-height: 1.5;
}
/* ================================
  ===  GLOBAL TABLE STYLE    ===
  ================================ */
/* Базовая таблица */
table,
.wikitable,
.infobox,
.recipe-table {
    background-color: #2c2c2c !important;
    color: #ddd !important;
    border: 1px solid #444 !important;
    border-collapse: collapse !important;
}
}


/* Заголовки */
/* Заголовки */
h1, h2, h3, h4, h5, h6 {
table th {
     color: var(--text-main);
    background-color: #3a3a3a !important;
     border-bottom: 1px solid var(--border-color);
     color: #dcdcdc !important;
     padding-bottom: 4px;
     border: 1px solid #444 !important;
     margin-top: 1em;
     padding: 6px 8px !important;
    font-weight: bold;
     text-align: left;
}
}


/* Таблицы */
/* Ячейки */
table {
table td {
     border: 1px solid var(--border-color);
     background-color: #2c2c2c !important;
     border-collapse: collapse;
     color: #ddd !important;
     background-color: var(--bg-panel-dark);
     border: 1px solid #444 !important;
     color: var(--text-main);
     padding: 6px 8px !important;
}
}
table th, table td {
 
     border: 1px solid var(--border-color);
/* Чётные строки */
    padding: 6px 8px;
table tr:nth-child(even) td {
     background-color: #262626 !important;
}
}


/* Кнопки и формы */
/* Подписи таблиц */
input, select, textarea, button {
table caption {
     background: var(--bg-panel-dark);
     background: #3a3a3a !important;
     color: var(--text-main);
     color: #4fd1c5 !important;
     border: 1px solid var(--border-color);
     font-weight: bold;
     border-radius: 2px;
     padding: 5px;
     padding: 4px 6px;
     text-align: center;
}
     border-bottom: 1px solid #444;
button:hover, input[type=submit]:hover {
     background: #444;
    cursor: pointer;
}
}


/* ================================
  ===  INFOBOX STYLE          ===
  ================================ */


.infobox {
.infobox {
Line 81: Line 101:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 300px;
     width: 300px;
     background-color: var(--bg-panel-dark);
     background-color: #2c2c2c !important;
     border: 1px solid var(--border-color);
     border: 1px solid #444 !important;
    border-collapse: collapse;
    font-size: 90%;
     border-radius: 4px;
     border-radius: 4px;
     font-size: 90%;
     overflow: hidden;
     color: var(--text-main);
     color: #ddd;
}
}


.infobox caption {
.infobox th {
     background: var(--bg-panel);
     background: #3a3a3a !important;
    text-align: left;
     font-weight: bold;
     font-weight: bold;
    font-size: 100%;
     padding: 6px;
     padding: 6px;
     text-align: center;
     border: 1px solid #444;
     border-bottom: 1px solid var(--border-color);
     color: #ccc;
     color: var(--accent-color);
     width: 40%;
}
}


.infobox th {
.infobox td {
     background: var(--bg-panel);
     border: 1px solid #444;
    text-align: left;
    font-weight: bold;
     padding: 6px;
     padding: 6px;
     border-bottom: 1px solid var(--border-color);
     vertical-align: middle;
     color: var(--text-main);
    background-color: #2c2c2c !important;
     color: #ddd !important;
}
}


.infobox td {
.infobox caption {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    font-weight: bold;
    font-size: 100%;
     padding: 6px;
     padding: 6px;
     border-bottom: 1px solid var(--border-color);
    text-align: center;
     border-bottom: 1px solid #444;
}
}


Line 116: Line 141:
     max-height: 64px;
     max-height: 64px;
     display: block;
     display: block;
     margin: 4px auto;
     margin-left: auto;
     background: #1c1c1c;
     margin-right: auto;
     border: 1px solid #444;
}
     border-radius: 2px;
 
/* ================================
  ===  RECIPE GRID & TABLES    ===
  ================================ */
 
.recipe-grid {
    display: flex;
    flex-wrap: wrap;
     gap: 14px;
     margin-top: 10px;
    align-items: flex-start;
}
}


/* Карточки рецептов */
/* Recipe Table Card */
table.recipe-table {
table.recipe-table {
     width: 220px;
     width: 220px !important;
     border: 1px solid var(--border-color);
     min-width: 220px;
     background: var(--bg-panel-dark);
    max-width: 220px;
     color: var(--text-main);
    display: inline-block !important;
    vertical-align: top;
    margin: 0;
    border-collapse: collapse !important;
    border: 1px solid #444 !important;
     background: #2c2c2c !important;
     font-size: 85% !important;
     border-radius: 4px;
     border-radius: 4px;
    overflow: hidden;
}
}
/* Заголовок */
table.recipe-table caption {
table.recipe-table caption {
     background: var(--bg-panel);
     background: #3a3a3a !important;
     color: var(--accent-color);
     color: #4fd1c5 !important;
     font-weight: bold;
     font-weight: bold;
    font-size: 95%;
     padding: 5px;
     padding: 5px;
     text-align: center;
     text-align: center;
    border-bottom: 1px solid #444;
}
}
/* Заголовки секций */
table.recipe-table th {
table.recipe-table th {
     background: var(--bg-panel);
     background: #3a3a3a !important;
     color: var(--text-muted);
    text-align: center !important;
    font-weight: bold !important;
    padding: 3px 4px !important;
    border: 1px solid #444 !important;
     color: #ccc !important;
    font-size: 80%;
     text-transform: uppercase;
     text-transform: uppercase;
    font-size: 80%;
}
}
/* Ячейки */
table.recipe-table td {
    padding: 3px 6px !important;
    border: 1px solid #444 !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 {
table.recipe-table tr.input-row td {
     background: #30373a;
     background: #21313a !important;
}
}
table.recipe-table tr.output-row td {
table.recipe-table tr.output-row td {
     background: #2d3a32;
     background: #223023 !important;
}
}

Revision as of 10:28, 1 August 2025

/* ================================
   ===  GLOBAL PAGE STYLING   ===
   ================================ */

/* Фон всей страницы */
body {
    background-color: #1e1e1e !important;
    color: #ddd !important;
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* Основной контейнер страницы - тянем по ширине */
#content,
.mw-body,
#bodyContent,
#mw-content-text {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 40px !important;
    background: #1e1e1e !important;
    border: none !important;
}

/* Заголовки */
h1, h2, h3, h4, h5 {
    color: #f0f0f0 !important;
    font-weight: 500;
}

/* Ссылки */
a {
    color: #4fd1c5 !important;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #76fff3 !important;
}

/* Выравниваем стандартные элементы */
p, li {
    line-height: 1.5;
}

/* ================================
   ===  GLOBAL TABLE STYLE     ===
   ================================ */

/* Базовая таблица */
table,
.wikitable,
.infobox,
.recipe-table {
    background-color: #2c2c2c !important;
    color: #ddd !important;
    border: 1px solid #444 !important;
    border-collapse: collapse !important;
}

/* Заголовки */
table th {
    background-color: #3a3a3a !important;
    color: #dcdcdc !important;
    border: 1px solid #444 !important;
    padding: 6px 8px !important;
    font-weight: bold;
    text-align: left;
}

/* Ячейки */
table td {
    background-color: #2c2c2c !important;
    color: #ddd !important;
    border: 1px solid #444 !important;
    padding: 6px 8px !important;
}

/* Чётные строки */
table tr:nth-child(even) td {
    background-color: #262626 !important;
}

/* Подписи таблиц */
table caption {
    background: #3a3a3a !important;
    color: #4fd1c5 !important;
    font-weight: bold;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #444;
}

/* ================================
   ===  INFOBOX STYLE           ===
   ================================ */

.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: #2c2c2c !important;
    border: 1px solid #444 !important;
    border-collapse: collapse;
    font-size: 90%;
    border-radius: 4px;
    overflow: hidden;
    color: #ddd;
}

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

.infobox td {
    border: 1px solid #444;
    padding: 6px;
    vertical-align: middle;
    background-color: #2c2c2c !important;
    color: #ddd !important;
}

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

.infobox img {
    max-width: 64px;
    max-height: 64px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   ===  RECIPE GRID & TABLES    ===
   ================================ */

.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 #444 !important;
    background: #2c2c2c !important;
    font-size: 85% !important;
    border-radius: 4px;
    overflow: hidden;
}

/* Заголовок */
table.recipe-table caption {
    background: #3a3a3a !important;
    color: #4fd1c5 !important;
    font-weight: bold;
    font-size: 95%;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #444;
}

/* Заголовки секций */
table.recipe-table th {
    background: #3a3a3a !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 3px 4px !important;
    border: 1px solid #444 !important;
    color: #ccc !important;
    font-size: 80%;
    text-transform: uppercase;
}

/* Ячейки */
table.recipe-table td {
    padding: 3px 6px !important;
    border: 1px solid #444 !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: #21313a !important;
}

table.recipe-table tr.output-row td {
    background: #223023 !important;
}