/* ==UserStyle== @name Wikim quiddity's tweaks @namespace StylishThemes @version 1.1.99 @homepageURL https://github.com/quiddity-wp/wikimedia-style-tweaks/blob/master/quiddity.user.css @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.wmcloud.org"), domain("wikifunctions.org"), domain("vrt-wiki.wikimedia.org"), domain("patchdemo.wmcloud.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: 15px; } */ /* this chunk copied from [[w:en:MediaWiki:Gadget-righteditlinks.css]] */ /* Move section [edit] links to the right side of the screen. */ .mw-editsection, .mw-editsection-like { float: right; line-height: inherit; } #firstHeading .mw-editsection, #firstHeading .mw-editsection-like { margin-right: 0.5em; } .skin-vector .mw-editsection, .skin-vector .mw-editsection-like { margin-top: 0.5em; } .skin-vector #firstHeading .mw-editsection, .skin-vector #firstHeading .mw-editsection-like { margin-top: 1em; } /* NAVPOP FIXES */ /* ------------ */ /* Bigger text */ .navpopup { font-size: 1em; 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; } html.skin-theme-clientpref-night span.ais523hmn { background-color: #453217 !important; color: var(--color-progressive,#36c) !important; } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os span.ais523hmn { background-color: #453217 !important; color: var(--color-progressive,#36c) !important; } } /* Opacity in RC/Watchlist for users with 500+ edits */ .mw-changeslist-user-experienced { opacity: 0.7; } /* Opacity in RC/Watchlist for bot edits */ .mw-changeslist-bot { opacity: 0.4; } /* 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; } /* Opacity for renames and new accounts*/ .mw-changeslist-log-renameuser { opacity: 0.4; } .mw-changeslist-log-newusers { opacity: 0.6; } /* 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 var(--background-color-content-added) !important; } */ /* RECENT CHANGES */ /* Highlight RC in sidebar 'cos wikis keep moving it */ #n-recentchanges > a { background-color: var(--background-color-success-subtle); } /* Embiggen for my eyes */ .mw-changeslist-line-inner {font-size: 1.0rem;} .mw-rcfilters-ui-highlights-enhanced-nested {font-size: 0.9rem !important;} /* 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; } /* Hide more Tools box links */ #t-urlshortener-qrcode {display: none} #t-collapsible-toggle-all {display: none} #wbc-editpage {display: none} /* TOC */ /* Embiggen headers for H2s within ToC */ .vector-toc-level-1 > :first-child {font-size: 1.2em} #toc-mw-content-text > :first-child {font-size: 1em} /* 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-Works_cited: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.75em !important; font-weight: 500; } /*#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-Works_cited: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--hover); }*/ .vector-toc-list-item-active > a { color: var(--color-base) !important; } /* lighter color for Vector-classic ToC numbers */ .tocnumber { color: grey; } /* Reduce visibility of ToC hide button */ button[data-event-name="pinnable-header.vector-toc.unpin"] { color: var(--color-placeholder); background-color: unset; } /* Change color of ToC scrollbar */ .vector-dropdown-content, .vector-sticky-pinned-container { scrollbar-color: var(--background-color-interactive--hover) var(--background-color-base); } /* test wider toc .vector-toc .vector-toc-list-item { padding-left: 5px; } .vector-toc-level-2,.vector-toc-level-3,.vector-toc-level-4,.vector-toc-level-5 { padding-left: 15px !important; } #vector-toc-pinned-container { padding-right: 5px; } */ /* MISCELLANEOUS */ /* 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.35; } /* ----- 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; }*/ /* Allow tables to overflow "standard" width @media screen and (min-width: 640px) { .timeline-wrapper, .wikitable {width: calc(100vw - 350px) !important;} .timeline-wrapper {max-width: none;} } */ /* Fix wider-tables not fully showing in fixed-width layout */ @media screen { .noresize { /* max-width: unset; NOT NEEDED? */ overflow-x: unset; } } /* ???? */ .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; } /* Replace section-edit links with icons */ .mw-editsection-visualeditor { background: url(https://upload.wikimedia.org/wikipedia/commons/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg) no-repeat; background-size: 12px; display: inline-block; padding: 12px 0 0 0; width: 12px; font-size: 1px; text-decoration: none; } .mw-editsection:not(.cite-unseen-section) > a:not(.mw-editsection-visualeditor) { background: url(https://upload.wikimedia.org/wikipedia/commons/8/8f/OOjs_UI_icon_wikiText-progressive.svg) no-repeat; background-size: 15px; display: inline-block; padding: 12px; width: 12px; font-size: 1px; text-decoration: none; } .mw-editsection-bracket { font-size: 10px; display: none; } .mw-editsection-divider { font-size: 10px; padding-right: 2px; } /* Shorten the inline links for "edit source" to just "source" */ /* REMOVED FOR NOW - conflicts with iconification (above) .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, .cdx-button)::after { content: 'source'; font-size: 0.8rem; visibility: visible; color: var(--color-progressive,#36c); } */ /* 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;} */ /* 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"]) label {font-size: 120% !important} .cdx-radio:has(label[for="skin-client-pref-vector-feature-custom-font-size-value-2"]) label {font-size: 140% !important} .cdx-radio__label, .cdx-radio__label.cdx-label {line-height: 1.32} .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 {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,#f9f9f9 80%,black 99%); color: black} .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-day"]) {background: #f9f9f9; color: black} .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-night"]) {background: linear-gradient(to right,#f9f9f9 80%,black 80%); color: black} /* dark 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,#101418 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,#101418 80%,#eaecf0 80%); color: #eaecf0} html.skin-theme-clientpref-night .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-night"]) {background: #101418; color: white} } /* automatic dark 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,#101418 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,#101418 80%,#eaecf0 80%); color: #eaecf0} html.skin-theme-clientpref-os .cdx-radio:has(label[for="skin-client-pref-skin-theme-value-night"]) {background: #101418; color: white} } /* Stop the beta-dark-mode warning from making the box bigger */ #skin-theme-beta-notice {max-width: 150px;} /* bigger max dropdown */ @media screen { .vector-dropdown .vector-dropdown-content {max-height: 83vh;} } /* highlight centralauth links in contribs pages */ .mw-contributions-link-centralauth { background-color: var(--background-color-success-subtle); } /* wikifunctions */ .ext-wikilambda-app-about-language-block__unavailable { opacity: 0.4 } /* hide sidebar "Vector opt-out" main-menu entry - still exists on wikitech */ .vector-main-menu-action-opt-out {display: none} /* test moving the page-title from under my new stickyheadertext-anchor @media screen and (min-width: 1120px) { .vector-sticky-header-context-bar-primary { position: absolute; top:46px; left:360px; } }*/ /* fix inline diffs not scaling with text-size options */ .diff-addedline, .diff-deletedline, .diff-context, .mw-diff-inline-added, .mw-diff-inline-deleted, .mw-diff-inline-moved, .mw-diff-inline-changed, .mw-diff-inline-context {font-size: unset} /* add gap above categories box */ #catlinks {margin-top: 50px;} /* list cats .catlinks li {display: block} */ /* bold catbox heading */ #mw-normal-catlinks > a:first-of-type {font-size: 110%;} /* mute hidden cats */ #mw-hidden-catlinks {opacity: 60%;} /* Highlight contact list */ #n-Contact-list > a { background-color: var(--background-color-success-subtle); } /* Bigger edit-box text */ #wpTextbox1 {font-size: 1.0em} /* REMOVE - borks the DT editbox: .cm-line {font-size: 1.1em} */ .mw-tpt-sp-content {font-size: 1rem} /* Hide code-folding */ .cm-tooltip-fold {display: none} /* If default headerbar is showing, don't animate it */ .vector-header-container {transition-duration: 0ms} /* ideas taken/adapted from w:User:DTorsani-WMF/vector-2022.css */ /* Ambox overrides */ .mw-parser-output .ambox { padding: 4px; border-radius: 6px; font-size: 90%; } .hide-when-compact { font-size: 90% } .mw-parser-output .ambox .mbox-image { display: none; } /* Infobox Templates */ .mw-parser-output .ib-settlement th:first-child { border-top: none; } .wmamapbutton { width: 16px !important; height: auto !important; } .flagicon img { width: 24px !important; height: auto !important; } /*Citations*/ sup.reference { margin: 0 0 0 1px; background-color: var(--background-color-interactive); border-radius: 50%; font-style: italic; } sup.reference:hover, sup.reference:active { background-color: var(--color-progressive--hover); cursor: pointer; } sup.reference:hover a, sup.reference:active a { color: var(--color-inverted-fixed) !important; } /* tweak admin background color */ .userhighlighter_sysop.userhighlighter_sysop {background-color: var(--background-color-progressive--active) !important} /* ??? */ .mw-gu-onwiki-en_wikipedia_org { background-color: var(--background-color-progressive-subtle) } /* END */ }