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

Страница интерфейса MediaWiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 20 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
.ss14-rules {
    --transition-duration: 0.4s;
    --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;
    top: 0;
    left: 0;
     width: 100%;
     width: 100%;
     height: 100%;
     border-collapse: separate;
     background-image:  
     border-spacing: 0 8px; /* Расстояние между строками */
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 5px),
     background-color: transparent;
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px),
     color: #cecece;
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 4px);
     font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
     background-size: 550px 550px, 350px 350px, 250px 250px;
     background-position: 0 0, 40px 60px, 130px 270px;
     z-index: -1;
}
}


.custom-lore-menu {
.ss14-rules th {
     max-width: 1200px;
     background: #1a1a1e;
     margin: 30px auto;
     color: #7daeff;
     padding: 30px;
     padding: 12px;
     border-radius: var(--menu-border-radius);
     text-transform: uppercase;
     background: rgba(10, 14, 23, 0.85);
     font-size: 0.9em;
    display: grid;
     letter-spacing: 1px;
    grid-template-columns: 1fr;
     border-bottom: 2px solid #3a3a42;
    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;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4a7ce7, #8a5ce7, #4a7ce7);
    border-radius: 5px 5px 0 0;
}
}


.custom-header {
.ss14-rules td:first-child,  
    text-align: center;
.ss14-rules td:nth-child(2) {
    background: linear-gradient(90deg, rgba(26, 36, 59, 0.7) 0%, rgba(42, 58, 90, 0.7) 100%);
     background: #25252b;
    padding: var(--header-padding);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
     font-size: 28px;
     font-weight: bold;
     font-weight: bold;
     text-shadow: 0 0 10px rgba(90, 150, 255, 0.5);
     color: #ffffff;
     letter-spacing: 1px;
     vertical-align: top;
     border-radius: 10px;
     border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
    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 {
.ss14-rules td:first-child {
     background: linear-gradient(145deg, var(--item-hover-bg-color), #1c2742);
     white-space: nowrap;
    transform: translateY(-5px) scale(1.03);
     color: #ffca28; /* Золотистый цвет для номера */
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
     width: 10%;
     border-color: var(--accent-color);
}
}


.custom-item:hover::before {
/* Описание правила (третья колонка) */
     background: var(--accent-hover);
.ss14-rules td:last-child {
     opacity: 1;
     background: #1e1e22;
    padding: 15px;
    line-height: 1.6;
     border-right: 1px solid #3a3a42;
}
}


.custom-item a {
.ss14-rules td big {
     text-decoration: none;
     display: block;
     color: var(--text-color);
     color: #7daeff; /* Голубой акцент */
    display: flex;
     font-size: 1.1em;
    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 {
    color: var(--hover-text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
 
.custom-icon {
    width: var(--icon-size);
    height: var(--icon-size);
     margin-bottom: 10px;
     margin-bottom: 10px;
     flex-shrink: 0;
     border-bottom: 1px solid #333;
     filter: drop-shadow(0 0 5px rgba(90, 150, 255, 0.5));
     padding-bottom: 5px;
    transition: transform var(--transition-duration);
}
 
.custom-item:hover .custom-icon {
    transform: scale(1.1) rotate(5deg);
}
 
.corporate-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}
}


.corporate-logo {
.ss14-rules ul {
     opacity: 0.7;
     margin-top: 10px;
     transition: opacity 0.3s;
     list-style-type: square;
    filter: grayscale(0.3);
}
}


.corporate-logo:hover {
.ss14-rules li {
     opacity: 1;
     margin-bottom: 8px;
    filter: grayscale(0);
}
}


@media (max-width: 768px) {
.ss14-rules tr:hover td {
    .custom-lore-menu { padding: 20px; }
     background-color: #2d2d35 !important;
    .custom-links { grid-template-columns: repeat(2, 1fr); }
     transition: background 0.2s ease;
     .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) {
@media screen and (max-width: 720px) {
     .custom-links { grid-template-columns: 1fr; }
     .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
     .custom-header { font-size: 22px; padding: 15px; }
        display: block;
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
     .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}
}

Текущая версия от 14:16, 25 февраля 2026

.ss14-rules {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Расстояние между строками */
    background-color: transparent;
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ss14-rules th {
    background: #1a1a1e;
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}

.ss14-rules td:first-child, 
.ss14-rules td:nth-child(2) {
    background: #25252b;
    font-weight: bold;
    color: #ffffff;
    vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}

.ss14-rules td:first-child {
    white-space: nowrap;
    color: #ffca28; /* Золотистый цвет для номера */
    width: 10%;
}

/* Описание правила (третья колонка) */
.ss14-rules td:last-child {
    background: #1e1e22;
    padding: 15px;
    line-height: 1.6;
    border-right: 1px solid #3a3a42;
}

.ss14-rules td big {
    display: block;
    color: #7daeff; /* Голубой акцент */
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.ss14-rules ul {
    margin-top: 10px;
    list-style-type: square;
}

.ss14-rules li {
    margin-bottom: 8px;
}

.ss14-rules tr:hover td {
    background-color: #2d2d35 !important;
    transition: background 0.2s ease;
}

@media screen and (max-width: 720px) {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
        display: block;
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}