Dantes (обсуждение | вклад) (Отмена правки 20309, сделанной Dantes (обсуждение)) Метка: отмена |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
body { | |||
- | font-family: sans-serif; | ||
background-color: #f0f0f0; | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
| Строка 29: | Строка 9: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: space-around; | |||
justify-content: | padding: 20px; | ||
gap: 20px; | |||
padding: | |||
} | } | ||
.infoblock { | .infoblock { | ||
background: | background-color: #fff; | ||
border | border: 1px solid #ccc; | ||
margin: 15px; | |||
padding: | padding: 20px; | ||
width: calc( | width: calc(30% - 30px); | ||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | |||
box-sizing: border-box; | box-sizing: border-box; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.infoblock: | .infoblock .header { | ||
display: flex; | |||
align-items: center; | |||
margin-bottom: 10px; | |||
} | } | ||
. | .infoblock img { | ||
width: 24px; | |||
height: auto; | |||
margin-right: 5px; | |||
margin- | |||
} | } | ||
.title { | .title { | ||
color: #ff4d4d; | |||
font-weight: bold; | |||
} | } | ||
.content { | .infoblock .content { | ||
margin-bottom: 20px; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Строка 82: | Строка 51: | ||
.recipe-block { | .recipe-block { | ||
border: 1px solid #eee; | |||
padding: 15px; | |||
background-color: #f9f9f9; | |||
display: flex; | display: flex; | ||
gap: 12px; | gap: 12px; | ||
flex-wrap: | flex-wrap: wrap; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.materials, | .materials, | ||
.result { | .result, | ||
background: | .action { | ||
background-color: #f9f9f9; | |||
padding: 12px 16px; | padding: 12px 16px; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0. | box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05); | ||
flex: 1 1 40%; | flex: 1 1 40%; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
| Строка 102: | Строка 73: | ||
.action { | .action { | ||
display: flex; | display: flex; | ||
align-items: center; | |||
justify-content: center; | justify-content: center; | ||
flex: 0 0 120px; | |||
font-weight: 600; | font-weight: 600; | ||
color: | color: #555; | ||
user-select: none; | user-select: none; | ||
cursor: default; | cursor: default; | ||
} | } | ||
.action | .action img { | ||
margin-left: | width: 24px; | ||
height: auto; | |||
margin-right: 5px; | |||
} | |||
.section-title { | |||
font-weight: bold; | |||
margin-bottom: 5px; | |||
} | |||
ul { | |||
list-style-type: disc; | |||
padding-left: 20px; | |||
} | } | ||
.section { | .section { | ||
background: | margin-top: 20px; | ||
background-color: #f9f9f9; | |||
padding: 10px 14px; | padding: 10px 14px; | ||
border-radius: 8px; | border-radius: 8px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
color: #222; | |||
} | } | ||
| Строка 137: | Строка 112: | ||
} | } | ||
@media (max-width: | @media (max-width: 768px) { | ||
.infoblock { | .infoblock { | ||
width: calc( | width: calc(50% - 30px); | ||
} | } | ||
} | } | ||
@media (max-width: | @media (max-width: 480px) { | ||
.infoblock { | .infoblock { | ||
width: 100%; | width: calc(100% - 30px); | ||
} | } | ||
.recipe-block { | .recipe-block { | ||
flex- | flex-direction: column; | ||
} | } | ||
Версия от 22:14, 3 июля 2025
body {
font-family: sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 0;
}
.chem-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
gap: 20px;
}
.infoblock {
background-color: #fff;
border: 1px solid #ccc;
margin: 15px;
padding: 20px;
width: calc(30% - 30px);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.infoblock .header {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.infoblock img {
width: 24px;
height: auto;
margin-right: 5px;
}
.title {
color: #ff4d4d;
font-weight: bold;
}
.infoblock .content {
margin-bottom: 20px;
display: flex;
flex-direction: column;
gap: 14px;
}
.recipe-block {
border: 1px solid #eee;
padding: 15px;
background-color: #f9f9f9;
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
.materials,
.result,
.action {
background-color: #f9f9f9;
padding: 12px 16px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
flex: 1 1 40%;
font-size: 0.95em;
overflow-wrap: break-word;
}
.action {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 120px;
font-weight: 600;
color: #555;
user-select: none;
cursor: default;
}
.action img {
width: 24px;
height: auto;
margin-right: 5px;
}
.section-title {
font-weight: bold;
margin-bottom: 5px;
}
ul {
list-style-type: disc;
padding-left: 20px;
}
.section {
margin-top: 20px;
background-color: #f9f9f9;
padding: 10px 14px;
border-radius: 8px;
font-size: 0.9em;
color: #222;
}
.section ul li {
margin-bottom: 4px;
}
@media (max-width: 768px) {
.infoblock {
width: calc(50% - 30px);
}
}
@media (max-width: 480px) {
.infoblock {
width: calc(100% - 30px);
}
.recipe-block {
flex-direction: column;
}
.materials,
.result,
.action {
flex: 1 1 100%;
}
.action {
margin-top: 8px;
}
}