Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 2: | Строка 2: | ||
--width-layout: 100vw; | --width-layout: 100vw; | ||
} | } | ||
.infoblocks { | .infoblocks { | ||
display: flex; | display: flex; | ||
| Строка 12: | Строка 11: | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
.infoblock { | .infoblock { | ||
background: #2b2b2b; | background: #2b2b2b; | ||
| Строка 24: | Строка 22: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.infoblock .header { | .infoblock .header { | ||
display: flex; | display: flex; | ||
| Строка 35: | Строка 32: | ||
.infoblock .header img { width: 22px; } | .infoblock .header img { width: 22px; } | ||
.infoblock .header .title { font-weight: bold; font-size: 1.15em; } | .infoblock .header .title { font-weight: bold; font-size: 1.15em; } | ||
.infoblock .content { | .infoblock .content { | ||
padding: 1em; | padding: 1em; | ||
| Строка 43: | Строка 40: | ||
flex: 1; | flex: 1; | ||
} | } | ||
/* | /* Рецепт: материалы, действие, результат */ | ||
.recipe-block { | .recipe-block { | ||
display: | display: grid; | ||
grid-template-columns: 1fr auto 1fr; | |||
align-items: center; | align-items: center; | ||
gap: 0.5em; | |||
border: 1px dashed #666; | border: 1px dashed #666; | ||
padding: 0.75em; | padding: 0.75em; | ||
| Строка 53: | Строка 51: | ||
background: #2f2f2f; | background: #2f2f2f; | ||
} | } | ||
. | .materials, .result { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0.3em; | gap: 0.3em; | ||
} | } | ||
. | .materials .section-title, .result .section-title { | ||
.result ul { | font-weight: bold; | ||
font-size: 1em; | |||
color: #fff; | |||
margin-bottom: 0.4em; | |||
} | |||
.materials ul, .result ul { | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
list-style: none; | list-style: none; | ||
} | } | ||
. | .materials li, .result li { font-size: 0.95em; } | ||
.action { | .action { | ||
text-align: center; | |||
} | } | ||
.action img { | .action img { | ||
width: 20px; | width: 20px; | ||
display: block; | |||
margin: 0 auto 0.2em; | |||
} | } | ||
.action span { color: #ccc; font-size: 0.95em; } | |||
.section { margin-bottom: 1em; } | .section { margin-bottom: 1em; } | ||
.section:last-child { margin-bottom: 0; } | .section:last-child { margin-bottom: 0; } | ||
Версия от 15:19, 2 июля 2025
:root {
--width-layout: 100vw;
}
.infoblocks {
display: flex;
flex-wrap: wrap;
gap: 1.2em;
justify-content: flex-start;
padding: 2em;
max-width: var(--width-layout);
margin: 0 auto;
}
.infoblock {
background: #2b2b2b;
color: #e0e0e0;
flex: 1 1 calc(25% - 1.2em);
min-width: 280px;
border: 1px solid #555;
border-radius: 8px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.infoblock .header {
display: flex;
align-items: center;
padding: 0.75em 1em;
gap: 0.6em;
background: #333;
border-bottom: 1px solid #555;
}
.infoblock .header img { width: 22px; }
.infoblock .header .title { font-weight: bold; font-size: 1.15em; }
.infoblock .content {
padding: 1em;
display: flex;
flex-direction: column;
line-height: 1.5;
flex: 1;
}
/* Рецепт: материалы, действие, результат */
.recipe-block {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 0.5em;
border: 1px dashed #666;
padding: 0.75em;
margin-bottom: 1em;
background: #2f2f2f;
}
.materials, .result {
display: flex;
flex-direction: column;
gap: 0.3em;
}
.materials .section-title, .result .section-title {
font-weight: bold;
font-size: 1em;
color: #fff;
margin-bottom: 0.4em;
}
.materials ul, .result ul {
margin: 0;
padding: 0;
list-style: none;
}
.materials li, .result li { font-size: 0.95em; }
.action {
text-align: center;
}
.action img {
width: 20px;
display: block;
margin: 0 auto 0.2em;
}
.action span { color: #ccc; font-size: 0.95em; }
.section { margin-bottom: 1em; }
.section:last-child { margin-bottom: 0; }
.section-title { font-weight: bold; font-size: 1.05em; color: #ccc; margin-bottom: 0.6em; }
.section ul { margin: 0; padding-left: 1.4em; }
.section ul li { margin-bottom: 0.4em; }