Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
:root { | :root { | ||
--width-layout: 100vw; | --width-layout: 100vw; | ||
--card-padding: 16px; | --card-padding: 16px; | ||
--gap: 20px; | --gap: 20px; | ||
--primary-bg: #1a1a1a; | |||
--secondary-bg: #2a2a2a; | |||
--text-color: #e0e0e0; | |||
--subtext-color: #b0b0b0; | |||
--border-color: #444444; | |||
--shadow-color: rgba(0, 0, 0, 0.4); | |||
--header-bg: #333333; | |||
--accent-color: #76c7c0; | |||
--recipe-bg: #222222; | |||
} | } | ||
body { | body { | ||
font-family: sans-serif; | font-family: sans-serif; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
| Строка 33: | Строка 34: | ||
.infoblock { | .infoblock { | ||
display: flex; | |||
flex-direction: column; | |||
width: calc((100% - 3 * var(--gap)) / 4); | |||
margin: 15px 0; | |||
padding: var(--card-padding); | |||
background: var(--primary-bg); | background: var(--primary-bg); | ||
border: 1px solid var(--border-color); | |||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 0 2px 8px var(--shadow-color); | box-shadow: 0 2px 8px var(--shadow-color); | ||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | ||
color: var(--text-color); | color: var(--text-color); | ||
transition: box-shadow 0.3s ease, background-color 0.3s ease; | transition: box-shadow 0.3s ease, background-color 0.3s ease; | ||
box-sizing: border-box; | |||
} | } | ||
| Строка 57: | Строка 58: | ||
gap: 8px; | gap: 8px; | ||
margin-bottom: 12px; | margin-bottom: 12px; | ||
padding: 6px 12px; | |||
font-size: 1.2em; | font-size: 1.2em; | ||
font-weight: 700; | font-weight: 700; | ||
background: var(--header-bg); | background: var(--header-bg); | ||
border-radius: 8px; | border-radius: 8px; | ||
color: var(--accent-color); | |||
user-select: none; | user-select: none; | ||
} | } | ||
| Строка 90: | Строка 91: | ||
.recipe-block { | .recipe-block { | ||
display: flex; | display: flex; | ||
flex-wrap: nowrap; | flex-wrap: nowrap; | ||
align-items: center; | align-items: center; | ||
gap: 12px; | |||
margin-bottom: 12px; | margin-bottom: 12px; | ||
padding: 15px; | |||
background-color: var(--recipe-bg); | background-color: var(--recipe-bg); | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color); | ||
border-radius: 8px; | |||
} | } | ||
.materials, | .materials, | ||
.result { | .result, | ||
background: var(-- | .action { | ||
background: var(--secondary-bg); | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1); | box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1); | ||
color: var(--text-color); | color: var(--text-color); | ||
font-size: 0.95em; | font-size: 0.95em; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
padding: 12px 16px; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
text-align: center; | |||
} | |||
.materials, | |||
.result { | |||
flex: 1 1 40%; | |||
flex-direction: column; | |||
} | } | ||
.action { | .action { | ||
flex: 0 0 auto; | |||
padding: 0; | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: | align-items: flex-start; | ||
font-weight: | font-weight: 100; | ||
color: var(--subtext-color); | color: var(--subtext-color); | ||
user-select: none; | user-select: none; | ||
cursor: default; | cursor: default; | ||
line-height: 1; | |||
} | } | ||
.action span { | .action span { | ||
margin-left: | position: relative; | ||
top: 10px; | |||
margin-left: 0; | |||
} | } | ||
.section { | .section { | ||
background: var(-- | background: var(--secondary-bg); | ||
padding: 10px 14px; | padding: 10px 14px; | ||
border-radius: 8px; | border-radius: 8px; | ||
| Строка 154: | Строка 164: | ||
.section ul li { | .section ul li { | ||
margin-bottom: 4px; | margin-bottom: 4px; | ||
} | |||
@media (max-width: 1200px) { | |||
.infoblock { | |||
width: calc((100% - 2 * var(--gap)) / 3); | |||
} | |||
} | } | ||
@media (max-width: 960px) { | @media (max-width: 960px) { | ||
.infoblock { | .infoblock { | ||
width: calc((100% - | width: calc((100% - var(--gap)) / 2); | ||
} | } | ||
} | } | ||
| Строка 175: | Строка 191: | ||
.action { | .action { | ||
flex: 1 1 100%; | flex: 1 1 100%; | ||
margin-top: 8px; | |||
} | } | ||
Версия от 17:55, 7 июля 2025
:root {
--width-layout: 100vw;
--card-padding: 16px;
--gap: 20px;
--primary-bg: #1a1a1a;
--secondary-bg: #2a2a2a;
--text-color: #e0e0e0;
--subtext-color: #b0b0b0;
--border-color: #444444;
--shadow-color: rgba(0, 0, 0, 0.4);
--header-bg: #333333;
--accent-color: #76c7c0;
--recipe-bg: #222222;
}
body {
font-family: sans-serif;
margin: 0;
padding: 0;
color: var(--text-color);
}
.chem-container {
display: flex;
flex-wrap: wrap;
gap: var(--gap);
justify-content: flex-start;
max-width: var(--width-layout);
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
}
.infoblock {
display: flex;
flex-direction: column;
width: calc((100% - 3 * var(--gap)) / 4);
margin: 15px 0;
padding: var(--card-padding);
background: var(--primary-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 2px 8px var(--shadow-color);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: var(--text-color);
transition: box-shadow 0.3s ease, background-color 0.3s ease;
box-sizing: border-box;
}
.infoblock:hover {
box-shadow: 0 6px 18px var(--shadow-color);
}
.header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding: 6px 12px;
font-size: 1.2em;
font-weight: 700;
background: var(--header-bg);
border-radius: 8px;
color: var(--accent-color);
user-select: none;
}
.title {
color: #ff4d4d;
font-weight: bold;
user-select: none;
}
.infoblock img,
.header img,
.action img {
width: 24px;
height: auto;
margin-right: 5px;
}
.content {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 14px;
margin-bottom: 20px;
}
.recipe-block {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 12px;
margin-bottom: 12px;
padding: 15px;
background-color: var(--recipe-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
}
.materials,
.result,
.action {
background: var(--secondary-bg);
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
color: var(--text-color);
font-size: 0.95em;
overflow-wrap: break-word;
padding: 12px 16px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.materials,
.result {
flex: 1 1 40%;
flex-direction: column;
}
.action {
flex: 0 0 auto;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
font-weight: 100;
color: var(--subtext-color);
user-select: none;
cursor: default;
line-height: 1;
}
.action span {
position: relative;
top: 10px;
margin-left: 0;
}
.section {
background: var(--secondary-bg);
padding: 10px 14px;
border-radius: 8px;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
color: var(--text-color);
font-size: 0.9em;
margin-top: 20px;
}
.section-title {
font-weight: bold;
margin-bottom: 5px;
}
.section ul {
list-style-type: disc;
padding-left: 20px;
}
.section ul li {
margin-bottom: 4px;
}
@media (max-width: 1200px) {
.infoblock {
width: calc((100% - 2 * var(--gap)) / 3);
}
}
@media (max-width: 960px) {
.infoblock {
width: calc((100% - var(--gap)) / 2);
}
}
@media (max-width: 600px) {
.infoblock {
width: 100%;
}
.recipe-block {
flex-wrap: wrap;
}
.materials,
.result,
.action {
flex: 1 1 100%;
margin-top: 8px;
}
.action {
margin-top: 8px;
}
}