MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
:root {
/* === Infobox === */
    --bg-main: #2a2a2a;
    --bg-panel: #3b3b3b;
    --bg-panel-dark: #252525;
    --text-main: #d8d8d8;
    --text-muted: #999999;
    --border-color: #555555;
    --accent-color: #4fd1c5; /* бирюзовый из UI */
    --accent-hover: #6fe3d5;
    --danger-color: #d86c6c;
}
 
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
 
/* Контентная область */
.mw-body, #content, #bodyContent {
    background-color: var(--bg-panel);
    padding: 16px;
    margin: 20px auto;
    max-width: 1200px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: none;
}
 
/* Ссылки */
a, a:visited {
    color: var(--accent-color);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
 
/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
    margin-top: 1em;
}
 
/* Таблицы */
table {
    border: 1px solid var(--border-color);
    border-collapse: collapse;
    background-color: var(--bg-panel-dark);
    color: var(--text-main);
}
table th, table td {
    border: 1px solid var(--border-color);
    padding: 6px 8px;
}
 
/* Кнопки и формы */
input, select, textarea, button {
    background: var(--bg-panel-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 4px 6px;
}
button:hover, input[type=submit]:hover {
    background: #444;
    cursor: pointer;
}
 
 
.infobox {
.infobox {
     float: right;
     float: right;
Line 81: Line 5:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 300px;
     width: 300px;
     background-color: var(--bg-panel-dark);
     background-color: #fcfcfc;
     border: 1px solid var(--border-color);
     border: 1px solid #bbb;
     border-radius: 4px;
     border-collapse: collapse;
     font-size: 90%;
     font-size: 90%;
     color: var(--text-main);
     box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}
 
.infobox th {
    background: #f5f5f5 !important;
    text-align: left;
    font-weight: bold;
    padding: 6px;
    border: none;
    color: #555;
    width: 40%;
}
 
.infobox td {
    border: none;
    padding: 6px;
    vertical-align: middle;
    background-color: #fff;
}
}


.infobox caption {
.infobox caption {
     background: var(--bg-panel);
     background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
     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 var(--border-color);
     border-bottom: 1px solid #bbb;
     color: var(--accent-color);
}
 
/* Картинка и ссылка в одну строку */
.infobox .image-link {
    display: flex;
    align-items: center;
    justify-content: center;
     gap: 6px;
}
 
.infobox .image-link img {
    max-width: 32px;
    max-height: 32px;
    display: inline-block;
    margin: 0;
}
}


.infobox th {
.infobox tr {
    background: var(--bg-panel);
     border-bottom: 1px solid #eee;
    text-align: left;
    font-weight: bold;
    padding: 6px;
     border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}
}


.infobox td {
.infobox tr:last-child {
    padding: 6px;
     border-bottom: none;
     border-bottom: 1px solid var(--border-color);
}
}


.infobox img {
 
     max-width: 64px;
/* === Recipes grid container === */
     max-height: 64px;
.recipe-grid {
     display: block;
     display: flex;
     margin: 4px auto;
     flex-wrap: wrap;
     background: #1c1c1c;
     gap: 14px;
    border: 1px solid #444;
     margin-top: 10px;
    border-radius: 2px;
     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;
     border-radius: 4px;
    vertical-align: top;
    margin: 0;
    border-collapse: collapse !important;
    border: 1px solid #bbb !important;
     background: #fcfcfc !important;
    font-size: 85% !important;
     box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
     border-radius: 6px;
    overflow: hidden;
}
}
/* Заголовок карточки */
table.recipe-table caption {
table.recipe-table caption {
     background: var(--bg-panel);
     background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
    color: var(--accent-color);
     font-weight: bold;
     font-weight: bold;
    font-size: 95%;
     padding: 5px;
     padding: 5px;
     text-align: center;
     text-align: center;
    border-bottom: 1px solid #bbb;
}
}
/* Заголовки секций */
table.recipe-table th {
table.recipe-table th {
     background: var(--bg-panel);
     background: #f5f5f5 !important;
     color: var(--text-muted);
    text-align: center !important;
    font-weight: bold !important;
    padding: 3px 4px !important;
    border: none !important;
     color: #555;
    font-size: 80%;
     text-transform: uppercase;
     text-transform: uppercase;
    font-size: 80%;
}
}
/* Ячейки */
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: 32px !important;
    height: 32px !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: #f9fcff;
}
}
table.recipe-table tr.output-row td {
table.recipe-table tr.output-row td {
     background: #2d3a32;
     background: #f9fff9;
}
}

Latest revision as of 14:54, 1 August 2025

/* === Infobox === */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: #fcfcfc;
    border: 1px solid #bbb;
    border-collapse: collapse;
    font-size: 90%;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

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

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

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

/* Картинка и ссылка в одну строку */
.infobox .image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.infobox .image-link img {
    max-width: 32px;
    max-height: 32px;
    display: inline-block;
    margin: 0;
}

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

.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 #bbb !important;
    background: #fcfcfc !important;
    font-size: 85% !important;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

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

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

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

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