Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
: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; | |||
} | |||
.chem-container { | .chem-container { | ||
display: flex; | display: flex; | ||
Версия от 14:14, 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;
}
.chem-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
}
.infoblock {
background: #f5f5f7;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 16px;
width: calc((100% - 40px) / 3); /* 3 колонки с отступом */
box-sizing: border-box;
display: flex;
flex-direction: column;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #222;
transition: box-shadow 0.3s ease;
}
.infoblock:hover {
box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
font-size: 1.2em;
font-weight: 700;
}
.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: #ffffff;
padding: 12px 16px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
flex: 1 1 40%; /* чуть шире */
}
.action {
background: #ffffff;
padding: 12px 20px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
flex: 0 0 120px; /* фиксированная ширина */
display: flex;
justify-content: center;
align-items: center;
font-weight: 600;
color: #555;
user-select: none;
cursor: default;
}
.action span {
margin-left: 8px;
}
.section {
background: #ffffff;
padding: 10px 14px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
.section ul li {
margin-bottom: 4px;
}
/* Мобильная адаптация */
@media (max-width: 960px) {
.infoblock {
width: calc((100% - 20px) / 2); /* 2 колонки */
}
}
@media (max-width: 600px) {
.infoblock {
width: 100%; /* 1 колонка */
}
}