Mediawiki:common.css
| Строка 1: | Строка 1: | ||
/*Химия*/ | /*Химия*/ | ||
@media (max-width: 1280px) { .chem-heading { display: none; } } | @media (max-width: 1280px) { .chem-heading { display: none; } } | ||
.chem-cards-container { | .chem-cards-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: 20px; | gap: 20px; | ||
margin: 20px 0; | margin: 20px 0; | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.chem-card { | .chem-card { | ||
background-color: #121212; | background-color: #121212; | ||
border: 3px solid var(--card-border, #444); | border: 3px solid var(--card-border, #444); | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: 0; | padding: 0; | ||
color: #e0e0e0; | color: #e0e0e0; | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.5); | box-shadow: 0 4px 12px rgba(0,0,0,0.5); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.chem-name-header { | .chem-name-header { | ||
background-color: var(--card-accent); | background-color: var(--card-accent); | ||
color: #ffffff; | color: #ffffff; | ||
font-size: 22px; | font-size: 22px; | ||
font-weight: 700; | font-weight: 700; | ||
padding: 14px 20px; | padding: 14px 20px; | ||
text-align: center; | text-align: center; | ||
text-shadow: 1px 1px 3px rgba(0,0,0,0.7); | text-shadow: 1px 1px 3px rgba(0,0,0,0.7); | ||
margin: 0; | margin: 0; | ||
} | } | ||
.chem-heading { | .chem-heading { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: 10px 16px; | padding: 10px 16px; | ||
background: rgba(255,255,255,0.06); | background: rgba(255,255,255,0.06); | ||
border-top: 1px solid rgba(255,255,255,0.1); | border-top: 1px solid rgba(255,255,255,0.1); | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.chem-heading-content { | .chem-heading-content { | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.heading-text { font-size: 15px; font-weight: 600; color: var(--card-accent, #8cf); } | .heading-text { | ||
font-size: 15px; | |||
font-weight: 600; | |||
color: var(--card-accent, #8cf); | |||
} | |||
.collapse-btn { | .collapse-btn { | ||
border: 2px dotted #ffd700; | border: 2px dotted #ffd700; | ||
padding: 2px 12px; | padding: 2px 12px; | ||
border-radius: 9999px; | border-radius: 9999px; | ||
font-size: 13px; | font-size: 13px; | ||
color: #ffd700; | color: #ffd700; | ||
background: rgba(0,0,0,0.3); | background: rgba(0,0,0,0.3); | ||
} | } | ||
.collapsible { overflow: hidden; transition: max-height 0.4s | .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; | |||
} | } | ||
. | .chem-recipe-steps { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 20px; | ||
} | |||
.chem-recipe, .chem-effects { | |||
padding: 0 16px 16px; | |||
} | |||
.chem-recipe { | |||
display: grid; | |||
grid-template-columns: 1fr auto 1fr; | |||
gap: 16px; | |||
align-items: start; | |||
} | } | ||
.recipe- | .recipe-inputs, .recipe-outputs { | ||
display: flex; | display: flex; | ||
flex-direction: column; | |||
gap: | gap: 8px; | ||
} | } | ||
. | .recipe-item { | ||
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); | |||
} | } | ||
. | .chem-beaker { | ||
width: 36px; | |||
height: 36px; | |||
flex-shrink: 0; | |||
} | } | ||
.recipe-action { | .recipe-action { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
font-weight: 700; | font-weight: 700; | ||
color: #ffd700; | color: #ffd700; | ||
font-style: italic; | font-style: italic; | ||
font-size: 15px; | font-size: 15px; | ||
min-width: 80px; | min-width: 80px; | ||
} | } | ||
.chem-effects .chem-effect-line { | .chem-effects .chem-effect-line { | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1.45; | line-height: 1.45; | ||
padding-left: 4px; | padding-left: 4px; | ||
} | } | ||
.chem-desc { | .chem-desc { | ||
margin: 12px 16px; | margin: 12px 16px; | ||
padding: 12px; | padding: 12px; | ||
background: rgba(255,255,255,0.03); | background: rgba(255,255,255,0.03); | ||
border-radius: 6px; | border-radius: 6px; | ||
border-left: 4px solid var(--card-accent, #8cf); | border-left: 4px solid var(--card-accent, #8cf); | ||
font-size: 14px; | font-size: 14px; | ||
color: #aaa; | color: #aaa; | ||
} | } | ||
@media (max-width: 1024px) { | @media (max-width: 1024px) { | ||
.chem-cards-container { grid-template-columns: repeat(2, 1fr); } | .chem-cards-container { grid-template-columns: repeat(2, 1fr); } | ||
} | } | ||
@media (max-width: 768px) { | |||
.chem-cards-container { grid-template-columns: 1fr; } | @media (max-width: 768px) { | ||
.chem-recipe { grid-template-columns: 1fr; gap: 12px; } | .chem-cards-container { grid-template-columns: 1fr; } | ||
.chem-recipe { grid-template-columns: 1fr; gap: 12px; } | |||
} | } | ||
/* Ограничение ширины | /* Ограничение ширины */ | ||
body.page-Тест .mw-page-container, | body.page-Тест .mw-page-container, body.page-Тест .mw-body { | ||
body.page-Тест .mw-body { | max-width: 1800px; | ||
max-width: 1800px; | margin: 0 auto; | ||
margin: 0 auto; | |||
} | } | ||
/*Химия*/ | /*Химия*/ | ||