MediaWiki:Common.css: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
Nie podano opisu zmian |
Nie podano opisu zmian |
||
| Linia 206: | Linia 206: | ||
/* CHUJ CHUJ CHUJ CHUJ */ | /* CHUJ CHUJ CHUJ CHUJ */ | ||
/* Wikipedia-style | /* Wikipedia-style main page boxes */ | ||
. | .main-page-box { | ||
background: white; | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-radius: 2px; | |||
margin-bottom: 20px; | margin-bottom: 20px; | ||
box-shadow: 0 1px 2px rgba(0,0,0,0.1); | |||
} | } | ||
. | .main-page-box-header { | ||
background: linear-gradient(to bottom, #f8f9fa, #eaecf0); | |||
border-bottom: 1px solid #a2a9b1; | |||
padding: 8px 12px; | |||
font-weight: bold; | font-weight: bold; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
} | } | ||
.main-page-box-content { | |||
. | padding: 12px; | ||
font-size: 0.875em; | |||
} | } | ||
. | .main-page-container { | ||
display: flex; | |||
gap: 20px; | |||
align-items: flex-start; | |||
} | } | ||
. | .main-page-left { | ||
flex: 3; | |||
} | } | ||
. | .main-page-right { | ||
flex: 2; | |||
} | } | ||
. | .read-more-link { | ||
font-style: italic; | |||
color: #006699; | |||
margin-top: 8px; | |||
font-size: 0.9em; | |||
} | } | ||
. | .news-section { | ||
font-weight: bold; | |||
margin: 8px 0 4px 0; | |||
} | } | ||
.deceased-list { | |||
. | margin-top: 10px; | ||
padding-top: 10px; | |||
border-top: 1px solid #eaecf0; | |||
font-size: 0.8em; | |||
color: #54595d; | |||
} | } | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | .main-page-container { | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
} | } | ||
Wersja z 16:40, 6 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 */
/* Wikipedia-style main page boxes */
.main-page-box {
background: white;
border: 1px solid #a2a9b1;
border-radius: 2px;
margin-bottom: 20px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.main-page-box-header {
background: linear-gradient(to bottom, #f8f9fa, #eaecf0);
border-bottom: 1px solid #a2a9b1;
padding: 8px 12px;
font-weight: bold;
font-size: 1.1em;
}
.main-page-box-content {
padding: 12px;
font-size: 0.875em;
}
.main-page-container {
display: flex;
gap: 20px;
align-items: flex-start;
}
.main-page-left {
flex: 3;
}
.main-page-right {
flex: 2;
}
.read-more-link {
font-style: italic;
color: #006699;
margin-top: 8px;
font-size: 0.9em;
}
.news-section {
font-weight: bold;
margin: 8px 0 4px 0;
}
.deceased-list {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #eaecf0;
font-size: 0.8em;
color: #54595d;
}
@media (max-width: 768px) {
.main-page-container {
flex-direction: column;
}
}