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

Страница интерфейса MediaWiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 19 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
body:before {
    --transition-duration: 0.4s;
     content: "";
    --primary-bg-color: #0a0e17;
    --secondary-bg-color: #131a2a;
    --item-bg-color: #1a243b;
    --item-hover-bg-color: #243156;
    --border-color: #2a3a5a;
    --text-color: #d4dcf0;
    --hover-text-color: #ffffff;
    --accent-color: #4a7ce7;
    --accent-hover: #5b8df8;
    --font-family: 'Arial', sans-serif;
    --menu-border-radius: 15px;
    --header-padding: 25px;
    --item-height: 160px;
    --icon-size: 64px;
    --text-font-size: 16px;
}
 
body {
     background: linear-gradient(135deg, #0c1220 0%, #1a243b 100%);
    margin: 0;
    padding: 20px;
    font-family: var(--font-family);
    color: var(--text-color);
    min-height: 100vh;
}
 
.stars-bg {
     position: fixed;
     position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 5px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 4px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    z-index: -1;
}
.custom-lore-menu {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    border-radius: var(--menu-border-radius);
    background: rgba(10, 14, 23, 0.85);
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    font-family: var(--font-family);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.custom-lore-menu::before {
    content: '';
    position: absolute;
     top: 0;
     top: 0;
     left: 0;
     left: 0;
     right: 0;
     right: 0;
     height: 5px;
     bottom: 0;
    background: linear-gradient(90deg, #4a7ce7, #8a5ce7, #4a7ce7);
     background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
    border-radius: 5px 5px 0 0;
     background-repeat: repeat;
}
     pointer-events: none;
 
     opacity: 0.35;
.custom-header {
     z-index: 2;
    text-align: center;
     animation: snowmove 60s linear infinite;
     background: linear-gradient(90deg, rgba(26, 36, 59, 0.7) 0%, rgba(42, 58, 90, 0.7) 100%);
    padding: var(--header-padding);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(90, 150, 255, 0.5);
    letter-spacing: 1px;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}
 
.custom-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
     animation: shimmer 5s infinite;
}
 
@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
 
.custom-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    align-items: stretch;
}
 
.custom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--item-height);
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
     background: linear-gradient(145deg, var(--item-bg-color), #161f33);
    transition: all var(--transition-duration);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
 
.custom-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
     opacity: 0.7;
}
 
.custom-item:hover {
     background: linear-gradient(145deg, var(--item-hover-bg-color), #1c2742);
    transform: translateY(-5px) scale(1.03);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}
 
.custom-item:hover::before {
    background: var(--accent-hover);
    opacity: 1;
}
}


.custom-item a {
@keyframes snowmove {
     text-decoration: none;
     from { background-position: 0 0; }
     color: var(--text-color);
     to { background-position: 500px 1000px; }
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: color var(--transition-duration), text-shadow var(--transition-duration);
    font-size: var(--text-font-size);
    font-weight: bold;
    z-index: 2;
    padding: 10px;
}
}


.custom-item a:hover {
h1, h2, h3, h4, h5 {
    color: var(--hover-text-color);
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
     text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    transition: text-shadow 0.3s;
}
}


.custom-icon {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    width: var(--icon-size);
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    height: var(--icon-size);
    margin-bottom: 10px;
    flex-shrink: 0;
     filter: drop-shadow(0 0 5px rgba(90, 150, 255, 0.5));
    transition: transform var(--transition-duration);
}
}


.custom-item:hover .custom-icon {
a, a:visited {
     transform: scale(1.1) rotate(5deg);
     transition: color 0.3s, text-shadow 0.3s;
}
}


.corporate-logos {
a:hover {
     display: flex;
     color: #b3e5fc !important;
    justify-content: center;
     text-shadow: 0 0 6px #b3e5fc;
    gap: 30px;
    margin-top: 20px;
     flex-wrap: wrap;
}
}


.corporate-logo {
.wikitable {
     opacity: 0.7;
     border-color: rgba(179, 229, 252, 0.6) !important;
     transition: opacity 0.3s;
     border-radius: 6px;
    filter: grayscale(0.3);
}
}


.corporate-logo:hover {
.wikitable th {
     opacity: 1;
     background: rgba(179, 229, 252, 0.1);
    filter: grayscale(0);
}
}


@media (max-width: 768px) {
.mw-page-title-main:before {
    .custom-lore-menu { padding: 20px; }
     content: " ";
    .custom-links { grid-template-columns: repeat(2, 1fr); }
    .custom-item { height: auto; padding: 15px 10px; }
    .custom-item a { font-size: 14px; }
    .corporate-logos { gap: 15px; }
     .corporate-logo img { width: 80px; }
}
}


@media (max-width: 480px) {
.mw-page-title-main:after {
    .custom-links { grid-template-columns: 1fr; }
     content: " ";
     .custom-header { font-size: 22px; padding: 15px; }
}
}

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