Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

MediaWiki:Test.css: различия между версиями

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
:root {
@media (max-width: 1280px) {
     --color-primary__h: 25;
     .chem-heading {
    --color-primary__l: 40%;
        display: none;
    --primary-bg-color: #2a1a0f;
     }
    --secondary-bg-color: #3b1f0b;
    --item-bg-color: #402715;
    --item-hover-bg-color: #5a2d0f;
    --border-color: #8b4513;
    --text-color: #ffe4b5;
    --hover-text-color: #fff8dc;
    --cf-bg-card: #3a1a0f;
    --cf-text-light: #ffdab9;
    --cf-text-muted: #c68642;
    --pumpkin-orange: #ff7518;
    --spooky-purple: #5a005a;
    --bat-black: #1b0c0c;
    --ghost-white: #f8f8ff;
    --zombie-green: #556b2f;
     --fire-color: #ff4500;
    --moon-glow: #f0f8ff;
}
}
 
@media screen and (min-width: 1120px) {
body, .mw-body {
    body.page-Тест .citizen-body-container {
    background:  
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
         radial-gradient(circle at top, #3b0f0f 0%, #1c0c0c 70%),
         grid-template-columns: 10% 70% 20%;
        linear-gradient(to bottom, #2a1a0f 0%, #3b1f0b 30%, #5a2d0f 60%, #ff7518 80%, #2c1c0f 100%);
        margin-left: 8vw;
    background-attachment: fixed;
        max-width: none;
    color: var(--text-color);
     }
    transition: all 0.5s ease;
     min-height: 100vh;
}
}
 
.chem-cards-container {
.mw-headline, h2, h3 {
    display: grid;
     color: var(--pumpkin-orange);
    grid-template-columns: repeat(3, 1fr);
     text-shadow: 2px 2px 6px #000, 0 0 15px rgba(255,117,24,0.4), 0 0 25px rgba(139,0,139,0.3);
    gap: 20px;
     animation: spooky-glow 4s ease-in-out infinite alternate;
    margin: 20px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.chem-card {
     background-color: #121212;
    border: 3px solid var(--card-border, #444);
     border-radius: 12px;
    padding: 0;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
     overflow: hidden;
}
}
 
.chem-name-header {
@keyframes spooky-glow {
     background-color: var(--card-accent);
     0%, 100% { text-shadow: 2px 2px 6px #000, 0 0 15px rgba(255,117,24,0.4); }
     color: #ffffff;
     50% { text-shadow: 2px 2px 8px #000, 0 0 20px rgba(255,117,24,0.6), 0 0 30px rgba(90,0,90,0.4); }
    font-size: 22px;
    font-weight: 700;
    padding: 14px 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
}
}
 
.chem-heading {
.mw-body-header .firstHeading-container h1 {
    display: flex;
     color: #ffb84d !important;
    align-items: center;
     text-shadow: 2px 2px 4px #000;
    justify-content: space-between;
     animation: none !important;
    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 {
.mw-body-header #siteSub {
     display: flex;
     color: #ffdcb3 !important;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
}
 
.heading-text {
.mw-body-header a {
     font-size: 15px;
     color: #ffb84d !important;
     font-weight: 600;
     text-shadow: 0 0 3px rgba(255,117,24,0.2);
     color: var(--card-accent, #8cf);
     transition: all 0.4s;
}
}
 
.collapse-btn {
.mw-body-header a:hover {
    border: 2px dotted #ffd700;
     color: #fff8dc !important;
    padding: 2px 12px;
     text-shadow: 0 0 8px var(--pumpkin-orange), 0 0 15px var(--spooky-purple);
    border-radius: 9999px;
    font-size: 13px;
     color: #ffd700;
     background: rgba(0,0,0,0.3);
}
}
 
.collapsible {
a { color: #ffb84d; text-decoration: none; transition: all 0.3s; }
a:hover { color: #fff8dc; text-shadow: 0 0 12px var(--pumpkin-orange), 0 0 20px var(--spooky-purple); }
 
table, th, td, blockquote, .infobox, .navbox, div.thumb, .mw-parser-output > div {
    background: linear-gradient(135deg, #402715, #5a2d0f);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    position: relative;
     overflow: hidden;
     overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-height: 0;
    padding: 0;
}
.collapsible.expanded {
    max-height: 2000px;
    padding: 12px 16px 16px;
}
.chem-recipe-block {
    text-align: center;
}
.chem-recipe-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
}
 
.recipe-variant-header {
table:hover, .infobox:hover, .navbox:hover {
    font-size: 15px;
     box-shadow: 0 6px 20px rgba(255,117,24,0.3), 0 0 20px var(--spooky-purple);
    font-weight: 700;
     border-color: var(--pumpkin-orange);
    color: #ffd700;
     text-align: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
     margin-bottom: 12px;
}
}
 
.chem-recipe {
button, .oo-ui-buttonElement-button {
    width: 100%;
     background: linear-gradient(135deg, #331a00, #5a2d0f);
    max-width: 800px;
     color: var(--text-color);
    margin: 0 auto;
     border: 1px solid #8b4513;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
}
.recipe-inputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
     background: rgba(255,255,255,0.06);
     border-radius: 10px;
    padding: 14px;
}
.recipe-outputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
     border-radius: 10px;
    padding: 14px;
}
.recipe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
     border-radius: 6px;
     border-radius: 6px;
     transition: all 0.3s;
     padding: 8px 14px;
     position: relative;
    border-left: 4px solid var(--card-accent, #8cf);
     overflow: hidden;
    white-space: nowrap;
}
.chem-beaker {
    width: 38px;
     height: 38px;
     flex-shrink: 0;
}
}
 
.recipe-action {
button:hover, .oo-ui-buttonElement-button:hover {
    flex: 0 0 auto;
     background: linear-gradient(135deg, #5a2d0f, var(--pumpkin-orange));
     display: flex;
     color: var(--ghost-white);
    flex-direction: column;
     box-shadow: 0 0 15px var(--pumpkin-orange), 0 0 30px rgba(255,117,24,0.3), 0 0 20px var(--spooky-purple);
    align-items: center;
     transform: translateY(-2px) rotateZ(1deg);
    justify-content: center;
     gap: 8px;
     min-width: 130px;
     align-self: center;
}
}
 
.recipe-action-content {
.mw-footer {
     display: flex;
     background: linear-gradient(135deg, #3b1f0b, #2a1a0f);
    flex-direction: column;
     color: var(--text-color);
     align-items: center;
     border-top: 3px solid var(--pumpkin-orange);
     gap: 8px;
     box-shadow: 0 -5px 20px rgba(255, 117, 24, 0.2);
     text-align: center;
}
}
 
.action-sprite .chem-beaker {
.citizen-header {
     width: 46px;
     background: linear-gradient(to bottom, #2a1a0f 0%, #5a2d0f 50%, #ff7518 100%);
    height: 46px;
}
}
 
.action-text {
.halloween-leaves { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 998; }
    font-weight: 700;
.halloween-leaf {
     color: #ffd700;
     position: absolute;
     font-style: italic;
     top: -2em;
     font-size: 16px;
     font-size: 1.5em;
     line-height: 1.3;
    animation: fall linear infinite;
    opacity: 0;
     filter: drop-shadow(0 0 5px var(--pumpkin-orange));
    transform-origin: center;
}
}
.halloween-leaf:nth-child(odd) { animation-duration: 8s; }
.chem-effects .chem-effect-line {
.halloween-leaf:nth-child(even) { animation-duration: 10s; }
    margin-bottom: 10px;
.halloween-leaf:nth-child(3n) { animation-duration: 12s; }
    font-size: 14px;
.halloween-leaf:nth-child(3n+1) { animation-delay: -2s; }
     line-height: 1.45;
.halloween-leaf:nth-child(5n) { animation-delay: -4s; }
     padding-left: 4px;
 
@keyframes fall {
     0% { transform: translateY(-20px) translateX(-10px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(50vh) translateX(15px) rotate(180deg); }
    90% { opacity: 0.8; }
     100% { transform: translateY(100vh) translateX(20px) rotate(360deg); opacity: 0; }
}
}
 
.chem-desc {
.halloween-pumpkin { display: inline-block; animation: float 3s ease-in-out infinite, spooky-glow 4s ease-in-out infinite; filter: drop-shadow(0 0 8px var(--pumpkin-orange)); }
    margin: 12px 16px;
 
    padding: 12px;
@keyframes float { 0%{transform: translateY(0px)}50%{transform: translateY(-5px)}100%{transform: translateY(0px)} }
    background: rgba(255,255,255,0.03);
 
    border-radius: 6px;
.halloween-eyes { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--pumpkin-orange); box-shadow: 0 0 10px var(--pumpkin-orange); animation: blink 2s infinite; }
    border-left: 4px solid var(--card-accent, #8cf);
 
     font-size: 14px;
@keyframes blink { 0%,20%,40%,60%,80%,100%{opacity:1}10%,30%,50%,70%,90%{opacity:0} }
     color: #aaa;
 
.halloween-bat { position: absolute; width: 25px; height: 15px; background: var(--bat-black); border-radius: 50% 50% 20% 20%; animation: fly 12s linear infinite; }
 
.halloween-bat::after, .halloween-bat::before { content: ''; position: absolute; width: 15px; height: 5px; background: var(--bat-black); border-radius: 50%; }
.halloween-bat::before { top: -5px; left: 0; transform: rotate(30deg); }
.halloween-bat::after { top: -5px; right: 0; transform: rotate(-30deg); }
 
@keyframes fly {
    0% { transform: translate(-50px, 0) rotate(0deg); }
    25% { transform: translate(200px, 100px) rotate(15deg); }
     50% { transform: translate(400px, 50px) rotate(-15deg); }
    75% { transform: translate(600px, 150px) rotate(10deg); }
     100% { transform: translate(800px, 0) rotate(0deg); }
}
}
 
@media (max-width: 1024px) {
.spider-web {
     .chem-cards-container {
    position: absolute;
        grid-template-columns: repeat(2, 1fr);
    top: 10px;
     }
    right: 10px;
    width: 30px;
     height: 30px;
    background: radial-gradient(circle, transparent 30%, var(--border-color) 31%, transparent 32%),
                linear-gradient(45deg, transparent 45%, var(--border-color) 46%, transparent 47%),
                linear-gradient(-45deg, transparent 45%, var(--border-color) 46%, transparent 47%);
    opacity: 0.3;
    pointer-events: none;
     animation: web-sway 6s ease-in-out infinite alternate;
}
}
 
@media (max-width: 768px) {
@keyframes web-sway { 0%{transform:rotate(0deg)}50%{transform:rotate(5deg)}100%{transform:rotate(0deg)} }
    .chem-cards-container {
 
        grid-template-columns: 1fr;
html { scroll-behavior: smooth; }
    }
 
    .chem-recipe {
body::before {
        flex-direction: column;
     content: '';
        gap: 18px;
     position: fixed;
        max-width: 100%;
    top: 0;
     }
     left: 0;
     .chem-beaker {
     width: 100%;
        width: 32px;
    height: 100%;
        height: 32px;
     background: radial-gradient(circle at 20% 80%, rgba(255, 117, 24, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 0, 139, 0.1) 0%, transparent 50%);
     }
    pointer-events: none;
     .action-sprite .chem-beaker {
     z-index: -1;
        width: 38px;
        height: 38px;
     }
    .recipe-inputs,
    .recipe-outputs {
        min-width: 100%;
     }
}
}

Текущая версия от 13:10, 4 апреля 2026

@media (max-width: 1280px) {
    .chem-heading {
        display: none;
    }
}
@media screen and (min-width: 1120px) {
    body.page-Тест .citizen-body-container {
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
        grid-template-columns: 10% 70% 20%;
        margin-left: 8vw;
        max-width: none;
    }
}
.chem-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}
.chem-card {
    background-color: #121212;
    border: 3px solid var(--card-border, #444);
    border-radius: 12px;
    padding: 0;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chem-name-header {
    background-color: var(--card-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 14px 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
}
.chem-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;
    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;
    padding: 0;
}
.collapsible.expanded {
    max-height: 2000px;
    padding: 12px 16px 16px;
}
.chem-recipe-block {
    text-align: center;
}
.chem-recipe-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.recipe-variant-header {
    font-size: 15px;
    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 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
}
.recipe-inputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
.recipe-outputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
.recipe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px 14px;
    border-left: 4px solid var(--card-accent, #8cf);
    white-space: nowrap;
}
.chem-beaker {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.recipe-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    align-self: center;
}
.recipe-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.action-sprite .chem-beaker {
    width: 46px;
    height: 46px;
}
.action-text {
    font-weight: 700;
    color: #ffd700;
    font-style: italic;
    font-size: 16px;
    line-height: 1.3;
}
.chem-effects .chem-effect-line {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    padding-left: 4px;
}
.chem-desc {
    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;
    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 {
        flex-direction: column;
        gap: 18px;
        max-width: 100%;
    }
    .chem-beaker {
        width: 32px;
        height: 32px;
    }
    .action-sprite .chem-beaker {
        width: 38px;
        height: 38px;
    }
    .recipe-inputs,
    .recipe-outputs {
        min-width: 100%;
    }
}