MediaWiki:Common.css
Aus GuitarStore
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
/* ====== Глобальний фон сторінки ====== */
body {
margin: 0;
background: linear-gradient(
to bottom,
#1a1a1a 0%, /* темно-сірий верх */
#2a2a2a 20%, /* плавний перехід */
#3a3a3a 50%, /* середньо-сірий центр */
#2a2a2a 80%, /* назад до темного */
#1a1a1a 100% /* темно-сірий низ */
);
color: #f3f3f3;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-attachment: fixed;
}
/* ====== navbar ====== */
#tweeki-navbar, .navbar {
background: #1a1a1a !important;
border-bottom: 2px solid #ff3b3b;
box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.navbar-brand {
color: #fff !important;
font-weight: 600;
transition: color 0.3s;
}
.navbar-brand:hover {
color: #ff3b3b !important;
text-shadow: 0 0 10px rgba(255,0,0,0.6);
}
/* === Бренд у Tweeki: опора для псевдоелемента === */
.navbar .navbar-header .navbar-brand,
.navbar .navbar-brand,
a.navbar-brand {
position: relative;
display: inline-block;
overflow: visible;
}
/* === Логотип зліва від назви === */
.navbar .navbar-header .navbar-brand::before,
.navbar .navbar-brand::before,
a.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));
pointer-events: none;
}
/* Демонстрацыя при наведенні курсора*/
.navbar .navbar-header .navbar-brand:hover::before,
.navbar .navbar-brand:hover::before,
a.navbar-brand:hover::before {
transform: translate(-10px, -50%) scale(1);
opacity: 1;
animation: pulseBlood 1.5s infinite alternate;
}
.navbar-nav > li > a {
color: #ddd !important;
}
.navbar-nav > li > a:hover {
color: #ff3b3b !important;
}
/* ====== mainbar ====== */
#content, .mw-body {
background: rgba(15,15,15,0.8);
border: 1px solid rgba(255,0,0,0.08);
border-radius: 16px;
padding: 2rem;
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
max-width: 1100px;
margin: 2rem auto 4rem;
}
/* Заголовки і підзаголовки */
.firstHeading, .mw-first-heading {
font-size: 2.2rem;
color: #fff;
}
.mw-body h2 {
border-bottom: 1px solid rgba(255,0,0,0.25);
color: #f3f3f3;
}
/* Посилання */
a, .mw-body a {
color: #ff4d4d;
}
a:hover, .mw-body a:hover {
color: #ff7373;
text-decoration: none;
}
/* ====== кнопочки ====== */
.btn-primary, .mw-ui-button.mw-ui-progressive, input[type="submit"] {
background: #ff3b3b;
border-color: #ff3b3b;
color: #fff;
}
.btn-primary:hover, .mw-ui-button.mw-ui-progressive:hover {
background: #ff5c5c;
}
/* ====== футер ====== */
#footer, .tweeki-footer, footer {
background: #1a1a1a !important;
border-top: 2px solid rgba(255,0,0,0.2);
color: #ccc;
padding-top: 1.2rem;
box-shadow: 0 -2px 10px rgba(0,0,0,0.6);
}
#footer a {
color: #ff4d4d;
}
#footer a:hover {
color: #fff;
}
/* ====== Плавна анімація переходів кольору ====== */
body, #tweeki-navbar, #content, footer {
transition: background 0.4s ease, color 0.4s ease;
}
/* Централызацыя відео EmbedVideo у контенті */
.embedvideo,
.gs-media .embedvideo {
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
max-width: 720px;
}
/* Страховка для iframe */
.embedvideo iframe,
.gs-media iframe {
display: block;
margin: 0 auto;
width: 100% !important;
max-width: 720px;
border-radius: 10px;
}