MediaWiki:Common.css: Różnice pomiędzy wersjami

Z wiki.lighting-gallery.pl
Przejdź do nawigacji Przejdź do wyszukiwania
Nie podano opisu zmian
Znacznik: Wycofane
Nie podano opisu zmian
Znacznik: Wycofane
Linia 17: Linia 17:
/* Zachowanie pełnych kolorów dla miniaturek w dark mode */
/* Zachowanie pełnych kolorów dla miniaturek w dark mode */
/* --- Miniatury w dark mode --- */
/* --- Miniatury w dark mode --- */
.client-darkmode .thumb img.thumbimage,
.client-darkmode .thumb {
.client-darkmode .thumb .thumbimage {
    filter: none !important; /* usuwa filtr z kontenera */
  filter: invert(1) hue-rotate(180deg) !important;
    background-color: transparent !important; /* tło nie zostaje odwrócone */
  -webkit-filter: invert(1) hue-rotate(180deg) !important;
}
  mix-blend-mode: normal !important;
 
.client-darkmode .thumb img.thumbimage {
    filter: invert(1) hue-rotate(180deg) !important; /* odwraca obrazek */
    -webkit-filter: invert(1) hue-rotate(180deg) !important;
    mix-blend-mode: normal !important;
}
}

Wersja z 19:53, 11 wrz 2025

/* Umieszczony tutaj kod CSS zostanie zastosowany we wszystkich skórkach */

/* --- 2) logo ustawione przez $wgLogos w LocalSettings.php --- */
/* dopasuj selektory jeśli Twoja skórka używa innych klas/id */
.client-darkmode #p-logo img,
.client-darkmode .mw-wiki-logo,
.client-darkmode .site-logo,
.client-darkmode .mw-logo {
  /* pre-invertujemy, aby skompensować filtr aplikowany na html */
  filter: invert(1) hue-rotate(180deg) !important;
  -webkit-filter: invert(1) hue-rotate(180deg) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}


/* Zachowanie pełnych kolorów dla miniaturek w dark mode */
/* --- Miniatury w dark mode --- */
.client-darkmode .thumb {
    filter: none !important; /* usuwa filtr z kontenera */
    background-color: transparent !important; /* tło nie zostaje odwrócone */
}

.client-darkmode .thumb img.thumbimage {
    filter: invert(1) hue-rotate(180deg) !important; /* odwraca obrazek */
    -webkit-filter: invert(1) hue-rotate(180deg) !important;
    mix-blend-mode: normal !important;
}