MediaWiki:Common.css: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
Nie podano opisu zmian |
Nie podano opisu zmian |
||
| Linia 200: | Linia 200: | ||
.dark-mode-toggle-fixed.light { | .dark-mode-toggle-fixed.light { | ||
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); | background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); | ||
} | |||
/* CHUJ CHUJ CHUJ CHUJ */ | |||
/* Wikipedia-style two column layout */ | |||
.portal-container { | |||
display: flex; | |||
gap: 20px; | |||
margin: 20px 0; | |||
} | |||
.portal-left-column { | |||
flex: 3; | |||
min-width: 0; | |||
} | |||
.portal-right-column { | |||
flex: 2; | |||
min-width: 0; | |||
} | |||
/* Section styling */ | |||
.portal-section { | |||
border: 1px solid #a2a9b1; | |||
background: #f8f9fa; | |||
margin-bottom: 20px; | |||
padding: 12px; | |||
font-size: 0.875em; | |||
line-height: 1.6; | |||
} | |||
.portal-section h2 { | |||
font-size: 1.3em; | |||
font-weight: bold; | |||
border-bottom: 1px solid #a2a9b1; | |||
margin: 0 0 8px 0; | |||
padding: 0 0 4px 0; | |||
} | |||
.portal-section h3 { | |||
font-size: 1.1em; | |||
font-weight: bold; | |||
margin: 8px 0; | |||
} | |||
/* Specific section types */ | |||
.portal-did-you-know { | |||
border-left: 4px solid #006699; | |||
} | |||
.portal-featured-article { | |||
border-left: 4px solid #993366; | |||
} | |||
.portal-good-article { | |||
border-left: 4px solid #339966; | |||
} | |||
.portal-events { | |||
border-left: 4px solid #cc3333; | |||
} | |||
.portal-anniversaries { | |||
border-left: 4px solid #ff9900; | |||
} | |||
.portal-featured-image { | |||
border-left: 4px solid #6699cc; | |||
} | |||
/* Read more link */ | |||
.portal-read-more { | |||
font-style: italic; | |||
color: #006699; | |||
margin-top: 8px; | |||
} | |||
/* Responsive design */ | |||
@media (max-width: 768px) { | |||
.portal-container { | |||
flex-direction: column; | |||
} | |||
} | } | ||
Wersja z 16:26, 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 two column layout */
.portal-container {
display: flex;
gap: 20px;
margin: 20px 0;
}
.portal-left-column {
flex: 3;
min-width: 0;
}
.portal-right-column {
flex: 2;
min-width: 0;
}
/* Section styling */
.portal-section {
border: 1px solid #a2a9b1;
background: #f8f9fa;
margin-bottom: 20px;
padding: 12px;
font-size: 0.875em;
line-height: 1.6;
}
.portal-section h2 {
font-size: 1.3em;
font-weight: bold;
border-bottom: 1px solid #a2a9b1;
margin: 0 0 8px 0;
padding: 0 0 4px 0;
}
.portal-section h3 {
font-size: 1.1em;
font-weight: bold;
margin: 8px 0;
}
/* Specific section types */
.portal-did-you-know {
border-left: 4px solid #006699;
}
.portal-featured-article {
border-left: 4px solid #993366;
}
.portal-good-article {
border-left: 4px solid #339966;
}
.portal-events {
border-left: 4px solid #cc3333;
}
.portal-anniversaries {
border-left: 4px solid #ff9900;
}
.portal-featured-image {
border-left: 4px solid #6699cc;
}
/* Read more link */
.portal-read-more {
font-style: italic;
color: #006699;
margin-top: 8px;
}
/* Responsive design */
@media (max-width: 768px) {
.portal-container {
flex-direction: column;
}
}