Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to backgrounds, infoboxes and font colors #218

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 31 additions & 15 deletions wikipedia-dark.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@
.vector-feature-zebra-design-disabled .mw-page-container,
.vector-feature-zebra-design-enabled .vector-page-titlebar,
.vector-feature-zebra-design-enabled .vector-page-toolbar,
.vector-feature-zebra-design-enabled .vector-body {
.vector-feature-zebra-design-enabled .vector-body,
.vector-feature-zebra-design-enabled .vector-header-container .vector-sticky-header,
.vector-feature-zebra-design-enabled .mw-page-container {
background-color: var(--gray-2);
background-image: var(--bg-selected);
background-clip: border-box;
Expand Down Expand Up @@ -470,13 +472,14 @@
.wikitable > tr > td,
.wikitable > * > tr,
.wikitable > * > tr > th,
.wikitable > * > tr > td:not(.break):not([style^="background:"]):not([bgcolor]),
.wikitable > * > tr > td:not(.break):not([style^="background:"]):not([bgcolor]):not([style*="background:#"][style*="color:#000"]),
.wikitable th span[style*="background"],
.inline-quote-talk,
.oo-ui-fieldsetLayout-group .oo-ui-widget,
.mw-parser-output .mod-gallery .whitebg img,
.mw-parser-output .mod-gallery .gallerybox div,
#mp-topbanner {
#mp-topbanner,
figure[typeof~="mw:File/Thumb"], figure[typeof~="mw:File/Frame"] {
background-color: transparent !important;
}
tr > td[bgcolor] {
Expand Down Expand Up @@ -796,7 +799,8 @@
.oo-ui-tool.oo-ui-widget-enabled > .oo-ui-tool-link:active:focus,
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-tool-active > .oo-ui-tool-link,
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-popupToolGroup-active > .oo-ui-tool-link,
.oo-ui-listToolGroup-tools .oo-ui-tool.oo-ui-widget-enabled:hover {
.oo-ui-listToolGroup-tools .oo-ui-tool.oo-ui-widget-enabled:hover,
.vector-feature-zebra-design-disabled .vector-dropdown > .vector-menu-content {
background-color: var(--gray-3);
}
:not(.color_swatch) > div[style*="background-color: rgb(249, 249, 249)"] {
Expand Down Expand Up @@ -853,7 +857,9 @@
table.toccolours > caption[style*="background-color:lavender"],
.infobox-header[style^="border-top:#aaa 1px solid"],
.infobox-below[style="border-top:#aaa 1px solid"],
.mw-ui-icon-small.vector-toc-toggle {
.mw-ui-icon-small.vector-toc-toggle,
figure[typeof~="mw:File/Thumb"], figure[typeof~="mw:File/Frame"],
figure[typeof~="mw:File/Thumb"] > :not(figcaption) .mw-file-element {
border-color: var(--gray-5) !important;
}
table[style*="border:1px solid #CCCCCC;"],
Expand Down Expand Up @@ -905,7 +911,8 @@
.wikibase-toolbar-container.wikibase-toolbar-container,
.thumbinner > .tsingle > .thumbimage,
.vector-feature-zebra-design-enabled .vector-pinned-container::after,
.vector-feature-zebra-design-enabled .vector-dropdown .vector-dropdown-content::after {
.vector-feature-zebra-design-enabled .vector-dropdown .vector-dropdown-content::after,
.vector-feature-zebra-design-enabled .vector-sticky-pinned-container::after {
background: transparent !important;
}
.wb-preferred .wikibase-statementview-mainsnak {
Expand Down Expand Up @@ -952,7 +959,8 @@
.infobox-above[style*="background: #DEDEE2;"],
.infobox-above[style*="background-color: #E7DCC3;"],
.infobox-above[style="background:Silver"],
.wikitable[style*="background-color:#f7f8ff"] tbody {
.wikitable[style*="background-color:#f7f8ff"] tbody,
input:hover + .cdx-button.cdx-button--action-progressive {
background-color: var(--gray-3) !important;
}
.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted,
Expand Down Expand Up @@ -1305,6 +1313,11 @@
input.mw-ui-input:focus {
box-shadow: inset 0 0 0 1px var(--base-color) !important;
}
#vector-toc-pinned-container .vector-toc::after,
#vector-toc-pinned-container .sidebar-toc::after,
.vector-feature-zebra-design-disabled .vector-sticky-pinned-container::after {
background: linear-gradient(transparent, var(--gray-1));
}
#vector-page-tools-pinned-container .vector-page-tools {
margin-left: 0;
padding-left: 14px;
Expand Down Expand Up @@ -1336,6 +1349,9 @@
border-bottom: 1px solid var(--gray-7);
}
.vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu,
.vector-feature-page-tools-enabled #vector-main-menu-pinned-container .vector-main-menu,
.vector-feature-page-tools-disabled .vector-main-menu,
.vector-pinnable-element,
.vector-feature-zebra-design-disabled .vector-toc,
.vector-feature-zebra-design-disabled .vector-pinned-container:not(#vector-main-menu-pinned-container):not(#vector-toc-pinned-container),
.vector-feature-zebra-design-enabled .vector-pinned-container,
Expand Down Expand Up @@ -1421,14 +1437,11 @@
border-top: 1px solid var(--gray-3);
}
.vector-menu-heading-label,
.cdx-button::after,
.cdx-button .vector-icon,
.cdx-button .vector-icon:not(.mw-ui-icon-wikimedia-language-progressive),
.cdx-button:not([for="p-lang-btn-checkbox"])::after,
.vector-menu-content .vector-icon {
filter: invert(75%);
}
.mw-portlet-lang {
filter: invert(100%);
}
input:hover + .vector-menu-heading.cdx-button.cdx-button--action-progressive,
.cdx-button--weight-quiet.cdx-button--action-progressive:enabled:hover,
.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--fake-button--enabled:hover {
Expand Down Expand Up @@ -1874,7 +1887,7 @@
}
table.wikitable > tr > th,
table.nmbox th:not([style*="#EEF"]),
table.wikitable > * > tr > th:not([style*="#ABC;"]):not([style*="#fdb"]):not([style*="#fed"]):not([style*="#fef"]):not([style*="#d4f"]):not([style*="0; color:#000000"]):not([style*="FF; color:#000000"]),
table.wikitable > * > tr > th:not([style*="#ABC;"]):not([style*="#fdb"]):not([style*="#fed"]):not([style*="#fef"]):not([style*="#d4f"]):not([style*="0; color:#000000"]):not([style*="FF; color:#000000"]):not([style*="color:#000"]),
table.wikitable > tbody > tr[style*="background-color:#F6F6F6" i],
table:not([style*="background:#E5E5E5"]) > tbody >tr > td[style*="background"]:not([style*="D8B"]):not([style*="000"]):not([style*="cdde"]):not([style*="e8dbae"]):not([style*="FE4"]):not([style*="301"]):not([style*="722"]):not([style*="781"]):not([style*="702"]):not([style*="6C3"]):not([style*="880"]):not([style*="866"]):not([style*="512"]):not([style*="DE6"]):not([style*="C54"]):not([style*="B76"]):not([style*="9A4"]):not([style*="4E2"]):not([style*="DF0"]):not([style*="DA7"]):not([style*="DF7"]):not([style*="9F00"]):not([style*="FAE6"]):not([style*="E0B0"]):not([style*="800080"]):not([style*="66023C"]):not([style*="7851A9"]):not([style*="C71585"]):not([style*="BF00FF"]):not([style*="A020F0"]):not([style*="9370DB"]):not([style*="663399"]):not(.notheme),
td[style*="background:#F2F2F2" i],
Expand Down Expand Up @@ -5235,7 +5248,9 @@
#footer-icons img {
filter: brightness(70%);
}
img[alt="The Signpost"] {
img[alt="The Signpost"],
.vector-icon.mw-ui-icon-wikimedia-ellipsis,
.vector-icon.mw-ui-icon-wikimedia-fullScreen {
filter: invert(60%);
}
.sprite.svg-translate-icon,
Expand Down Expand Up @@ -7768,7 +7783,8 @@
background: var(--gray-18);
}
#mw-content-text .cytat,
.mw-parser-output .naglowek {
.mw-parser-output .naglowek,
tr[style$="background:#fff;"] {
background-color: var(--gray-3) !important;
}
.infobox .grafika {
Expand Down