Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
.chem-container { | .chem-container { | ||
display: flex; | display: flex; | ||
| Строка 79: | Строка 43: | ||
gap: 14px; | gap: 14px; | ||
} | } | ||
.recipe-block { | .recipe-block { | ||
display: flex; | display: flex; | ||
gap: 12px; | gap: 12px; | ||
flex-wrap: | flex-wrap: nowrap; | ||
align-items: center; /* выравнивание по вертикали */ | |||
margin-bottom: 12px; | |||
} | } | ||
.materials | .materials, .result { | ||
background: #ffffff; | background: #ffffff; | ||
padding: | padding: 12px 16px; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0 0 4px rgba(0,0,0,0.05); | box-shadow: inset 0 0 4px rgba(0,0,0,0.05); | ||
flex: 1 1 40%; /* чуть шире */ | |||
} | } | ||
.action { | .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; | display: flex; | ||
justify-content: center; | |||
align-items: center; | align-items: center; | ||
font-weight: 600; | font-weight: 600; | ||
color: #555; | color: #555; | ||
user-select: none; | |||
cursor: default; | |||
} | } | ||
.action span { | .action span { | ||
margin-left: | margin-left: 8px; | ||
} | } | ||
.section { | .section { | ||
Версия от 13:00, 3 июля 2025
.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 колонка */
}
}