Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.
- Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
- Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
- Internet Explorer / Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
- Opera: Нажмите Ctrl+F5.
.chem-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
align-items: start;
margin: 8px 0;
}
@media (max-width: 1200px) {
.chem-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
.chem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
.chem-grid { grid-template-columns: 1fr; }
}
.chem-card {
--card-bg: #0f1113; /* по умолчанию фон карточки (тёмный) */
--card-accent: #2a9d8f; /* акцент/градиент (можно задавать) */
--card-border: #203030; /* цвет рамки по умолчанию */
--section-bg: rgba(255,255,255,0.02);
color: #e6eef1;
background: linear-gradient(90deg, var(--card-bg) 0%, rgba(255,255,255,0.02) 100%);
border: 1px solid var(--card-border);
border-radius: 10px;
padding: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
display: flex;
flex-direction: column;
min-height: 120px;
transition: transform .08s ease, box-shadow .08s ease;
}
.chem-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,0.65);
}
.chem-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.chem-header h3 {
margin: 0;
font-size: 1.05rem;
line-height: 1;
}
.chem-header .formula {
opacity: 0.9;
font-size: 0.95rem;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02));
padding: 4px 8px;
border-radius: 6px;
border: 1px solid rgba(255,255,255,0.03);
}
.chem-section {
margin: 6px 0;
padding: 6px;
background: var(--section-bg);
border-radius: 6px;
font-size: 0.95rem;
}
.chem-recipe {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: flex-start;
}
.chem-recipe .recipe-group {
flex: 1 1 48%;
min-width: 160px;
background: rgba(0,0,0,0.12);
padding: 6px;
border-radius: 6px;
border: 1px solid rgba(255,255,255,0.03);
}
.chem-recipe .recipe-group b { display:block; margin-bottom:6px; }
.chem-recipe .recipe-item {
display: flex;
justify-content: space-between;
gap: 8px;
padding: 3px 0;
font-size: 0.9rem;
}
.chem-recipe .recipe-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chem-recipe .recipe-item .qty { opacity: 0.85; }
.chem-effects { margin: 0; padding-left: 18px; }
.chem-effects li { margin: 4px 0; font-size: 0.92rem; }
.chem-desc { font-size: 0.9rem; opacity: 0.95; }