MediaWiki: Common.css: Unterschied zwischen den Versionen
Aus GuitarStore
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 176: | Zeile 176: | ||
/* === Анімоване лого, що з’являється зліва === */ | |||
/* Базовий стан — просто текст GuitarStore */ | |||
/* | |||
.navbar-brand { | .navbar-brand { | ||
position: relative; | position: relative; | ||
color: # | color: #000000 !important; | ||
font-weight: 600; | font-weight: 600; | ||
transition: color 0.3s ease; | transition: color 0.3s ease; | ||
overflow: visible; | |||
} | } | ||
/* Підсвічування червоним */ | /* Підсвічування червоним при наведенні */ | ||
.navbar-brand:hover { | .navbar-brand:hover { | ||
color: #ff3b3b !important; | color: #ff3b3b !important; | ||
| Zeile 194: | Zeile 193: | ||
} | } | ||
/* Додаємо | /* Додаємо логотип як псевдоелемент ЗЛІВА */ | ||
.navbar-brand:: | .navbar-brand::before { | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
right: 100%; /* тепер праворуч від тексту, тобто зліва від користувача */ | |||
transform: translate(10px, -50%) scale(0); | transform: translate(-10px, -50%) scale(0); | ||
width: | width: 42px; | ||
height: | height: 42px; | ||
background: url("/wiki/images/logo.png") no-repeat center/contain; | background: url("/wiki/images/logo.png") no-repeat center/contain; | ||
opacity: 0; | opacity: 0; | ||
transition: all 0. | transition: all 0.35s ease; | ||
filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0. | filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7)); | ||
} | } | ||
/* | /* Анімація появи логотипа */ | ||
.navbar-brand:hover:: | .navbar-brand:hover::before { | ||
transform: translate(10px, -50%) scale(1); | transform: translate(-10px, -50%) scale(1); | ||
opacity: 1; | opacity: 1; | ||
animation: pulseBlood 1.5s infinite alternate; | |||
} | |||
/* Ефект “пульсації крові” */ | |||
@keyframes pulseBlood { | |||
0% { | |||
filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.7)); | |||
transform: translate(-10px, -50%) scale(1); | |||
} | |||
100% { | |||
filter: drop-shadow(0 0 20px rgba(255, 0, 0, 1)); | |||
transform: translate(-10px, -50%) scale(1.1); | |||
} | |||
} | } | ||
Version vom 31. Oktober 2025, 18:32 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;
}
/* === Анімоване лого, що з’являється зліва === */
/* Базовий стан — просто текст GuitarStore */
.navbar-brand {
position: relative;
color: #000000 !important;
font-weight: 600;
transition: color 0.3s ease;
overflow: visible;
}
/* Підсвічування червоним при наведенні */
.navbar-brand:hover {
color: #ff3b3b !important;
text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}
/* Додаємо логотип як псевдоелемент ЗЛІВА */
.navbar-brand::before {
content: "";
position: absolute;
top: 50%;
right: 100%; /* тепер праворуч від тексту, тобто зліва від користувача */
transform: translate(-10px, -50%) scale(0);
width: 42px;
height: 42px;
background: url("/wiki/images/logo.png") no-repeat center/contain;
opacity: 0;
transition: all 0.35s ease;
filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
}
/* Анімація появи логотипа */
.navbar-brand:hover::before {
transform: translate(-10px, -50%) scale(1);
opacity: 1;
animation: pulseBlood 1.5s infinite alternate;
}
/* Ефект “пульсації крові” */
@keyframes pulseBlood {
0% {
filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.7));
transform: translate(-10px, -50%) scale(1);
}
100% {
filter: drop-shadow(0 0 20px rgba(255, 0, 0, 1));
transform: translate(-10px, -50%) scale(1.1);
}
}