MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
} | } | ||
/* | /* Контейнер для сетки карточек рецептов */ | ||
.recipe-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px; | |||
} | |||
/* Карточка рецепта */ | |||
table.recipe-table { | table.recipe-table { | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
border: 1px solid # | border: 1px solid #bbb !important; | ||
background: # | background: #fcfcfc !important; | ||
width: | width: 220px !important; | ||
font-size: 85% !important; | font-size: 85% !important; | ||
display: inline-block; | display: inline-block; | ||
vertical-align: top; | vertical-align: top; | ||
box-shadow: 1px 1px 3px rgba(0,0,0,0.1); | |||
border-radius: 4px; | |||
} | |||
/* Заголовок рецепта */ | |||
table.recipe-table caption { | |||
background: #e0e0e0; | |||
font-weight: bold; | |||
text-align: center; | |||
padding: 4px; | |||
border-bottom: 1px solid #bbb; | |||
} | } | ||
/* Заголовки секций */ | |||
table.recipe-table th { | table.recipe-table th { | ||
background: # | background: #f2f2f2 !important; | ||
text-align: center !important; | text-align: center !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: 2px 4px !important; | padding: 2px 4px !important; | ||
border: none !important; | border: none !important; | ||
color: #555; | |||
} | } | ||
/* Строки */ | |||
table.recipe-table td { | table.recipe-table td { | ||
padding: | padding: 2px 4px !important; | ||
border: none !important; | border: none !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
} | } | ||
/* Иконки */ | |||
table.recipe-table td:first-child { | table.recipe-table td:first-child { | ||
width: 28px !important; | width: 28px !important; | ||
Line 52: | Line 73: | ||
table.recipe-table td:last-child { | table.recipe-table td:last-child { | ||
width: | width: 28px !important; | ||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
table.recipe-table img { | table.recipe-table img { | ||
width: | width: 22px !important; | ||
height: | height: 22px !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | |||
/* Подсветка входов и выходов */ | |||
table.recipe-table tr.input-row td { | |||
background: #f9fcff; | |||
} | |||
table.recipe-table tr.output-row td { | |||
background: #f9fff9; | |||
} | } |
Revision as of 18:07, 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: 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: 4px;
}
/* Заголовок рецепта */
table.recipe-table caption {
background: #e0e0e0;
font-weight: bold;
text-align: center;
padding: 4px;
border-bottom: 1px solid #bbb;
}
/* Заголовки секций */
table.recipe-table th {
background: #f2f2f2 !important;
text-align: center !important;
font-weight: bold !important;
padding: 2px 4px !important;
border: none !important;
color: #555;
}
/* Строки */
table.recipe-table td {
padding: 2px 4px !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: 28px !important;
text-align: center !important;
}
table.recipe-table img {
width: 22px !important;
height: 22px !important;
margin: 0 !important;
padding: 0 !important;
}
/* Подсветка входов и выходов */
table.recipe-table tr.input-row td {
background: #f9fcff;
}
table.recipe-table tr.output-row td {
background: #f9fff9;
}