MediaWiki: Common.css: Unterschied zwischen den Versionen

Aus GuitarStore
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 172: Zeile 172:
     background: linear-gradient(90deg, #ff0000 0%, #ff6b6b 100%);
     background: linear-gradient(90deg, #ff0000 0%, #ff6b6b 100%);
     z-index: 9999;
     z-index: 9999;
}
/* === Анімоване лого при наведенні === */
/* Звичайний стан — тільки текст */
.navbar-brand {
    position: relative;
    color: #fff !important;
    font-weight: 600;
    transition: color 0.3s ease;
}
/* Підсвічування червоним */
.navbar-brand:hover {
    color: #ff3b3b !important;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}
/* Додаємо лого через псевдоелемент */
.navbar-brand::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(10px, -50%) scale(0);
    width: 40px;
    height: 40px;
    background: url("/wiki/images/logo.png") no-repeat center/contain;
    opacity: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
}
/* При наведенні показуємо лого */
.navbar-brand:hover::after {
    transform: translate(10px, -50%) scale(1);
    opacity: 1;
}
}

Version vom 31. Oktober 2025, 18:26 Uhr

/* ======= БАЗА ======= */
body {
    background: radial-gradient(circle at top, #191919 0%, #0f0f0f 50%, #000 100%);
    color: #f3f3f3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Колір посилань */
a,
.mw-body a {
    color: #ff4d4d; /* червоний акцент */
}
a:hover,
.mw-body a:hover {
    color: #ff7070;
    text-decoration: none;
}

/* ======= ВЕРХНЄ МЕНЮ (Tweeki navbar) ======= */
#tweeki-navbar, .navbar.navbar-default, .navbar.navbar-inverse {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}
#tweeki-navbar .navbar-brand,
#tweeki-navbar .navbar-nav > li > a {
    color: #fff !important;
}
#tweeki-navbar .navbar-nav > li > a:hover,
#tweeki-navbar .navbar-nav > .active > a {
    background: rgba(255, 0, 0, 0.12) !important;
    color: #fff !important;
}

/* Кнопка редагування / дії справа */
.tweeki-actions .btn,
#tweeki-actions .btn,
.mw-portlet .btn {
    background: #ff3b3b;
    border-color: #ff3b3b;
    color: #fff;
}
.tweeki-actions .btn:hover,
#tweeki-actions .btn:hover {
    background: #ff5c5c;
    border-color: #ff5c5c;
}

/* ======= КОНТЕНТНИЙ БЛОК ======= */
#content,
.mw-body,
#mw-content-text {
    background: radial-gradient(circle at top, rgba(15, 15, 15, 0.9) 0%, rgba(5, 5, 5, 0.7) 100%);
    border: 1px solid rgba(255, 0, 0, 0.08);
    border-radius: 18px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 1080px;
    margin: 1.8rem auto 3rem;
}

/* Заголовок сторінки */
.firstHeading,
.mw-first-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}
#content h2,
.mw-body h2 {
    border-bottom: 1px solid rgba(255, 0, 0, 0.25);
    padding-bottom: .3rem;
}

/* ======= СПИСКИ В КАТЕГОРІЯХ ======= */
.mw-category,
.mw-category-generated {
    background: transparent;
}
.mw-category-group ul li a {
    color: #ff4d4d;
}
.mw-category-group ul li a:hover {
    color: #fff;
}

/* ======= КНОПКИ ======= */
.btn-primary,
.mw-ui-button.mw-ui-progressive,
input[type="submit"],
input[type="button"].mw-htmlform-submit {
    background: #ff3b3b;
    border-color: #ff3b3b;
    color: #fff;
}
.btn-primary:hover,
.mw-ui-button.mw-ui-progressive:hover,
input[type="submit"]:hover {
    background: #ff5c5c;
    border-color: #ff5c5c;
}

/* ======= ФУТЕР ======= */
#footer, .tweeki-footer, footer {
    background: #000;
    border-top: 1px solid rgba(255, 0, 0, 0.15);
    color: #aaa;
}
#footer a {
    color: #ff4d4d;
}
#footer a:hover {
    color: #fff;
}

/* ======= ТАБЛИЦІ / ІНФОБОКС ======= */
table,
.mw-datatable {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255, 0, 0, 0.2);
}
th {
    background: rgba(255, 0, 0, 0.12);
    color: #fff;
}

/* ======= ФОРМИ PageForms ======= */
.pfForm,
.pfFormTable,
.pfForm .form-table {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,0,0,.15);
    border-radius: 12px;
}
.pfForm input,
.pfForm select,
.pfForm textarea {
    background: rgba(0,0,0,.25);
    color: #fff;
    border: 1px solid rgba(255,0,0,.25);
}
.pfForm input:focus,
.pfForm textarea:focus {
    border-color: #ff4d4d;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255,77,77,.2);
}

/* ======= ДРІБНІ ШТУКИ ======= */
.mw-body .toc {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,0,0,.15);
    border-radius: 12px;
}
pre,
code {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,0,0,.15);
    color: #ffbfbf;
}





body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff0000 0%, #ff6b6b 100%);
    z-index: 9999;
}





/* === Анімоване лого при наведенні === */

/* Звичайний стан — тільки текст */
.navbar-brand {
    position: relative;
    color: #fff !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Підсвічування червоним */
.navbar-brand:hover {
    color: #ff3b3b !important;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

/* Додаємо лого через псевдоелемент */
.navbar-brand::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(10px, -50%) scale(0);
    width: 40px;
    height: 40px;
    background: url("/wiki/images/logo.png") no-repeat center/contain;
    opacity: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
}

/* При наведенні показуємо лого */
.navbar-brand:hover::after {
    transform: translate(10px, -50%) scale(1);
    opacity: 1;
}