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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 7 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
body:before {
     --color-primary__l: 40%;
     content: "";
     --primary-bg-color: #1c1c1c;
     position: fixed;
     --secondary-bg-color: #2c2c2c;
     top: 0;
     --item-bg-color: #2e2e2e;
     left: 0;
     --item-hover-bg-color: #3a1f0b;
     right: 0;
    --border-color: #8b4513;
     bottom: 0;
     --text-color: #f5deb3;
     background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
    --hover-text-color: #fff8dc;
     background-repeat: repeat;
    --cf-bg-card: #2a1a0f;
     pointer-events: none;
    --cf-text-light: #ffe4b5;
     opacity: 0.35;
    --cf-text-muted: #c68642;
     z-index: 2;
    --color-surface-0: hsl(var(--color-primary__h),20%,10%);
     animation: snowmove 60s linear infinite;
     --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);
}
}


/* Основной фон и текст */
@keyframes snowmove {
body, .mw-body {
     from { background-position: 0 0; }
     background-color: var(--primary-bg-color) !important;
     to { background-position: 500px 1000px; }
     color: var(--text-color) !important;
    transition: background 0.5s ease, color 0.5s ease;
}
}


/* Заголовки с хэллоуинским свечением */
h1, h2, h3, h4, h5 {
.mw-first-heading, .mw-headline {
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    color: #ff7518 !important;
     transition: text-shadow 0.3s;
     text-shadow: 2px 2px 6px #000;
     animation: glow 3s ease-in-out infinite;
}
}


/* Ссылки с хэллоуинской подсветкой */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
a {
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    color: #ffa500 !important;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
    color: #ffb84d !important;
     text-shadow: 0 0 8px #ff7518;
}
}


/* Меню и панели */
a, a:visited {
.skin-vector #p-personal li a,
     transition: color 0.3s, text-shadow 0.3s;
.skin-vector #p-views li a,
.vector-menu-tabs li a,
.vector-menu-dropdown h3 span,
.vector-menu-tabs li.selected a {
     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 {
    background-color: #ff7518 !important;
    color: var(--primary-bg-color) !important;  
}
}


/* Таблицы, блоки, инфобоксы */
a:hover {
table, th, td,
     color: #b3e5fc !important;
blockquote, .infobox, .navbox,
     text-shadow: 0 0 6px #b3e5fc;
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;
}
}


/* Кнопки */
.wikitable {
button, .oo-ui-buttonElement-button {
     border-color: rgba(179, 229, 252, 0.6) !important;
     background-color: #331a00 !important;
     border-radius: 6px;
    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 {
    background-color: #8b4513 !important;
     color: #ffb84d !important;
    box-shadow: 0 0 10px #ff7518;
}
}


/* Футер */
.wikitable th {
.mw-footer {
     background: rgba(179, 229, 252, 0.1);
     background-color: var(--secondary-bg-color) !important;
    color: var(--text-color) !important;
    border-top: 2px solid #ff7518 !important;
}
}


/* Анимация хэллоуинских листьев */
.mw-page-title-main:before {
.halloween-leaves {
     content: " ";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}
.halloween-leaf {
     position: absolute;
    top: -2em;
    animation: fall 7s linear infinite;
    color: #ff7518;
}
.halloween-pumpkin {
    display: inline-block;
    animation: float 2s ease-in-out infinite, glow 3s ease-in-out infinite;
}
}


/* Ключевые кадры */
.mw-page-title-main:after {
@keyframes fall {
     content: " ";
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes glow {
    0%,100% { text-shadow: 0 0 2px #ff7518; }
     50% { text-shadow: 0 0 12px #ffa500; }
}
}

Текущая версия от 08:23, 13 ноября 2025

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
    animation: snowmove 60s linear infinite;
}

@keyframes snowmove {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}

h1, h2, h3, h4, h5 {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}

a, a:visited {
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}

.wikitable {
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}

.wikitable th {
    background: rgba(179, 229, 252, 0.1);
}

.mw-page-title-main:before {
    content: " ";
}

.mw-page-title-main:after {
    content: " ";
}