MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* === Infobox === */ | |||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
Line 20: | Line 21: | ||
} | } | ||
/* === Recipes === */ | /* === Recipes grid container === */ | ||
.recipe-grid { | .recipe-grid { | ||
display: flex; | display: flex; | ||
Line 26: | Line 27: | ||
gap: 14px; | gap: 14px; | ||
margin-top: 10px; | margin-top: 10px; | ||
align-items: flex; | align-items: flex-start; /* не растягиваем карточки по высоте */ | ||
} | |||
/* === Recipe table card === */ | |||
.wikitable.recipe-table { | |||
width: auto !important; | |||
} | } | ||
Line 33: | Line 39: | ||
min-width: 220px; | min-width: 220px; | ||
max-width: 220px; | max-width: 220px; | ||
display: block; | display: inline-block !important; /* чтобы стояли рядом */ | ||
vertical-align: top; | |||
margin: 0; | 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; | |||
} | } | ||
Line 64: | Line 78: | ||
border: none !important; | border: none !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
height: | height: auto !important; | ||
line-height: | line-height: normal !important; | ||
} | } | ||
Revision as of 18:16, 31 July 2025
/* === Infobox === */
.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%;
}
/* === Recipes grid container === */
.recipe-grid {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 10px;
align-items: flex-start; /* не растягиваем карточки по высоте */
}
/* === Recipe table card === */
.wikitable.recipe-table {
width: auto !important;
}
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;
}
/* Заголовки секций Input/Output/Time */
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;
}
/* Иконки */
table.recipe-table td:first-child {
width: 28px !important;
text-align: center !important;
}
table.recipe-table td:last-child {
width: 28px !important;
text-align: center !important;
}
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: #f9fcff;
}
table.recipe-table tr.output-row td {
background: #f9fff9;
}