Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 12: | Строка 12: | ||
.infoblocks { | .infoblocks { | ||
column-count: 3; | |||
column-gap: 1.5em; | |||
padding: 2em; | padding: 2em; | ||
max-width: var(--width-layout); | max-width: var(--width-layout); | ||
| Строка 25: | Строка 24: | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color); | ||
border-radius: 8px; | border-radius: 8px; | ||
display: | display: inline-block; | ||
width: 100%; | |||
margin-bottom: 1.5em; | |||
break-inside: avoid; | |||
} | } | ||
| Строка 41: | Строка 42: | ||
.infoblock .content { | .infoblock .content { | ||
padding: 1em; | padding: 1em; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Строка 47: | Строка 47: | ||
.recipe-block { | .recipe-block { | ||
display: | display: flex; | ||
flex-direction: row; | |||
align-items: start; | justify-content: space-between; | ||
align-items: flex-start; | |||
gap: 0.75em; | gap: 0.75em; | ||
padding: 0.75em; | padding: 0.5em 0.75em; | ||
background: var(--recipe-bg); | background: var(--recipe-bg); | ||
border-radius: 6px; | border-radius: 6px; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
} | |||
.materials, .result { | |||
flex: 1; | |||
} | } | ||
| Строка 60: | Строка 65: | ||
.result .section-title { | .result .section-title { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: | font-size: 0.95em; | ||
color: var(--accent-color); | color: var(--accent-color); | ||
margin-bottom: 0. | margin-bottom: 0.3em; | ||
} | } | ||
.materials ul, | .materials ul, | ||
| Строка 71: | Строка 76: | ||
.materials li, | .materials li, | ||
.result li { | .result li { | ||
font-size: 0. | font-size: 0.9em; | ||
line-height: 1. | line-height: 1.3; | ||
} | } | ||
| Строка 78: | Строка 83: | ||
text-align: center; | text-align: center; | ||
color: var(--subtext-color); | color: var(--subtext-color); | ||
font-size: 0. | font-size: 0.85em; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
padding: 0 0.5em; | |||
} | } | ||
.action img { | .action img { | ||
width: | width: 20px; | ||
margin-bottom: 0.2em; | margin-bottom: 0.2em; | ||
} | } | ||
| Строка 95: | Строка 101: | ||
.section-title { | .section-title { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: | font-size: 1em; | ||
color: var(--subtext-color); | color: var(--subtext-color); | ||
margin-bottom: 0. | margin-bottom: 0.5em; | ||
} | } | ||
.section ul { | .section ul { | ||
Версия от 12:53, 3 июля 2025
:root {
--width-layout: 100vw;
--card-bg: #2b2b2b;
--header-bg: #333;
--recipe-bg: #3a3a3a;
--section-bg: transparent;
--border-color: #555;
--accent-color: #ffd;
--text-color: #e0e0e0;
--subtext-color: #ccc;
}
.infoblocks {
column-count: 3;
column-gap: 1.5em;
padding: 2em;
max-width: var(--width-layout);
margin: 0 auto;
}
.infoblock {
background: var(--card-bg);
color: var(--text-color);
border: 1px solid var(--border-color);
border-radius: 8px;
display: inline-block;
width: 100%;
margin-bottom: 1.5em;
break-inside: avoid;
}
.infoblock .header {
display: flex;
align-items: center;
padding: 0.75em 1em;
background: var(--header-bg);
border-bottom: 1px solid var(--border-color);
}
.infoblock .header img { width: 24px; margin-right: 0.5em; }
.infoblock .header .title { font-weight: bold; font-size: 1.2em; }
.infoblock .content {
padding: 1em;
display: flex;
flex-direction: column;
}
.recipe-block {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
gap: 0.75em;
padding: 0.5em 0.75em;
background: var(--recipe-bg);
border-radius: 6px;
margin-bottom: 1em;
}
.materials, .result {
flex: 1;
}
.materials .section-title,
.result .section-title {
font-weight: bold;
font-size: 0.95em;
color: var(--accent-color);
margin-bottom: 0.3em;
}
.materials ul,
.result ul {
margin: 0;
padding: 0 0 0 1.2em;
}
.materials li,
.result li {
font-size: 0.9em;
line-height: 1.3;
}
.action {
text-align: center;
color: var(--subtext-color);
font-size: 0.85em;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 0.5em;
}
.action img {
width: 20px;
margin-bottom: 0.2em;
}
.section {
margin-bottom: 1em;
background: var(--section-bg);
}
.section-title {
font-weight: bold;
font-size: 1em;
color: var(--subtext-color);
margin-bottom: 0.5em;
}
.section ul {
margin: 0;
padding-left: 1.4em;
}
.section ul li { margin-bottom: 0.4em; }