Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) (Отмена правки 18712, сделанной Dantes (обсуждение)) Метка: отмена |
||
| Строка 41: | Строка 41: | ||
width: 100%; | width: 100%; | ||
} | } | ||
} | } | ||
Версия от 02:46, 3 мая 2025
.recipe-card {
width: 22%;
min-width: 200px;
box-sizing: border-box;
padding: 8px;
margin: 1%;
display: inline-block;
vertical-align: top;
background-color: #1e1e1e; /* Под тёмную тему */
border: 2px solid #4fc3f7;
border-radius: 8px;
color: #e0e0e0;
font-size: 12px;
}
.recipe-card[data-border] {
border-color: attr(data-border color, #4fc3f7);
}
/* Заголовки */
.collapsible-header {
cursor: pointer;
font-weight: bold;
margin: 0.5em 0 0.2em 0;
color: #81d4fa;
}
/* Содержимое */
.collapsible-content {
display: none;
}
/* Адаптация для 4 блоков в строку */
@media (max-width: 1000px) {
.recipe-card {
width: 45%;
}
}
@media (max-width: 600px) {
.recipe-card {
width: 100%;
}
}