From 6dd0303d523bd85203d6046d55045ea226b8f2f8 Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:24:37 +0200 Subject: [PATCH 1/7] UI Fixes Fixed bar on the top and the content bar on the left --- wikipedia-dark.user.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index 0d57098..e43b20f 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -419,6 +419,9 @@ @-moz-document regexp("https?:\/\/(([\w\-]{2,}\.)?(wiki(pedia|books|news|quote|source|versity|voyage)|wiktionary)|(www|test)\.(mediawiki|wiki(data|dot))|(meta|wikimania|commons|otrs-wiki|species|wikitech|incubator|outreach|foundation|donate)\.wikimedia)\.org\/.*"), regexp("https?:\/\/wiki\.(archlinux|mozilla)\.(org|jp)\/.*$"), regexp("https?:\/\/wikiless\.org\/.*$") { + #vector-toc { + background-color: transparent; + } /* transparent background */ html, body, @@ -504,7 +507,7 @@ .ve-ui-mwSaveDialog-options, .mw-parser-output #siteContainer div:first-child, #mw-page-base { - background-color: transparent; + background-color: transparent !important; } .lang-list-button { border-color: var(--gray-5); From bdf09996fb1bf619da5bcfc5c39a1fc9bc937f59 Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:26:18 +0200 Subject: [PATCH 2/7] Fixed tracklist table (music albums) --- wikipedia-dark.user.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index e43b20f..0b7afc1 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -422,6 +422,13 @@ #vector-toc { background-color: transparent; } + .tracklist th[scope="col"] { + background-color: var(--gray-3) !important; + } + .tracklist-total-length span, + .tracklist-total-length td { + background-color: var(--gray-3) !important; + } /* transparent background */ html, body, @@ -439,7 +446,7 @@ } div.vectorTabs ul li, tt[style="background: white;"], - span:not(.legend-color):not([class*="wikEd"]):not([style*="background"]):not(.wikibase-toolbar-wrapper):not(.tool), + span:not(.legend-color):not([class*="wikEd"]):not([style*="background"]):not(.wikibase-toolbar-wrapper):not(.tool):not(.tracklist-total-length span), tr[style*="background:#F5FFFA" i], th[style*="background-color: #fff" i], blockquote[style*="background-color: white" i], From 69dcd24fb1726ea5f21787f8353fbf1550c2627a Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:33:55 +0200 Subject: [PATCH 3/7] Added :not selector to avoid losing colored table cells (for example the table here: https://en.wikipedia.org/wiki/Hangzhou) --- wikipedia-dark.user.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index 0b7afc1..f23e974 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -471,10 +471,10 @@ .mw-body-content .portal ul, .wikitable > tr, .wikitable > tr > th, - .wikitable > tr > td, - .wikitable > * > tr, + .wikitable > tr > td:not([style*="background-color"]), + .wikitable > * > tr:not([bgcolor]), .wikitable > * > tr > th, - .wikitable > * > tr > td:not(.break), + .wikitable > * > tr > td:not(.break):not([style*="color"]):not([style*="background"]):not([bgcolor]), .wikitable th span[style*="background"], .inline-quote-talk, .oo-ui-fieldsetLayout-group .oo-ui-widget, From 60a31b84269499d964a16f8c6b6dd00cd9aaf70a Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:36:05 +0200 Subject: [PATCH 4/7] Fixed infoboxes removed the "[style=""]" because it would not restyle infoboxes with colors, but many times the text is unreadable (i think it's maybe better to make all of them gray for now?) (examples: https://en.wikipedia.org/wiki/Kefalonia_International_Airport https://en.wikipedia.org/wiki/Al_otro_lado_del_muro https://en.wikipedia.org/wiki/ASK/Ogre) --- wikipedia-dark.user.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index f23e974..254fd08 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -429,6 +429,12 @@ .tracklist-total-length td { background-color: var(--gray-3) !important; } + .infobox-data { + background-color: var(--gray-2) !important; + } + .infobox-header { + border-color: var(--gray-5) !important; + } /* transparent background */ html, body, @@ -899,8 +905,8 @@ background-color: var(--gray-3) !important; } .ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted, - .infobox-above[style=""], - .infobox-header[style=""] { + .infobox-above, + .infobox-header { background-color: var(--gray-3); } table[class="toccolours;"] tr[style*="background:#FAFAFA"], From 51ac029d04a099d2d43ceb534c1caa3e7e044bb7 Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:44:07 +0200 Subject: [PATCH 5/7] Added some specific colors --- wikipedia-dark.user.css | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index 254fd08..de6ad1a 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -425,6 +425,8 @@ .tracklist th[scope="col"] { background-color: var(--gray-3) !important; } + + .tracklist-total-length span, .tracklist-total-length td { background-color: var(--gray-3) !important; @@ -435,6 +437,13 @@ .infobox-header { border-color: var(--gray-5) !important; } + + td[style*="background:#FFB" i] { + background: var(--yellow-2) !important; + } + td[style*="background:#BBF3FF" i] { + background: var(--blue-1) !important; + } /* transparent background */ html, body, @@ -901,7 +910,8 @@ .infobox-above[style*="background:#ccc"], .infobox-above[style*="background: #DEDEE2;"], .infobox-above[style*="background-color: #E7DCC3;"], - .infobox-above[style="background:Silver"] { + .infobox-above[style="background:Silver"], + .infobox-above[style*="background-color: lightsteelblue"] { background-color: var(--gray-3) !important; } .ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted, @@ -2249,6 +2259,8 @@ td[style*="background: #ffdddd" i], tr[style*="background:#FFDDDD" i], tr[style*="background:#fbb" i], + td[style*="background:#FBB" i], + tr[bgcolor="#FFBBBB"], .table-no { background: var(--red-3) !important; color: var(--gray-d) !important; @@ -2326,7 +2338,8 @@ div[style*="border: 1px solid #BF4D40"] { border: 1px solid var(--red-3) !important; } - .no.table-no2 { + .no.table-no2, + .table-no2 { background-color: var(--red-3) !important; } /* Green */ @@ -2479,9 +2492,11 @@ td[style*="background: #99FF99;" i], td[style*="background:#dfd" i], td[style*="background:#bfd" i], + td[style*="background-color:#FFBBBB" i], tr[style*="background:#DDFFDD" i], tr[style*="background:#bfb" i], tr[style*="background-color:#CCFFCC" i], + tr[bgcolor="#CCFFCC" i], .table-yes { background: var(--green-2) !important; color: var(--gray-d) !important; @@ -3600,7 +3615,9 @@ td[style*="background-color: #FDD"] { background-color: var(--pink-1) !important; } - td[style*="background-color: #F9D"] { + td[style*="background-color: #F9D"], + td[style*="background-color: #E0CEF2" i], + td[bgcolor="EOCEF2"] { background-color: var(--pink-2) !important; } div[style="background-color: #fff5f5; margin: 2em 0 0 0; padding: 0 10px 0 10px; border: 1px solid #AAAAAA;"] { From 17e22c57b0bf3aee4ec69b4ddc3cabbc2a2cbc0c Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:48:40 +0200 Subject: [PATCH 6/7] Fixed the caption class (Ex: https://en.wikipedia.org/wiki/Help:Table_caption#:~:text=The%20caption%20tag%20is%20used,of%20the%20%22align%22%20parameter.) Fixed the collapse button --- wikipedia-dark.user.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index de6ad1a..e6f4ad8 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -425,8 +425,17 @@ .tracklist th[scope="col"] { background-color: var(--gray-3) !important; } - - + caption { + background-color: var(--gray-3) !important; + border-color: var(--gray-5) !important; + } + button.mw-collapsible-toggle { + border-color: var(--gray-5); + } + button.mw-collapsible-toggle::after, + button.mw-collapsible-toggle::before { + color: var(--gray-5); + } .tracklist-total-length span, .tracklist-total-length td { background-color: var(--gray-3) !important; @@ -437,7 +446,6 @@ .infobox-header { border-color: var(--gray-5) !important; } - td[style*="background:#FFB" i] { background: var(--yellow-2) !important; } From e04689d25e320e14261e4e5e928b0d9722bbacca Mon Sep 17 00:00:00 2001 From: Matteo-2f5b <134111059+Matteo-2f5b@users.noreply.github.com> Date: Sun, 28 May 2023 01:56:59 +0200 Subject: [PATCH 7/7] Fixed rating table (Ex: https://en.wikipedia.org/wiki/Spirit_(Reckless_Love_album)) --- wikipedia-dark.user.css | 1 + 1 file changed, 1 insertion(+) diff --git a/wikipedia-dark.user.css b/wikipedia-dark.user.css index e6f4ad8..d1bcc26 100644 --- a/wikipedia-dark.user.css +++ b/wikipedia-dark.user.css @@ -3680,6 +3680,7 @@ table.wikitable, button.formBtn { border: 1px solid var(--gray-5) !important; + background-color: var(--gray-2) !important; } fieldset, button[type="submit"]:not(.pure-button-primary-progressive):not(.formBtn),