Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
#chemical-recipes { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 15px; | |||
justify-content: center; | |||
} | |||
.recipe-block { | .recipe-block { | ||
background-color: #2d2d2d; | background-color: #2d2d2d; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: | padding: 12px; | ||
margin | margin: 0; | ||
width: 300px; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.4); | box-shadow: 0 2px 5px rgba(0,0,0,0.4); | ||
border-left: 4px solid; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
} | } | ||
.recipe-name { | .recipe-name { | ||
font-size: | font-size: 18px; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: | margin-bottom: 8px; | ||
color: #f0f0f0; | color: #f0f0f0; | ||
} | } | ||
| Строка 16: | Строка 28: | ||
.section-title { | .section-title { | ||
background-color: #3a3a3a; | background-color: #3a3a3a; | ||
padding: | padding: 6px 10px; | ||
border-radius: 5px; | border-radius: 5px; | ||
cursor: pointer; | cursor: pointer; | ||
margin: | margin: 8px 0; | ||
position: relative; | position: relative; | ||
transition: background-color 0.3s; | transition: background-color 0.3s; | ||
| Строка 31: | Строка 43: | ||
content: '▶'; | content: '▶'; | ||
position: absolute; | position: absolute; | ||
right: | right: 10px; | ||
transition: transform 0.3s; | transition: transform 0.3s; | ||
} | } | ||
| Строка 40: | Строка 52: | ||
.section-content { | .section-content { | ||
padding: | padding: 8px; | ||
border-radius: 5px; | border-radius: 5px; | ||
background-color: #252525; | background-color: #252525; | ||
| Строка 51: | Строка 63: | ||
.recipe-item { | .recipe-item { | ||
margin-bottom: | margin-bottom: 10px; | ||
} | } | ||
| Строка 60: | Строка 72: | ||
.ingredients { | .ingredients { | ||
padding: | padding: 6px; | ||
background-color: #1e1e1e; | background-color: #1e1e1e; | ||
border-radius: 4px; | border-radius: 4px; | ||
margin-top: 5px; | margin-top: 5px; | ||
font-family: monospace; | font-family: monospace; | ||
font-size: 90%; | |||
} | } | ||
.effect { | .effect { | ||
padding: | padding: 6px; | ||
background-color: #1e1e1e; | background-color: #1e1e1e; | ||
border-radius: 4px; | border-radius: 4px; | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
color: #ff6b6b; | color: #ff6b6b; | ||
font-size: 90%; | |||
} | } | ||
| Строка 79: | Строка 93: | ||
margin-top: 10px; | margin-top: 10px; | ||
color: #a0a0a0; | color: #a0a0a0; | ||
font-size: 90%; | |||
} | } | ||
Версия от 02:58, 17 июня 2025
#chemical-recipes {
display: flex;
flex-wrap: wrap;
gap: 15px;
justify-content: center;
}
.recipe-block {
background-color: #2d2d2d;
border-radius: 8px;
padding: 12px;
margin: 0;
width: 300px;
box-shadow: 0 2px 5px rgba(0,0,0,0.4);
border-left: 4px solid;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.recipe-name {
font-size: 18px;
font-weight: bold;
margin-bottom: 8px;
color: #f0f0f0;
}
.section-title {
background-color: #3a3a3a;
padding: 6px 10px;
border-radius: 5px;
cursor: pointer;
margin: 8px 0;
position: relative;
transition: background-color 0.3s;
}
.section-title:hover {
background-color: #4a4a4a;
}
.section-title::after {
content: '▶';
position: absolute;
right: 10px;
transition: transform 0.3s;
}
.section-title.expanded::after {
transform: rotate(90deg);
}
.section-content {
padding: 8px;
border-radius: 5px;
background-color: #252525;
display: none;
}
.section-content.expanded {
display: block;
}
.recipe-item {
margin-bottom: 10px;
}
.output {
font-weight: bold;
color: #4fc3f7;
}
.ingredients {
padding: 6px;
background-color: #1e1e1e;
border-radius: 4px;
margin-top: 5px;
font-family: monospace;
font-size: 90%;
}
.effect {
padding: 6px;
background-color: #1e1e1e;
border-radius: 4px;
margin-bottom: 5px;
color: #ff6b6b;
font-size: 90%;
}
.description {
font-style: italic;
margin-top: 10px;
color: #a0a0a0;
font-size: 90%;
}
.gas { border-color: #adff2f; }
.liquid { border-color: #1e88e5; }
.solid { border-color: #ff9800; }