MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
} | } | ||
/* Контейнер для | /* === Контейнер для карточек === */ | ||
.recipe-grid { | .recipe-grid { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 10px; | gap: 14px; | ||
margin-top: 10px; | |||
} | } | ||
/* Карточка рецепта */ | /* === Карточка рецепта === */ | ||
table.recipe-table { | table.recipe-table { | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
Line 37: | Line 38: | ||
vertical-align: top; | vertical-align: top; | ||
box-shadow: 1px 1px 3px rgba(0,0,0,0.1); | box-shadow: 1px 1px 3px rgba(0,0,0,0.1); | ||
border-radius: | border-radius: 6px; | ||
overflow: hidden; | |||
} | } | ||
/* Заголовок рецепта */ | /* Заголовок с названием рецепта */ | ||
table.recipe-table caption { | table.recipe-table caption { | ||
background: # | background: linear-gradient(to bottom, #e6e6e6, #d9d9d9); | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 95%; | |||
padding: 5px; | |||
text-align: center; | text-align: center; | ||
border-bottom: 1px solid #bbb; | border-bottom: 1px solid #bbb; | ||
} | } | ||
/* Заголовки секций */ | /* Заголовки секций Input/Output/Time */ | ||
table.recipe-table th { | table.recipe-table th { | ||
background: # | background: #f5f5f5 !important; | ||
text-align: center !important; | text-align: center !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: | padding: 3px 4px !important; | ||
border: none !important; | border: none !important; | ||
color: #555; | color: #555; | ||
font-size: 80%; | |||
text-transform: uppercase; | |||
} | } | ||
/* | /* Ячейки с предметами */ | ||
table.recipe-table td { | table.recipe-table td { | ||
padding: | padding: 3px 6px !important; | ||
border: none !important; | border: none !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
height: 26px; | |||
line-height: 26px; | |||
} | } | ||
Line 82: | Line 89: | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 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: #f9fcff; | background: #f9fcff; |
Revision as of 18:09, 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%;
}
/* === Контейнер для карточек === */
.recipe-grid {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 10px;
}
/* === Карточка рецепта === */
table.recipe-table {
border-collapse: collapse !important;
border: 1px solid #bbb !important;
background: #fcfcfc !important;
width: 220px !important;
font-size: 85% !important;
display: inline-block;
vertical-align: top;
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: 26px;
line-height: 26px;
}
/* Иконки */
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;
}