Mediawiki:common.css
| Строка 1: | Строка 1: | ||
/*Химия*/ | /*Химия*/ | ||
@media (max-width: 1280px) { .chem-heading { display: none | @media (max-width: 1280px) { | ||
.chem-heading { | |||
display: none; | |||
} | |||
} | } | ||
@media screen and (min-width: 1120px) { | |||
.citizen-toc-enabled .citizen-body-container { | |||
grid-template-areas:'void header header' 'sidebar content toc' 'footer footer footer'; | |||
grid-template-columns: 10% 70% 20%; | |||
margin-left: 8vw | |||
} | |||
} | } | ||
.chem-cards-container { | |||
.chem- | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | |||
gap: 20px; | |||
margin: 20px 0; | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | } | ||
.chem-card { | |||
.chem- | background-color: #121212; | ||
border: 3px solid var(--card-border, #444); | |||
border-radius: 12px; | |||
padding: 0; | |||
padding: | color: #e0e0e0; | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.5); | |||
overflow: hidden; | |||
} | } | ||
.chem-name-header { | |||
.chem- | background-color: var(--card-accent); | ||
color: #ffffff; | |||
font-size: 22px; | |||
font-weight: 700; | |||
align- | padding: 14px 20px; | ||
text-align: center; | |||
text-shadow: 1px 1px 3px rgba(0,0,0,0.7); | |||
margin: 0; | |||
} | } | ||
.chem-heading { | |||
.heading | display: flex; | ||
align-items: center; | |||
justify-content: space-between; | |||
padding: 10px 16px; | |||
background: rgba(255,255,255,0.06); | |||
border-top: 1px solid rgba(255,255,255,0.1); | |||
cursor: pointer; | |||
} | } | ||
.chem-heading-content { | |||
. | display: flex; | ||
width: 100%; | |||
justify-content: space-between; | |||
align-items: center; | |||
} | } | ||
.heading-text { | |||
. | font-size: 15px; | ||
font-weight: 600; | |||
color: var(--card-accent, #8cf); | |||
} | } | ||
.collapse-btn { | |||
. | border: 2px dotted #ffd700; | ||
padding: 2px 12px; | |||
padding: 12px | border-radius: 9999px; | ||
font-size: 13px; | |||
color: #ffd700; | |||
background: rgba(0,0,0,0.3); | |||
} | } | ||
.collapsible { | |||
overflow: hidden; | |||
transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); | |||
. | max-height: 0; | ||
} | } | ||
.collapsible.expanded { | |||
. | max-height: 2000px; | ||
padding: 12px 16px 16px; | |||
padding | |||
} | } | ||
.chem-recipe-block { | |||
.chem-recipe { | text-align: center; | ||
} | } | ||
.chem-recipe-steps { | |||
. | display: flex; | ||
display: flex; | flex-direction: column; | ||
flex-direction: column; | gap: 24px; | ||
gap: | |||
} | } | ||
.recipe-variant-header { | |||
.recipe- | font-size: 15px; | ||
font-weight: 700; | |||
color: #ffd700; | |||
text-align: center; | |||
padding: 8px 0; | |||
border-bottom: 1px dashed rgba(255,215,0,0.3); | |||
padding: | margin-bottom: 12px; | ||
border- | |||
} | } | ||
.chem-recipe { | |||
.chem- | width: 100%; | ||
width: | max-width: 640px; | ||
margin: 0 auto; | |||
display: grid; | |||
grid-template-columns: 1fr auto 1fr; | |||
gap: 16px; | |||
align-items: start; | |||
} | } | ||
.recipe-inputs, .recipe-outputs { | |||
.recipe- | display: flex; | ||
display: flex; | flex-direction: column; | ||
gap: 8px; | |||
} | } | ||
.recipe-item { | |||
.recipe- | display: flex; | ||
display: flex; | align-items: center; | ||
gap: 10px; | |||
background: rgba(255,255,255,0.08); | |||
border-radius: 6px; | |||
padding: 6px 10px; | |||
border-left: 4px solid var(--card-accent, #8cf); | |||
white-space: nowrap; | |||
} | } | ||
.chem-beaker { | |||
width: 36px; | |||
width: | height: 36px; | ||
height: | flex-shrink: 0; | ||
} | } | ||
.recipe-action { | |||
.action | display: flex; | ||
align-items: center; | |||
justify-content: center; | |||
min-width: 100px; | |||
} | } | ||
.recipe-action-content { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
gap: 6px; | |||
} | } | ||
.action-sprite .chem-beaker { | |||
.chem- | width: 42px; | ||
height: 42px; | |||
} | } | ||
.action-text { | |||
font-weight: 700; | |||
color: #ffd700; | |||
font-style: italic; | |||
font-size: 15px; | |||
text-align: center; | |||
line-height: 1.2; | |||
} | } | ||
.chem-effects .chem-effect-line { | |||
margin-bottom: 10px; | |||
font-size: 14px; | |||
line-height: 1.45; | |||
padding-left: 4px; | |||
} | } | ||
.chem-desc { | |||
margin: 12px 16px; | |||
body.page-Тест .mw-page-container, body.page-Тест .mw-body { | padding: 12px; | ||
max-width: | background: rgba(255,255,255,0.03); | ||
margin: 0 auto; | border-radius: 6px; | ||
border-left: 4px solid var(--card-accent, #8cf); | |||
font-size: 14px; | |||
color: #aaa; | |||
} | |||
@media (max-width: 1024px) { | |||
.chem-cards-container { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 768px) { | |||
.chem-cards-container { | |||
grid-template-columns: 1fr; | |||
} | |||
.chem-recipe { | |||
grid-template-columns: 1fr; | |||
gap: 12px; | |||
max-width: 100%; | |||
} | |||
} | |||
body.page-Тест .mw-page-container, body.page-Тест .mw-body { | |||
max-width: 2200px; | |||
margin: 0 auto; | |||
} | } | ||
/*Химия*/ | /*Химия*/ | ||