Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
.recipe-card { | .recipe-card { | ||
width: 22%; | width: 22%; | ||
min-width: | min-width: 220px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
padding: | padding: 1.5em; | ||
margin: 1em; | margin: 1em; | ||
display: inline-block; | display: inline-block; | ||
vertical-align: top; | vertical-align: top; | ||
background-color: # | background-color: #212121; | ||
border: 2px solid #444; | border: 2px solid #444; | ||
border-radius: 10px; | border-radius: 10px; | ||
color: | color: #f5f5f5; | ||
font-size: | font-size: 14px; | ||
box-shadow: 0 2px | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); | ||
transition: box-shadow 0.3s ease-in-out, transform 0.3s ease; | |||
} | } | ||
.recipe-card | .recipe-card:hover { | ||
transform: translateY(-5px); | |||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); | |||
} | } | ||
.collapsible-block { | .collapsible-block { | ||
margin-top: | margin-top: 1em; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #555; | ||
padding-bottom: 0. | padding-bottom: 0.5em; | ||
} | } | ||
.collapsible-header { | .collapsible-header { | ||
background-color: #333; | |||
background-color: # | |||
border: 1px solid #666; | border: 1px solid #666; | ||
border-radius: 5px; | border-radius: 5px; | ||
padding: | padding: 10px 15px; | ||
font-size: | font-size: 16px; | ||
font-weight: bold; | font-weight: bold; | ||
color: #81d4fa; | color: #81d4fa; | ||
text-transform: uppercase; | |||
cursor: pointer; | cursor: pointer; | ||
transition: background-color 0.3s ease, color 0.3s ease; | |||
width: 100%; | width: 100%; | ||
} | |||
.collapsible-header:hover { | |||
background-color: #444; | |||
color: #ffffff; | |||
} | } | ||
.collapsible-content { | .collapsible-content { | ||
display: none; | display: none; | ||
margin-top: | margin-top: 1em; | ||
padding-left: 1em; | |||
border-left: 2px solid #444; | |||
} | } | ||
.recipe-description { | .recipe-description { | ||
margin-top: | margin-top: 1em; | ||
font-size: 14px; | |||
color: #ccc; | color: #ccc; | ||
} | |||
.recipe-description strong { | |||
color: #81d4fa; | |||
} | } | ||
Версия от 03:10, 3 мая 2025
.recipe-card {
width: 22%;
min-width: 220px;
box-sizing: border-box;
padding: 1.5em;
margin: 1em;
display: inline-block;
vertical-align: top;
background-color: #212121;
border: 2px solid #444;
border-radius: 10px;
color: #f5f5f5;
font-size: 14px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
transition: box-shadow 0.3s ease-in-out, transform 0.3s ease;
}
.recipe-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.collapsible-block {
margin-top: 1em;
border-bottom: 1px solid #555;
padding-bottom: 0.5em;
}
.collapsible-header {
background-color: #333;
border: 1px solid #666;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
font-weight: bold;
color: #81d4fa;
text-transform: uppercase;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
width: 100%;
}
.collapsible-header:hover {
background-color: #444;
color: #ffffff;
}
.collapsible-content {
display: none;
margin-top: 1em;
padding-left: 1em;
border-left: 2px solid #444;
}
.recipe-description {
margin-top: 1em;
font-size: 14px;
color: #ccc;
}
.recipe-description strong {
color: #81d4fa;
}