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

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

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