Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
: | .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; | |||
justify-content: space-between; | |||
gap: 12px; | |||
flex-wrap: wrap; | |||
} | |||
.materials, .action, .result { | |||
background: #ffffff; | |||
padding: 10px 14px; | |||
border-radius: 8px; | |||
flex: 1 1 30%; | |||
box-shadow: inset 0 0 4px rgba(0,0,0,0.05); | |||
} | |||
.section-title { | |||
font-weight: 600; | |||
margin-bottom: 6px; | |||
color: #444; | |||
} | |||
.materials ul, .result ul, .section ul { | |||
margin: 0; | |||
padding-left: 18px; | |||
} | |||
.action { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-weight: 600; | |||
font-size: 1em; | |||
color: #555; | |||
} | |||
.action span { | |||
margin-left: 6px; | |||
user-select: none; | |||
} | |||
.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 колонки */ | |||
. | |||
width: 20px; | |||
} | } | ||
} | |||
@media (max-width: 600px) { | |||
.infoblock { | |||
width: 100%; /* 1 колонка */ | |||
. | |||
} | } | ||
} | |||
Версия от 12:57, 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;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.materials, .action, .result {
background: #ffffff;
padding: 10px 14px;
border-radius: 8px;
flex: 1 1 30%;
box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
.section-title {
font-weight: 600;
margin-bottom: 6px;
color: #444;
}
.materials ul, .result ul, .section ul {
margin: 0;
padding-left: 18px;
}
.action {
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 1em;
color: #555;
}
.action span {
margin-left: 6px;
user-select: none;
}
.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 колонка */
}
}