MediaWiki:Common.css: Difference between revisions
Tag: Undo |
No edit summary |
||
| Line 1,840: | Line 1,840: | ||
/* Safety: avoid stray white borders */ | /* Safety: avoid stray white borders */ | ||
hr{ border:0; border-top:1px solid #1f1f1f!important; } | hr{ border:0; border-top:1px solid #1f1f1f!important; } | ||
/* DARK-GLOBAL-TABLES-v1 — univerzálny fix pre MW tabuľky + filtre */ | |||
:root{ | |||
--tb-bg0:#0b0b0b; --tb-row:#111111; --tb-rowAlt:#161616; --tb-head:#141414; | |||
--tb-fg:#e6e6e6; --tb-border:#2b2b2b; --tb-link:#9ecbff; --tb-linkV:#c4b3ff; | |||
} | |||
/* VŠETKY ŠTANDARDNÉ TABUĽKY V OBSAHU */ | |||
.mw-body table.mw-datatable, | |||
.mw-body .TablePager, | |||
.mw-body table.filelist, | |||
.mw-body .wikitable{ | |||
background:var(--tb-bg0) !important; | |||
color:var(--tb-fg) !important; | |||
border:1px solid var(--tb-border) !important; | |||
} | |||
.mw-body table.mw-datatable th, | |||
.mw-body table.mw-datatable td, | |||
.mw-body .TablePager th, | |||
.mw-body .TablePager td, | |||
.mw-body table.filelist th, | |||
.mw-body table.filelist td, | |||
.mw-body .wikitable th, | |||
.mw-body .wikitable td{ | |||
background:var(--tb-row) !important; | |||
color:var(--tb-fg) !important; | |||
border-color:var(--tb-border) !important; | |||
} | |||
.mw-body table.mw-datatable tr:nth-child(even) > td, | |||
.mw-body table.filelist tr:nth-child(even) > td, | |||
.mw-body .wikitable tr:nth-child(even) > td{ | |||
background:var(--tb-rowAlt) !important; | |||
} | |||
.mw-body table.mw-datatable th, | |||
.mw-body .TablePager th, | |||
.mw-body table.filelist th, | |||
.mw-body .wikitable th{ | |||
background:var(--tb-head) !important; | |||
font-weight:600; | |||
} | |||
/* navigácia/pager pod tabuľkou */ | |||
.mw-body .mw-pager-navigation, | |||
.mw-body .TablePager_nav{ | |||
background:var(--tb-bg0) !important; | |||
color:var(--tb-fg) !important; | |||
border:1px solid var(--tb-border) !important; | |||
} | |||
/* odkazy v tabuľkách */ | |||
.mw-body table.mw-datatable a, | |||
.mw-body .TablePager a, | |||
.mw-body table.filelist a, | |||
.mw-body .wikitable a{ color:var(--tb-link) !important; } | |||
.mw-body table.mw-datatable a:visited, | |||
.mw-body .TablePager a:visited, | |||
.mw-body table.filelist a:visited, | |||
.mw-body .wikitable a:visited{ color:var(--tb-linkV) !important; } | |||
/* kód/prehľady v bunkách – zruš biele pozadie */ | |||
.mw-body table .mw-code, | |||
.mw-body table code, | |||
.mw-body table pre{ | |||
background:#1a1a1a !important; | |||
color:var(--tb-fg) !important; | |||
border-color:var(--tb-border) !important; | |||
} | |||
/* OOUI prvky nad tabuľkami (filtre na Special:* stránkach) */ | |||
.mw-body .oo-ui-panelLayout, | |||
.mw-body .oo-ui-fieldLayout, | |||
.mw-body .oo-ui-inputWidget, | |||
.mw-body .oo-ui-textInputWidget input, | |||
.mw-body .oo-ui-dropdownWidget, | |||
.mw-body .oo-ui-menuSelectWidget{ | |||
background:var(--tb-bg0) !important; | |||
color:var(--tb-fg) !important; | |||
border-color:var(--tb-border) !important; | |||
} | |||
.mw-body .oo-ui-labelElement-label{ color:var(--tb-fg) !important; } | |||
/* thumbnaily v riadkoch – bez bieleho okraja */ | |||
.mw-body .TablePager img, | |||
.mw-body table.filelist img{ background:transparent !important; box-shadow:none !important; } | |||