MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================
/* === Infobox === */
  ===  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 {
.infobox {
     float: right;
     float: right;
Line 101: Line 5:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 300px;
     width: 300px;
     background-color: #2c2c2c !important;
     background-color: #fcfcfc;
     border: 1px solid #444 !important;
     border: 1px solid #bbb;
     border-collapse: collapse;
     border-collapse: collapse;
     font-size: 90%;
     font-size: 90%;
     border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
    color: #ddd;
}
}


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


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


.infobox caption {
.infobox caption {
     background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
     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 #444;
     border-bottom: 1px solid #bbb;
}
 
/* Картинка и ссылка в одну строку */
.infobox .image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
}


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


/* ================================
.infobox tr {
  ===  RECIPE GRID & TABLES    ===
    border-bottom: 1px solid #eee;
  ================================ */
}


.infobox tr:last-child {
    border-bottom: none;
}
/* === Recipes grid container === */
.recipe-grid {
.recipe-grid {
     display: flex;
     display: flex;
Line 157: Line 73:
}
}


/* Recipe Table Card */
/* === Recipe table card === */
table.recipe-table {
table.recipe-table {
     width: 220px !important;
     width: 220px !important;
Line 166: Line 82:
     margin: 0;
     margin: 0;
     border-collapse: collapse !important;
     border-collapse: collapse !important;
     border: 1px solid #444 !important;
     border: 1px solid #bbb !important;
     background: #2c2c2c !important;
     background: #fcfcfc !important;
     font-size: 85% !important;
     font-size: 85% !important;
     border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
}
}


/* Заголовок */
/* Заголовок карточки */
table.recipe-table caption {
table.recipe-table caption {
     background: #3a3a3a !important;
     background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
    color: #4fd1c5 !important;
     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 #444;
     border-bottom: 1px solid #bbb;
}
}


/* Заголовки секций */
/* Заголовки секций */
table.recipe-table th {
table.recipe-table th {
     background: #3a3a3a !important;
     background: #f5f5f5 !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: 1px solid #444 !important;
     border: none !important;
     color: #ccc !important;
     color: #555;
     font-size: 80%;
     font-size: 80%;
     text-transform: uppercase;
     text-transform: uppercase;
Line 199: Line 115:
table.recipe-table td {
table.recipe-table td {
     padding: 3px 6px !important;
     padding: 3px 6px !important;
     border: 1px solid #444 !important;
     border: none !important;
     vertical-align: middle !important;
     vertical-align: middle !important;
     height: auto !important;
     height: auto !important;
Line 222: Line 138:
/* Иконки */
/* Иконки */
table.recipe-table img {
table.recipe-table img {
     width: 22px !important;
     width: 32px !important;
     height: 22px !important;
     height: 32px !important;
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
Line 232: Line 148:
/* Подсветка */
/* Подсветка */
table.recipe-table tr.input-row td {
table.recipe-table tr.input-row td {
     background: #21313a !important;
     background: #f9fcff;
}
}


table.recipe-table tr.output-row td {
table.recipe-table tr.output-row td {
     background: #223023 !important;
     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;
}