Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
:root { | :root { | ||
--width-layout: 100vw; | --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 { | .infoblocks { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 1. | gap: 1.5em; | ||
justify-content: flex-start; | justify-content: flex-start; | ||
padding: 2em; | padding: 2em; | ||
| Строка 11: | Строка 20: | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
.infoblock { | .infoblock { | ||
background: | background: var(--card-bg); | ||
color: | color: var(--text-color); | ||
flex: 1 1 calc(25% - 1. | flex: 1 1 calc(25% - 1.5em); | ||
min-width: | min-width: 300px; | ||
border: 1px solid | border: 1px solid var(--border-color); | ||
border-radius: 8px; | border-radius: 8px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.infoblock .header { | .infoblock .header { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
padding: 0.75em 1em; | padding: 0.75em 1em; | ||
background: var(--header-bg); | |||
background: | border-bottom: 1px solid var(--border-color); | ||
border-bottom: 1px solid | |||
} | } | ||
.infoblock .header img { width: | .infoblock .header img { width: 24px; margin-right: 0.5em; } | ||
.infoblock .header .title { font-weight: bold; font-size: 1. | .infoblock .header .title { font-weight: bold; font-size: 1.2em; } | ||
.infoblock .content { | .infoblock .content { | ||
padding: 1em; | padding: 1em; | ||
flex: 1; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
/* Блок рецептов: сетка материалов, | |||
/* Блок рецептов: сетка материалов, стрелка и результата */ | |||
.recipe-block { | .recipe-block { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr auto | grid-template-columns: auto 1fr auto; | ||
align-items: center; | align-items: center; | ||
gap: 0.5em; | gap: 0.5em; | ||
padding: 0.75em; | padding: 0.75em; | ||
background: var(--recipe-bg); | |||
border-radius: 6px; | |||
margin-bottom: 1em; | margin-bottom: 1em; | ||
} | } | ||
.materials, .result { | .materials, .result { | ||
background: var(--recipe-bg); | |||
} | } | ||
.materials .section-title, .result .section-title { | .materials .section-title, .result .section-title { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 1em; | font-size: 1em; | ||
color: | color: var(--accent-color); | ||
margin-bottom: 0.4em; | margin-bottom: 0.4em; | ||
} | } | ||
.materials ul, .result ul { | .materials ul, .result ul { | ||
margin: 0; | margin: 0; | ||
padding: 0 | padding: 0 0 0 1.2em; | ||
} | } | ||
.materials li, .result li { font-size: 0.95em; } | .materials li, .result li { font-size: 0.95em; line-height: 1.4; } | ||
.action { | .action { | ||
text-align: center; | text-align: center; | ||
color: var(--subtext-color); | |||
font-size: 0.95em; | |||
display: flex; | |||
flex-direction: column; | |||
} | } | ||
.action img { | .action img { width: 24px; margin-bottom: 0.2em; } | ||
/* Секции эффектов и описания */ | |||
margin: 0 | .section { | ||
margin-bottom: 1em; | |||
background: var(--section-bg); | |||
} | |||
.section-title { | |||
font-weight: bold; | |||
font-size: 1.05em; | |||
color: var(--subtext-color); | |||
margin-bottom: 0.6em; | |||
} | |||
.section ul { | |||
margin: 0; | |||
padding-left: 1.4em; | |||
} | } | ||
.section ul li { margin-bottom: 0.4em; } | .section ul li { margin-bottom: 0.4em; } | ||
Версия от 15:35, 2 июля 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 {
display: flex;
flex-wrap: wrap;
gap: 1.5em;
justify-content: flex-start;
padding: 2em;
max-width: var(--width-layout);
margin: 0 auto;
}
.infoblock {
background: var(--card-bg);
color: var(--text-color);
flex: 1 1 calc(25% - 1.5em);
min-width: 300px;
border: 1px solid var(--border-color);
border-radius: 8px;
display: flex;
flex-direction: column;
}
.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;
flex: 1;
display: flex;
flex-direction: column;
}
/* Блок рецептов: сетка материалов, стрелка и результата */
.recipe-block {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 0.5em;
padding: 0.75em;
background: var(--recipe-bg);
border-radius: 6px;
margin-bottom: 1em;
}
.materials, .result {
background: var(--recipe-bg);
}
.materials .section-title, .result .section-title {
font-weight: bold;
font-size: 1em;
color: var(--accent-color);
margin-bottom: 0.4em;
}
.materials ul, .result ul {
margin: 0;
padding: 0 0 0 1.2em;
}
.materials li, .result li { font-size: 0.95em; line-height: 1.4; }
.action {
text-align: center;
color: var(--subtext-color);
font-size: 0.95em;
display: flex;
flex-direction: column;
}
.action img { width: 24px; margin-bottom: 0.2em; }
/* Секции эффектов и описания */
.section {
margin-bottom: 1em;
background: var(--section-bg);
}
.section-title {
font-weight: bold;
font-size: 1.05em;
color: var(--subtext-color);
margin-bottom: 0.6em;
}
.section ul {
margin: 0;
padding-left: 1.4em;
}
.section ul li { margin-bottom: 0.4em; }