MediaWiki:Common.css: Difference between revisions

From Evospace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
/* Compact recipe tables */
/* Compact recipe tables */
table.recipe-table {
table.recipe-table {
     border: 2px solid #ff0000 !important;
    border-collapse: collapse !important;
     background-color: #fff8f8 !important;
     border: none !important;
     width: 280px;
     background: transparent !important;
     font-size: 95%;
     width: auto !important;
    margin: 5px 0;
    margin: 2px 0 !important;
     font-size: 85% !important;
}
}


table.recipe-table th {
table.recipe-table th {
     background-color: #ffe0e0 !important;
     background: none !important;
     text-align: center;
     text-align: center !important;
     padding: 4px !important;
     font-weight: bold !important;
     color: #b00000 !important;
     padding: 1px 2px !important;
    font-weight: bold;
     border: none !important;
     border-bottom: 2px solid #ff0000 !important;
}
}


table.recipe-table td {
table.recipe-table td {
     padding: 3px 6px !important;
     padding: 0 2px !important;
     vertical-align: middle;
    border: none !important;
    border: 1px solid #ff8080 !important;
     vertical-align: middle !important;
}
}


table.recipe-table td:first-child {
table.recipe-table td:first-child {
     width: 40px !important;
     width: 28px !important;
     text-align: center;
     text-align: center !important;
}
}


table.recipe-table td:last-child {
table.recipe-table td:last-child {
     width: 35px !important;
     width: 22px !important;
     text-align: center;
     text-align: center !important;
}
}


table.recipe-table img {
table.recipe-table img {
     max-width: 30px;
     width: 20px !important;
     max-height: 30px;
     height: 20px !important;
     border: 1px solid #ff0000;
     margin: 0 !important;
    padding: 0 !important;
}
}

Revision as of 13:18, 31 July 2025

.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    background-color: #f8f8f8;
    border: 1px solid #aaa;
    border-collapse: collapse;
    font-size: 90%;
}
.infobox th, .infobox td {
    border: 1px solid #aaa;
    padding: 4px;
    vertical-align: top;
}
.infobox th {
    background-color: #ddd;
    text-align: left;
    width: 40%;
}

/* Compact recipe tables */
table.recipe-table {
    border-collapse: collapse !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    margin: 2px 0 !important;
    font-size: 85% !important;
}

table.recipe-table th {
    background: none !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 1px 2px !important;
    border: none !important;
}

table.recipe-table td {
    padding: 0 2px !important;
    border: none !important;
    vertical-align: middle !important;
}

table.recipe-table td:first-child {
    width: 28px !important;
    text-align: center !important;
}

table.recipe-table td:last-child {
    width: 22px !important;
    text-align: center !important;
}

table.recipe-table img {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}