Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
.recipe- | .recipe-card { | ||
display: | 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 { | .collapsible-header { | ||
cursor: pointer; | cursor: pointer; | ||
font-weight: bold; | font-weight: bold; | ||
margin | margin: 0.5em 0 0.2em 0; | ||
color: # | color: #81d4fa; | ||
} | } | ||
/* Содержимое */ | |||
.collapsible-content { | .collapsible-content { | ||
display: none; | display: none; | ||
} | } | ||
. | /* Адаптация для 4 блоков в строку */ | ||
@media (max-width: 1000px) { | |||
.recipe-card { | |||
width: 45%; | |||
} | |||
} | |||
@media (max-width: 600px) { | |||
.recipe-card { | |||
width: 100%; | |||
} | |||
} | } | ||
Версия от 02:41, 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%;
}
}