Mediawiki:common.css
| Строка 1: | Строка 1: | ||
/*Химия*/ | /*Химия*/ | ||
@media (max-width: 1280px) { | @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: | gap: 20px; | ||
margin: 20px 0; | margin: 20px 0; | ||
width: 100%; | width: 100%; | ||
| Строка 18: | Строка 13: | ||
.chem-card { | .chem-card { | ||
background-color: #121212; | |||
border: 3px solid var(--card-border, #444); | |||
background-color: | border-radius: 12px; | ||
border: | padding: 0; | ||
border-radius: | color: #e0e0e0; | ||
padding: | box-shadow: 0 4px 12px rgba(0,0,0,0.5); | ||
color: | |||
box- | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.chem- | .chem-name-header { | ||
background-color: var(--card-accent); | |||
color: #ffffff; | |||
font-size: | font-size: 22px; | ||
font-weight: | font-weight: 700; | ||
padding: 14px 20px; | |||
text-align: center; | text-align: center; | ||
text-shadow: 1px 1px 3px rgba(0,0,0,0.7); | |||
margin: 0; | |||
} | } | ||
| Строка 47: | Строка 37: | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | 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; | 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); } | ||
padding- | .collapse-btn { | ||
border: 2px dotted #ffd700; | |||
padding: 2px 12px; | |||
border-radius: 9999px; | |||
font-size: 13px; | |||
color: #ffd700; | |||
background: rgba(0,0,0,0.3); | |||
} | } | ||
.chem-recipe | .collapsible { overflow: hidden; transition: max-height 0.4s ease; max-height: 0; } | ||
.chem-effects | .collapsible.expanded { max-height: 2000px; padding: 12px 16px 16px; } | ||
} | .chem-recipe, .chem-effects { padding: 0 16px 16px; } | ||
.chem-recipe { | .chem-recipe { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr auto 1fr; | grid-template-columns: 1fr auto 1fr; | ||
gap: | gap: 16px; | ||
align-items: start; | align-items: start; | ||
} | } | ||
.recipe-inputs, | .recipe-inputs, .recipe-outputs { | ||
.recipe-outputs { | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 8px; | ||
} | } | ||
.recipe- | .recipe-item { | ||
display: flex; | display: flex; | ||
align-items: center; | 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-item { | .recipe-item-text { | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | } | ||
. | .recipe-action { | ||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
justify-content: center; | |||
font-weight: 700; | |||
color: #ffd700; | |||
font-style: italic; | |||
font-size: 15px; | |||
min-width: 80px; | |||
} | } | ||
.chem-effects | .chem-effects .chem-effect-line { | ||
margin-bottom: 10px; | |||
font-size: 14px; | font-size: 14px; | ||
line-height: 1. | line-height: 1.45; | ||
padding-left: 4px; | |||
} | } | ||
.chem-desc { | .chem-desc { | ||
margin- | margin: 12px 16px; | ||
padding: 12px; | |||
background: rgba(255,255,255,0.03); | |||
border-radius: 6px; | |||
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 { | .chem-cards-container { grid-template-columns: repeat(2, 1fr); } | ||
} | } | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.chem-cards-container { | .chem-cards-container { grid-template-columns: 1fr; } | ||
.chem-recipe { grid-template-columns: 1fr; gap: 12px; } | |||
.chem-recipe { | |||
} | } | ||