Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
:root { | :root { | ||
-- | --primary-bg: #f5f5f7; | ||
--header-bg: #ddd; | --header-bg: #ddd; | ||
--recipe-bg: #e5e5e5; | --recipe-bg: #e5e5e5; | ||
--text-color: #222; | --text-color: #222; | ||
--subtext-color: #555; | --subtext-color: #555; | ||
--shadow-color: rgba(0,0,0,0.1); | --accent-color: #995500; | ||
--border-color: #ccc; | |||
--shadow-color: rgba(0, 0, 0, 0.1); | |||
--width-layout: 100vw; | |||
--card-padding: 16px; | |||
--gap: 20px; | |||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:root { | :root { | ||
-- | --primary-bg: #2b2b2b; | ||
--header-bg: #333; | --header-bg: #333; | ||
--recipe-bg: #3a3a3a; | --recipe-bg: #3a3a3a; | ||
--text-color: #e0e0e0; | --text-color: #e0e0e0; | ||
--subtext-color: #ccc; | --subtext-color: #ccc; | ||
--shadow-color: rgba(0,0,0,0.5); | --accent-color: #ffd; | ||
--border-color: #555; | |||
--shadow-color: rgba(0, 0, 0, 0.5); | |||
} | } | ||
} | } | ||
| Строка 29: | Строка 29: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: var(--gap); | ||
justify-content: flex-start; | justify-content: flex-start; | ||
max-width: var(--width-layout); | max-width: var(--width-layout); | ||
| Строка 38: | Строка 38: | ||
.infoblock { | .infoblock { | ||
background: var(-- | background: var(--primary-bg); | ||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 0 2px 8px var(--shadow-color); | box-shadow: 0 2px 8px var(--shadow-color); | ||
padding: | padding: var(--card-padding); | ||
width: calc((100% - 40px) / 3); | width: calc((100% - 40px) / 3); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Строка 89: | Строка 89: | ||
} | } | ||
.materials, .result { | .materials, | ||
.result { | |||
background: var(--recipe-bg); | background: var(--recipe-bg); | ||
padding: 12px 16px; | padding: 12px 16px; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0 0 4px rgba(0,0,0,0.1); | box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1); | ||
flex: 1 1 40%; | flex: 1 1 40%; | ||
color: var(--text-color); | color: var(--text-color); | ||
| Строка 104: | Строка 105: | ||
padding: 12px 20px; | padding: 12px 20px; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0 0 4px rgba(0,0,0,0.1); | box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1); | ||
flex: 0 0 120px; | flex: 0 0 120px; | ||
display: flex; | display: flex; | ||
| Строка 123: | Строка 124: | ||
padding: 10px 14px; | padding: 10px 14px; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0 0 4px rgba(0,0,0,0.1); | box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1); | ||
color: var(--text-color); | color: var(--text-color); | ||
font-size: 0.9em; | font-size: 0.9em; | ||
| Строка 146: | Строка 147: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.recipe-block { | .recipe-block { | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
.materials, .result, .action { | |||
.materials, | |||
.result, | |||
.action { | |||
flex: 1 1 100%; | flex: 1 1 100%; | ||
} | } | ||
.action { | .action { | ||
margin-top: 8px; | margin-top: 8px; | ||
} | } | ||
} | } | ||
Версия от 21:52, 3 июля 2025
:root {
--primary-bg: #f5f5f7;
--header-bg: #ddd;
--recipe-bg: #e5e5e5;
--text-color: #222;
--subtext-color: #555;
--accent-color: #995500;
--border-color: #ccc;
--shadow-color: rgba(0, 0, 0, 0.1);
--width-layout: 100vw;
--card-padding: 16px;
--gap: 20px;
}
@media (prefers-color-scheme: dark) {
:root {
--primary-bg: #2b2b2b;
--header-bg: #333;
--recipe-bg: #3a3a3a;
--text-color: #e0e0e0;
--subtext-color: #ccc;
--accent-color: #ffd;
--border-color: #555;
--shadow-color: rgba(0, 0, 0, 0.5);
}
}
.chem-container {
display: flex;
flex-wrap: wrap;
gap: var(--gap);
justify-content: flex-start;
max-width: var(--width-layout);
margin: 0 auto;
padding: 10px;
box-sizing: border-box;
}
.infoblock {
background: var(--primary-bg);
border-radius: 12px;
box-shadow: 0 2px 8px var(--shadow-color);
padding: var(--card-padding);
width: calc((100% - 40px) / 3);
box-sizing: border-box;
display: flex;
flex-direction: column;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: var(--text-color);
transition: box-shadow 0.3s ease, background-color 0.3s ease;
border: 1px solid var(--border-color);
}
.infoblock:hover {
box-shadow: 0 6px 18px var(--shadow-color);
}
.header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
font-size: 1.2em;
font-weight: 700;
background: var(--header-bg);
padding: 6px 12px;
border-radius: 8px;
user-select: none;
color: var(--accent-color);
}
.title {
user-select: none;
}
.content {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 14px;
}
.recipe-block {
display: flex;
gap: 12px;
flex-wrap: nowrap;
align-items: center;
margin-bottom: 12px;
}
.materials,
.result {
background: var(--recipe-bg);
padding: 12px 16px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
flex: 1 1 40%;
color: var(--text-color);
font-size: 0.95em;
overflow-wrap: break-word;
}
.action {
background: var(--recipe-bg);
padding: 12px 20px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
flex: 0 0 120px;
display: flex;
justify-content: center;
align-items: center;
font-weight: 600;
color: var(--subtext-color);
user-select: none;
cursor: default;
}
.action span {
margin-left: 8px;
}
.section {
background: var(--recipe-bg);
padding: 10px 14px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
color: var(--text-color);
font-size: 0.9em;
}
.section ul {
padding-left: 18px;
}
.section ul li {
margin-bottom: 4px;
}
@media (max-width: 960px) {
.infoblock {
width: calc((100% - 20px) / 2);
}
}
@media (max-width: 600px) {
.infoblock {
width: 100%;
}
.recipe-block {
flex-wrap: wrap;
}
.materials,
.result,
.action {
flex: 1 1 100%;
}
.action {
margin-top: 8px;
}
}