Mediawiki:common.css

Вернуться

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