/* ==UserStyle== @name Wikim quiddity's tweaks @namespace StylishThemes @version 1.1.53 @homepageURL https://github.com/quiddity-wp/wikimedia-style-tweaks @updateURL https://raw.githubusercontent.com/quiddity-wp/wikimedia-style-tweaks/master/quiddity.user.css @license CC-BY-SA-4.0 @author quiddity-wp ==/UserStyle== */ @-moz-document domain("wikipedia.org"), domain("meta.wikimedia.org"), domain("office.wikimedia.org"), domain("collab.wikimedia.org"), domain("commons.wikimedia.org"), domain("species.wikimedia.org"), domain("outreach.wikimedia.org"), domain("wikimania.wikimedia.org"), domain("foundation.wikimedia.org"), domain("wikitech.wikimedia.org"), domain("incubator.wikimedia.org"), domain("wiktionary.org"), domain("mediawiki.org"), domain("wikisource.org"), domain("wikivoyage.org"), domain("wikibooks.org"), domain("wikinews.org"), domain("wikiversity.org"), domain("wikiquote.org"), domain("wikidata.org"), domain("beta.wmflabs.org"), domain("wikifunctions.org"), domain("vrt-wiki.wikimedia.org"), domain("patchdemo.wmflabs.org") { /* Stop Menus jumping on page load @import url('https://meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-MoreMenu-pagestyles.en.css&action=raw&ctype=text/css'); */ /* also prevent that from moving the bottom border */ .vector-page-toolbar-container {max-height: 27px;} /* hide the Vector-legacy ToC's annoying "[hide]" links */ .toctogglespan { display: none; } /* Float the section-header links "[edit] [edit source]" to right, where they're less distracting */ .mw-editsection { float: right; padding-top: 5px; } /* NAVPOP FIXES */ /* ------------ */ /* Bigger text */ .navpopup { font-size: 0.875em; line-height: 140%; } .popup_menu { margin-top: 1.1em; } /* wider */ .popupPreview > table { width:100%; } /* disable interwiki styling */ .popupPreview a.extiw, .popupPreview a.extiw:active { color: #36b; background: none; padding: 0; } .popupPreview .external { color: #36b; } /* Configure Drag bar color */ .popupDrag { background-color: #ffbe20; height: 5px; margin-top: -5px; margin-bottom: 5px; } /* restrict meta-menu size */ .popup_drop > a { width: 17px; height: 17px; overflow: hidden; display: inline-block; } /* Change the color of the highlightmyname script */ span.ais523hmn { background-color: #fbe498 !important; } /* Opacity in RC/Watchlist for users with 500+ edits */ .mw-changeslist-user-experienced { opacity: 0.7; } /* Opacity for revert/ed-edits in history pages */ .mw-tag-mw-undo, .mw-tag-mw-rollback, .mw-tag-mw-reverted { opacity: 0.2; } /* Ignore fuzzybot in history pages */ a[href="/wiki/User:FuzzyBot"] { opacity: 0.4; } /* Test ooui tweaks, smaller menu rows */ .oo-ui-menuOptionWidget { padding: 0.3em 1em; } /* Hide the Legend box on RC pages */ .mw-changeslist-legend { display: none; } /* Hide the "Mute" links in sidebar */ #t-mute { display: none; } /* Change link colors */ /* Make disambig links orange */ a.mw-disambig { color: #ff8921; } /* Make redirect links purple a.mw-redirect { color: #c364ef; } */ /* Bold the interwiki links to Enwiki/Simple, and interproject links to Commons/WikiVoyage/Wikisource */ .interwiki-en, .interwiki-simple, .wb-otherproject-commons, .wb-otherproject-wikivoyage, .wb-otherproject-wikisource, .wikibase-sitelinkview-enwiki { font-weight: bold; } /* Force reduced # of rows in editing window */ #wpTextbox1 { height: 30em; } /* Global Font tweaks, better typography */ h4 { font-size: 100% !important; } h5 { font-size: 90% !important; } h6 { font-size: 80% !important; } /* Hide "Retrieved [date]" in references */ .reference-accessdate { display: none; } /* Vertical-align content in Tables */ table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td { vertical-align: top; } /* TRANSLATION STUFF */ /* More compact [[Special:PageTranslation]] */ body.mw-special-PageTranslation #mw-content-text li > div { float: right; font-size: 0.8em; } body.mw-special-PageTranslation #mw-content-text li > div::before { content: "("; } body.mw-special-PageTranslation #mw-content-text li > div::after { content: ")"; } /* Reduce visibility of translation indicators */ .mw-pt-progress:after { opacity: 0.6; } /* Tweak background color of "New Translations" in Special:PageTranslation */ .mw-tpt-sp-section-type-new { background-color: var(--background-color-success-subtle); } .diff-contentalign-left { border: 2px solid green !important; } /* RECENT CHANGES */ /* Highlight RC in sidebar 'cos wikis keep moving it */ #n-recentchanges > a { background-color: var(--background-color-success-subtle); } /* Smol the sub-items in Enchanced RC */ .mw-rcfilters-ui-highlights-enhanced-nested { font-size: 0.9em; } /* Bump Proveit above max-width toggle *? */ #proveit { bottom: 50px; } /* VECTOR-2022 TWEAKS */ /* Hide "View" link in page-toolbar */ #ca-view { display: none; } /* prematter less prominent */ #siteSub { opacity: 0.6; } /* xtools less prominent */ #xtools { opacity: 0.6; } /* Hide the "print/export" sidebar navbox + wikitech */ #p-coll-print_export, #p-electronpdfservice-sidebar-portlet-heading { display: none; } /* Distinct End-matter sections */ #toc-See_also:not(.vector-toc-level-2), #toc-References:not(.vector-toc-level-2), #toc-Notes:not(.vector-toc-level-2), #toc-Endnotes:not(.vector-toc-level-2), #toc-Notes_2:not(.vector-toc-level-2), #toc-Notes_and_references:not(.vector-toc-level-2), #toc-Footnotes:not(.vector-toc-level-2), #toc-Citations:not(.vector-toc-level-2), #toc-Sources:not(.vector-toc-level-2), #toc-Further_reading:not(.vector-toc-level-2), #toc-Further_information:not(.vector-toc-level-2), #toc-External_links { font-size: 0.85em; } #toc-See_also:not(.vector-toc-list-item-active) .vector-toc-link, #toc-References:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Notes:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Endnotes:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Notes_2:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Notes_and_references:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Footnotes:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Citations:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Sources:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Further_reading:not(.vector-toc-list-item-active) .vector-toc-link, #toc-Further_information:not(.vector-toc-list-item-active) .vector-toc-link, #toc-External_links:not(.vector-toc-list-item-active) .vector-toc-link { color: var(--background-color-progressive--active); } .vector-toc-list-item-active > a { color: var(--color-base) !important; } /* Anon preview warning */ .mw-anon-edit-warning, .mw-anon-preview-warning { background: #f47087; border: green 10px solid; } /* Hide VE's undo/redo */ .ve-ui-toolbar-group-history { display:none; } /* Smaller & lighter gender indicators */ #ps-gender-male, #ps-gender-female, #ps-gender-unknown { font-size: 50% !important; user-select: none; opacity:50% } /* troubleshoot interrupted lists, and exceptions -- https://en.wikipedia.org/wiki/Wikipedia_talk:Manual_of_Style/Accessibility#Another_LISTGAP_solution? */ ul:not(.noprint) + ul { border-top: 2px dashed #ccc; } #footer-places, #footer-icons { border-top: none; } /* Semi-hide the empty Category Trees */ .CategoryTreeNotice, .CategoryTreeItem:has(span[title="Contains 0 subcategories, 0 pages, and 0 files"]) { opacity: 0.55; } /* lighter color for Vector-classic ToC numbers */ .tocnumber { color: grey; } /* ----- TEMPORARY ----- */ /* Smaller parsoid tag */ #mw-indicator-parsoid .cdx-info-chip--text { font-size: 8px !important; } #mw-indicator-parsoid { margin-top: -15px } /* Bigger CENT banner-close icons */ #cnotice-toggle-box > a > img { display: none; } #cnotice-toggle-box > a { background: url('https://upload.wikimedia.org/wikipedia/commons/3/36/CloseWindow.svg'); background-size:cover; width:40px; height: 40px; display: block } #cnotice-toggle-icon > a > img { width: 40px; height: 40px; } #cnotice-toggle-icon, #cnotice-toggle-icon > a { background: url('https://upload.wikimedia.org/wikipedia/commons/3/36/CloseWindow.svg'); background-size:cover; width:40px; height: 40px; display: block } #cn-toggle-box > a > img { width: 40px; height: 40px; } #cn-toggle-box > a { background: url('https://upload.wikimedia.org/wikipedia/commons/3/36/CloseWindow.svg'); background-size:cover; width: 40px; height: 40px; display: block } .frb-icon-btn.frb-close { background: url('https://upload.wikimedia.org/wikipedia/commons/3/36/CloseWindow.svg'); background-size:cover; width: 40px; height: 40px; display: block } /* ----- TESTS ----- */ /* Hover to Auto-open all UI dropdown menus */ /*.vector-menu-dropdown:hover > .vector-menu-content { opacity: 1; visibility: visible; height: auto; transition-delay: 100ms; }*/ /* ??? */ /*.timeline-wrapper, .wikitable {width: calc(100vw - 350px) !important;} .timeline-wrapper {max-width: none;} */ /* ???? */ .vector-feature-zebra-design-disabled .mw-page-container { margin: 0; } /* More obvious multi-change indicators in Enhanced RC (grouped changes) */ .mw-enhancedchanges-arrow, .mw-changeslist-groupdiff { background: #b0f2e8; } /* ??? .vector-feature-zebra-design-enabled .vector-header-container .mw-header, .vector-feature-zebra-design-enabled .vector-page-toolbar, #p-associated-pages { background: #d8d7d7 !important; } */ /* test smaller ToC text .vector-toc-text { font-size: 90% !important; } */ /* Shorten the inline links for "edit source" to just "source" */ .mw-editsection > a:not(.mw-editsection-visualeditor, #ca-addsection, .copysectlink, .copy-section-link-pilcrow) { font-size: 0px; } .mw-editsection > a:not(.mw-editsection-visualeditor, #ca-addsection, .copysectlink, .copy-section-link-pilcrow)::after { content: 'source'; font-size: 0.9rem; visibility: visible; color: var(--color-progressive,#36c); } /* Hide the "copy" gadget's first header #firstHeading > .mw-editsection { display: none; } */ /* hide toc hide button */ button[data-event-name="pinnable-header.vector-toc.unpin"] { color: var(--color-placeholder); } /* darkmode fixes .wikiEditor-ui-toolbar, #pagehistory li.selected {color: unset; background: unset;} .editOptions {background: unset; color:unset;} #editpage-specialchars a {background:unset;} .wikiEditor-ui-toolbar .tabs span.tab a.current {color: unset} .wikiEditor-ui-toolbar .page-table td {color:unset} .wikiEditor-ui-toolbar .page-characters div span {color:unset;} .wikiEditor-ui-toolbar .booklet > .index > .current {background: unset} .wikiEditor-ui-toolbar .group .tool-select .label {color: unset} .wikiEditor-ui-toolbar .tabs span.tab a {color:unset} .mw-parser-output tr + tr > .navbox-list {border-top: unset;} .mw-parser-output .navbox-list-with-group {border-left: unset;} */ /* Fix wider-tables not fully showing in fixed-width layout */ @media screen { .noresize { /* max-width: unset; NOT NEEDED? */ overflow-x: unset; } } /* Codex, widen the form label click-area */ .cdx-radio__label { min-width: 120px; } label .cdx-radio__label { background: var(--background-color-interactive-subtle); } /* wiktionary layout and skimmability */ .usage-label-sense::after{ content: "\a"; white-space: pre; } .usage-label-sense{ opacity: 0.6; } /* diff size fix */ .diff-context, .diff-deletedline, .diff-addedline { font-size: unset !important; } /* hide the collapsed menu reminders */ .vector-appearance-landmark > .vector-popup-notification {display: none;} .vector-page-tools-landmark > .vector-popup-notification {display: none;} /* Appearance menu enhancements */ .cdx-radio:has(label[for="skin-client-pref-vector-feature-custom-font-size-value-1"]) {font-size: 130% !important} .cdx-radio:has(label[for="skin-client-pref-vector-feature-custom-font-size-value-2"]) {font-size: 160% !important} .cdx-radio:has(label[for="skin-client-pref-vector-feature-limited-width-value-1"]) label, .cdx-radio:has(label[for="skin-client-pref-vector-feature-limited-width-value-0"]) label {text-align: center; display: unset;} .cdx-radio:has(label[for="skin-client-pref-vector-feature-limited-width-value-0"]) label:before {content:'← ';} .cdx-radio:has(label[for="skin-client-pref-vector-feature-limited-width-value-0"]) label:after {content:' →';} .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-os"]) {background:linear-gradient(to right,#eaecf0 80%,black 99%); color: black} .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-day"]) {background: #eaecf0; color: black} .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-night"]) {background: linear-gradient(to right,#eaecf0 80%,black 80%); color: black} /* forced night mode */ /* Note: If using a CSS variable, there is no need to make use of `@media screen` */ @media screen { html.skin-theme-clientpref-night .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-os"]) {background:linear-gradient(to right,black 80%,#eaecf0 96%); color: white} html.skin-theme-clientpref-night .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-day"]) {background: linear-gradient(to right,black 80%,#eaecf0 80%); color: #eaecf0} html.skin-theme-clientpref-night .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-night"]) {background: black; color: white} } /* automatic mode */ @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-os"]) {background:linear-gradient(to right,black 80%,#eaecf0 96%); color: white} html.skin-theme-clientpref-os .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-day"]) {background: linear-gradient(to right,black 80%,#eaecf0 80%); color: #eaecf0} html.skin-theme-clientpref-os .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-night"]) {background: black; color: white} } /* bigger max dropdown */ @media screen { .vector-dropdown .vector-dropdown-content {max-height: 83vh;} } }