MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 5: Line 5:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 300px;
     width: 300px;
     background-color: #fcfcfc;
     background-color: #2b2b2b;
     border: 1px solid #bbb;
     border: 1px solid #3f3f3f;
     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 4px rgba(0, 0, 0, 0.4);
     border-radius: 6px;
     border-radius: 4px;
     overflow: hidden;
     overflow: hidden;
    color: #e0e0e0;
}
.infobox caption {
    background: linear-gradient(to bottom, #4d4d4d, #3a3a3a);
    font-weight: bold;
    font-size: 100%;
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #222;
    color: #f0f0f0;
}
}


.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: #d0d0d0;
     width: 40%;
     width: 40%;
}
}
Line 28: Line 39:
     padding: 6px;
     padding: 6px;
     vertical-align: middle;
     vertical-align: middle;
     background-color: #fff;
     background-color: #2b2b2b;
}
     color: #e0e0e0;
 
.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;
}
}


Line 44: Line 47:
     max-height: 64px;
     max-height: 64px;
     display: block;
     display: block;
     margin-left: auto;
     margin: 2px auto;
     margin-right: auto;
     background: #1c1c1c;
    border: 1px solid #3f3f3f;
    border-radius: 2px;
}
}


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


Line 55: Line 60:
     border-bottom: none;
     border-bottom: none;
}
}


/* === Recipes grid container === */
/* === Recipes grid container === */
Line 75: Line 79:
     margin: 0;
     margin: 0;
     border-collapse: collapse !important;
     border-collapse: collapse !important;
     border: 1px solid #bbb !important;
     border: 1px solid #3f3f3f !important;
     background: #fcfcfc !important;
     background: #2b2b2b !important;
     font-size: 85% !important;
     font-size: 85% !important;
     box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
     box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
     border-radius: 6px;
     border-radius: 4px;
     overflow: hidden;
     overflow: hidden;
    color: #e0e0e0;
}
}


/* Заголовок карточки */
/* Заголовок карточки */
table.recipe-table caption {
table.recipe-table caption {
     background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
     background: linear-gradient(to bottom, #4d4d4d, #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 #222;
    color: #f0f0f0;
}
}


/* Заголовки секций */
/* Заголовки секций */
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: #d0d0d0;
     font-size: 80%;
     font-size: 80%;
     text-transform: uppercase;
     text-transform: uppercase;
Line 113: Line 119:
     line-height: normal !important;
     line-height: normal !important;
     width: auto;
     width: auto;
    background: #2b2b2b;
    color: #e0e0e0;
}
}


Line 137: Line 145:
     display: inline-block;
     display: inline-block;
     vertical-align: middle;
     vertical-align: middle;
    background: #1c1c1c;
    border: 1px solid #3f3f3f;
    border-radius: 2px;
}
}


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


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

Revision as of 10:22, 1 August 2025

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

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

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

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

.infobox img {
    max-width: 64px;
    max-height: 64px;
    display: block;
    margin: 2px auto;
    background: #1c1c1c;
    border: 1px solid #3f3f3f;
    border-radius: 2px;
}

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

.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 #3f3f3f !important;
    background: #2b2b2b !important;
    font-size: 85% !important;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    border-radius: 4px;
    overflow: hidden;
    color: #e0e0e0;
}

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

/* Заголовки секций */
table.recipe-table th {
    background: #3a3a3a !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 3px 4px !important;
    border: none !important;
    color: #d0d0d0;
    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;
    background: #2b2b2b;
    color: #e0e0e0;
}

/* Иконка */
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;
    background: #1c1c1c;
    border: 1px solid #3f3f3f;
    border-radius: 2px;
}

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

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