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

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

Страница интерфейса MediaWiki
Нет описания правки
Метка: ручная отмена
Нет описания правки
 
(не показано 7 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
@media (max-width: 1280px) {
    --color-primary__l: 40%;
     .chem-heading {
    --primary-bg-color: #1c1c1c;
        display: none;
    --secondary-bg-color: #2c2c2c;
     }
    --item-bg-color: #2e2e2e;
    --item-hover-bg-color: #3a1f0b;
    --border-color: #8b4513;
    --text-color: #f5deb3;
    --hover-text-color: #fff8dc;
    --cf-bg-card: #2a1a0f;
    --cf-text-light: #ffe4b5;
    --cf-text-muted: #c68642;
    --color-surface-0: hsl(var(--color-primary__h),20%,10%);
    --color-surface-1: hsl(var(--color-primary__h),25%,12%);
    --color-surface-2: hsl(var(--color-primary__h),25%,15%);
     --color-surface-3: hsl(var(--color-primary__h),15%,20%);
    --color-surface-4: hsl(var(--color-primary__h),15%,25%);
    --background-color-primary--hover: #ff7518;
    --background-color-primary--active: #cc5500;
    --background-color-overlay: hsla(var(--color-primary__h),20%,10%,0.95);
    --background-color-overlay--lighter: hsla(var(--color-primary__h),20%,10%,0.6);
    --color-base: #ffb84d;
    --color-base--subtle: #d98c3f;
    --border-color-base: rgba(255,165,0,0.05);
    --border-color-base--lighter: rgba(255,165,0,0.02);
     --border-color-base--darker: rgba(255,140,0,0.08);
}
}
 
@media screen and (min-width: 1120px) {
/* Основной фон и текст */
    body.page-Тест .citizen-body-container {
body, .mw-body {
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
    background-color: var(--primary-bg-color) !important;
        grid-template-columns: 10% 70% 20%;
    color: var(--text-color) !important;
        margin-left: 8vw;
     transition: background 0.5s ease, color 0.5s ease;
        max-width: none;
     }
}
}
 
.chem-cards-container {
/* Заголовки с хэллоуинским свечением */
    display: grid;
.mw-first-heading, .mw-headline {
    grid-template-columns: repeat(3, 1fr);
     color: #ff7518 !important;
    gap: 20px;
     text-shadow: 2px 2px 6px #000;
    margin: 20px 0;
     animation: glow 3s ease-in-out infinite;
    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;
a {
     width: 100%;
     color: #ffa500 !important;
     justify-content: space-between;
     text-decoration: none;
     align-items: center;
     transition: color 0.3s ease, text-shadow 0.3s ease;
}
}
a:hover {
.heading-text {
     color: #ffb84d !important;
     font-size: 15px;
     text-shadow: 0 0 8px #ff7518;
     font-weight: 600;
    color: var(--card-accent, #8cf);
}
}
 
.collapse-btn {
/* Меню и панели */
    border: 2px dotted #ffd700;
.skin-vector #p-personal li a,
    padding: 2px 12px;
.skin-vector #p-views li a,
    border-radius: 9999px;
.vector-menu-tabs li a,
     font-size: 13px;
.vector-menu-dropdown h3 span,
     color: #ffd700;
.vector-menu-tabs li.selected a {
     background: rgba(0,0,0,0.3);
     background-color: var(--item-bg-color) !important;
     color: var(--text-color) !important;
     transition: background 0.3s ease, color 0.3s ease;
}
}
.vector-menu-tabs li.selected a {
.collapsible {
     background-color: #ff7518 !important;  
    overflow: hidden;
     color: var(--primary-bg-color) !important;  
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
     max-height: 0;
     padding: 0;
}
}
 
.collapsible.expanded {
/* Таблицы, блоки, инфобоксы */
     max-height: 2000px;
table, th, td,
     padding: 12px 16px 16px;
blockquote, .infobox, .navbox,
div.thumb, .mw-parser-output > div {
     background-color: var(--item-bg-color) !important;
     color: var(--text-color) !important;
    border: 1px solid var(--border-color-base) !important;
    transition: background 0.3s ease, color 0.3s ease;
}
}
 
.chem-recipe-block {
/* Кнопки */
     text-align: center;
button, .oo-ui-buttonElement-button {
     background-color: #331a00 !important;
    color: var(--text-color) !important;
    border: 1px solid #8b4513 !important;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
}
button:hover, .oo-ui-buttonElement-button:hover {
.chem-recipe-steps {
     background-color: #8b4513 !important;
     display: flex;
     color: #ffb84d !important;
     flex-direction: column;
     box-shadow: 0 0 10px #ff7518;
     gap: 32px;
}
}
 
.recipe-variant-header {
/* Футер */
     font-size: 15px;
.mw-footer {
    font-weight: 700;
     background-color: var(--secondary-bg-color) !important;
     color: #ffd700;
     color: var(--text-color) !important;
    text-align: center;
     border-top: 2px solid #ff7518 !important;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
     margin-bottom: 12px;
}
}
 
.chem-recipe {
/* Анимация хэллоуинских листьев */
.halloween-leaves {
    position: fixed;
    top: 0;
    left: 0;
     width: 100%;
     width: 100%;
     height: 100%;
    max-width: 800px;
     pointer-events: none;
    margin: 0 auto;
     overflow: hidden;
    display: flex;
     z-index: 9999;
    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;
}
}
.halloween-leaf {
.action-text {
     position: absolute;
     font-weight: 700;
     top: -2em;
     color: #ffd700;
     animation: fall 7s linear infinite;
    font-style: italic;
     color: #ff7518;
     font-size: 16px;
     line-height: 1.3;
}
}
.halloween-pumpkin {
.chem-effects .chem-effect-line {
     display: inline-block;
     margin-bottom: 10px;
     animation: float 2s ease-in-out infinite, glow 3s ease-in-out infinite;
    font-size: 14px;
     line-height: 1.45;
    padding-left: 4px;
}
}
 
.chem-desc {
/* Ключевые кадры */
    margin: 12px 16px;
@keyframes fall {
    padding: 12px;
     0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
     background: rgba(255,255,255,0.03);
     50% { opacity: 1; }
    border-radius: 6px;
     100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
     border-left: 4px solid var(--card-accent, #8cf);
     font-size: 14px;
    color: #aaa;
}
}
@keyframes float {
@media (max-width: 1024px) {
     0%, 100% { transform: translateY(0); }
     .chem-cards-container {
     50% { transform: translateY(-5px); }
        grid-template-columns: repeat(2, 1fr);
     }
}
}
@keyframes glow {
@media (max-width: 768px) {
     0%,100% { text-shadow: 0 0 2px #ff7518; }
     .chem-cards-container {
     50% { text-shadow: 0 0 12px #ffa500; }
        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%;
    }
}
}

Текущая версия от 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%;
    }
}