MediaWiki:Common.css: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
Nie podano opisu zmian Znacznik: Wycofane |
Nie podano opisu zmian |
||
| (Nie pokazano 13 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
| Linia 7: | Linia 7: | ||
} | } | ||
/* | /* Infobox image styling */ | ||
.infobox-image { | |||
max-width: 100%; | |||
height: auto; | |||
display: block; | |||
margin: 0 auto; | |||
} | } | ||
/* | /* ===== Dark Mode with Protected Colors ===== */ | ||
# | .skin-dark-mode { | ||
/* Core dark colors */ | |||
--dark-bg-primary: #1a1a1a; | |||
--dark-bg-secondary: #2d2d2d; | |||
--dark-text-primary: #e0e0e0; | |||
--dark-text-secondary: #b0b0b0; | |||
--dark-link: #4da6ff; | |||
--dark-link-visited: #b380ff; | |||
--dark-border: #444; | |||
} | } | ||
/* | /* Base elements - only affect default backgrounds */ | ||
. | .skin-dark-mode body { | ||
background-color: var(--dark-bg-primary) !important; | |||
color: var(--dark-text-primary) !important; | |||
} | } | ||
/* | /* Only style elements that don't have explicit background colors */ | ||
.skin-dark-mode #mw-page-base:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
} | } | ||
.skin-dark-mode #mw-head:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
border-bottom-color: var(--dark-border) !important; | |||
} | } | ||
.skin-dark-mode #content:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-primary) !important; | |||
} | } | ||
.skin-dark-mode .mw-body:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-primary) !important; | |||
border-color: var(--dark-border) !important; | |||
} | } | ||
/* | /* Protect images - ensure they're never modified */ | ||
. | .skin-dark-mode img, | ||
.skin-dark-mode .image, | |||
.skin-dark-mode .thumbimage, | |||
.skin-dark-mode .mw-file-element { | |||
filter: none !important; | |||
background-color: transparent !important; | |||
border-color: inherit !important; | |||
} | } | ||
. | /* Only style default text colors */ | ||
.skin-dark-mode :not([style*="color"]):not(a):not(code):not(pre) { | |||
color: var(--dark-text-primary) !important; | |||
} | } | ||
/* | /* Links - only affect default link colors */ | ||
. | .skin-dark-mode a:not([style*="color"]) { | ||
color: var(--dark-link) !important; | |||
} | } | ||
.skin-dark-mode a:visited:not([style*="color"]) { | |||
. | color: var(--dark-link-visited) !important; | ||
} | } | ||
.skin-dark-mode a.new:not([style*="color"]) { | |||
color: #ff6b6b !important; | |||
} | } | ||
/* | /* Tables - only affect tables without explicit styling */ | ||
.skin-dark-mode table:not([style*="background-color"]):not(.wikitable) { | |||
. | background-color: transparent !important; | ||
} | } | ||
.skin-dark-mode table.wikitable:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
border-color: var(--dark-border) !important; | |||
} | } | ||
.skin-dark-mode table.wikitable th:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-primary) !important; | |||
} | } | ||
.skin-dark-mode table.wikitable td:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
} | } | ||
/* | /* Navigation elements */ | ||
.skin-dark-mode .vectorTabs:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
. | |||
} | } | ||
.skin-dark-mode .vectorTabs ul li:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
border-color: var(--dark-border) !important; | |||
} | } | ||
.skin-dark-mode .vectorTabs ul li a:not([style*="color"]) { | |||
color: var(--dark-text-primary) !important; | |||
} | } | ||
.skin-dark-mode .vectorTabs ul li.selected:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-primary) !important; | |||
} | } | ||
/* | /* Sidebar */ | ||
.skin-dark-mode #mw-panel:not([style*="background-color"]) { | |||
background-color: var(--dark-bg-secondary) !important; | |||
. | border-right-color: var(--dark-border) !important; | ||
} | } | ||
. | .skin-dark-mode .portal:not([style*="background-color"]) { | ||
background-color: var(--dark-bg-secondary) !important; | |||
} | } | ||
/* Forms */ | |||
.skin-dark-mode input:not([style*="background-color"]), | |||
.skin-dark-mode textarea:not([style*="background-color"]), | |||
.skin-dark-mode select:not([style*="background-color"]) { | |||
background-color: #333 !important; | |||
color: var(--dark-text-primary) !important; | |||
border-color: var(--dark-border) !important; | |||
} | } | ||
/* | /* Footer */ | ||
. | .skin-dark-mode #footer:not([style*="background-color"]) { | ||
background-color: var(--dark-bg-secondary) !important; | |||
border-top-color: var(--dark-border) !important; | |||
} | } | ||
/* | /* Dark mode toggle button styling */ | ||
.dark-mode-toggle-button { | |||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |||
color: white; | |||
border: none; | |||
border-radius: 20px; | |||
padding: 10px 20px; | |||
cursor: pointer; | |||
font-size: 14px; | |||
font-weight: bold; | |||
margin: 10px 0; | |||
transition: all 0.3s ease; | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 8px; | |||
} | } | ||
.dark-mode-toggle-button:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 4px 15px rgba(0,0,0,0.2); | |||
} | } | ||
.dark-mode-toggle-button .toggle-icon { | |||
font-size: 16px; | |||
} | } | ||
.dark-mode-toggle-button.light { | |||
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); | |||
} | } | ||
. | /* Fixed toggle button */ | ||
.dark-mode-toggle-fixed { | |||
position: fixed; | |||
bottom: 20px; | |||
right: 20px; | |||
z-index: 1000; | |||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |||
color: white; | |||
border: none; | |||
border-radius: 25px; | |||
. | padding: 12px 18px; | ||
cursor: pointer; | |||
font-size: 14px; | |||
font-weight: bold; | |||
box-shadow: 0 4px 15px rgba(0,0,0,0.3); | |||
transition: all 0.3s ease; | |||
display: flex; | |||
align-items: center; | |||
gap: 8px; | |||
} | } | ||
. | .dark-mode-toggle-fixed:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 6px 20px rgba(0,0,0,0.4); | |||
} | } | ||
.dark-mode-toggle-fixed.light { | |||
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); | |||
} | } | ||
/* | /* CHUJ CHUJ CHUJ CHUJ */ | ||
/* | /* Create a custom hover class */ | ||
. | .hover-table td:hover, | ||
. | .hover-table th:hover { | ||
background-color: #fffacd !important; | |||
} | } | ||
.hover-table-alt td:hover, | |||
. | .hover-table-alt th:hover { | ||
background-color: #f0fff0 !important; | |||
. | |||
} | } | ||
/* Force responsive behavior for specific tables */ | |||
table.responsive-table { | |||
max-width: 100%; | |||
width: 100% !important; | |||
table-layout: fixed; | |||
} | } | ||
/* Target images inside responsive tables */ | |||
table.responsive-table img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
width: auto !important; | |||
} | } | ||
/* | /* Specifically target thumbnail images */ | ||
table.responsive-table .thumbinner { | |||
width: auto !important; | |||
max-width: 100% !important; | |||
} | } | ||
table.responsive-table .thumbimage { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
width: auto !important; | |||
} | } | ||
Aktualna wersja na dzień 12:28, 9 lis 2025
/* Umieszczony tutaj kod CSS zostanie zastosowany we wszystkich skórkach */
/* Wyłącza klikalność banera WikidataPageBanner */
.wpb-topbanner a {
pointer-events: none;
cursor: default;
}
/* Infobox image styling */
.infobox-image {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
/* ===== Dark Mode with Protected Colors ===== */
.skin-dark-mode {
/* Core dark colors */
--dark-bg-primary: #1a1a1a;
--dark-bg-secondary: #2d2d2d;
--dark-text-primary: #e0e0e0;
--dark-text-secondary: #b0b0b0;
--dark-link: #4da6ff;
--dark-link-visited: #b380ff;
--dark-border: #444;
}
/* Base elements - only affect default backgrounds */
.skin-dark-mode body {
background-color: var(--dark-bg-primary) !important;
color: var(--dark-text-primary) !important;
}
/* Only style elements that don't have explicit background colors */
.skin-dark-mode #mw-page-base:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
}
.skin-dark-mode #mw-head:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
border-bottom-color: var(--dark-border) !important;
}
.skin-dark-mode #content:not([style*="background-color"]) {
background-color: var(--dark-bg-primary) !important;
}
.skin-dark-mode .mw-body:not([style*="background-color"]) {
background-color: var(--dark-bg-primary) !important;
border-color: var(--dark-border) !important;
}
/* Protect images - ensure they're never modified */
.skin-dark-mode img,
.skin-dark-mode .image,
.skin-dark-mode .thumbimage,
.skin-dark-mode .mw-file-element {
filter: none !important;
background-color: transparent !important;
border-color: inherit !important;
}
/* Only style default text colors */
.skin-dark-mode :not([style*="color"]):not(a):not(code):not(pre) {
color: var(--dark-text-primary) !important;
}
/* Links - only affect default link colors */
.skin-dark-mode a:not([style*="color"]) {
color: var(--dark-link) !important;
}
.skin-dark-mode a:visited:not([style*="color"]) {
color: var(--dark-link-visited) !important;
}
.skin-dark-mode a.new:not([style*="color"]) {
color: #ff6b6b !important;
}
/* Tables - only affect tables without explicit styling */
.skin-dark-mode table:not([style*="background-color"]):not(.wikitable) {
background-color: transparent !important;
}
.skin-dark-mode table.wikitable:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
border-color: var(--dark-border) !important;
}
.skin-dark-mode table.wikitable th:not([style*="background-color"]) {
background-color: var(--dark-bg-primary) !important;
}
.skin-dark-mode table.wikitable td:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
}
/* Navigation elements */
.skin-dark-mode .vectorTabs:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
}
.skin-dark-mode .vectorTabs ul li:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
border-color: var(--dark-border) !important;
}
.skin-dark-mode .vectorTabs ul li a:not([style*="color"]) {
color: var(--dark-text-primary) !important;
}
.skin-dark-mode .vectorTabs ul li.selected:not([style*="background-color"]) {
background-color: var(--dark-bg-primary) !important;
}
/* Sidebar */
.skin-dark-mode #mw-panel:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
border-right-color: var(--dark-border) !important;
}
.skin-dark-mode .portal:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
}
/* Forms */
.skin-dark-mode input:not([style*="background-color"]),
.skin-dark-mode textarea:not([style*="background-color"]),
.skin-dark-mode select:not([style*="background-color"]) {
background-color: #333 !important;
color: var(--dark-text-primary) !important;
border-color: var(--dark-border) !important;
}
/* Footer */
.skin-dark-mode #footer:not([style*="background-color"]) {
background-color: var(--dark-bg-secondary) !important;
border-top-color: var(--dark-border) !important;
}
/* Dark mode toggle button styling */
.dark-mode-toggle-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 20px;
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
font-weight: bold;
margin: 10px 0;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.dark-mode-toggle-button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.dark-mode-toggle-button .toggle-icon {
font-size: 16px;
}
.dark-mode-toggle-button.light {
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
}
/* Fixed toggle button */
.dark-mode-toggle-fixed {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 25px;
padding: 12px 18px;
cursor: pointer;
font-size: 14px;
font-weight: bold;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.dark-mode-toggle-fixed:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.dark-mode-toggle-fixed.light {
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
}
/* CHUJ CHUJ CHUJ CHUJ */
/* Create a custom hover class */
.hover-table td:hover,
.hover-table th:hover {
background-color: #fffacd !important;
}
.hover-table-alt td:hover,
.hover-table-alt th:hover {
background-color: #f0fff0 !important;
}
/* Force responsive behavior for specific tables */
table.responsive-table {
max-width: 100%;
width: 100% !important;
table-layout: fixed;
}
/* Target images inside responsive tables */
table.responsive-table img {
max-width: 100% !important;
height: auto !important;
width: auto !important;
}
/* Specifically target thumbnail images */
table.responsive-table .thumbinner {
width: auto !important;
max-width: 100% !important;
}
table.responsive-table .thumbimage {
max-width: 100% !important;
height: auto !important;
width: auto !important;
}