User:Taavi/global.css

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
@import url( 'https://en.wikipedia.org/w/load.php?lang=en&skin=vector-2022&modules=ext.gadget.StickyTableHeaders&only=styles' );

/* better monospace fonts */
.diff-editfont-monospace .diff-addedline,
.diff-editfont-monospace .diff-deletedline,
.diff-editfont-monospace .diff-context,
.ace_text-input,
.wikiEditor-ui .ace_editor,
.mw-editfont-monospace,
pre,
textarea
{
    font-family: "Iosevka Taavi", "Iosevka", monospace !important;
    font-variant-ligatures: none;
}

/* no redlinking in the sandbox link */
#pt-sandbox .new
{
	color: #0645ad !important;
}

/* hide useless personal menu things */
#pt-betafeatures,
ul.vector-menu-content-list #pt-sandbox,
ul.vector-menu-content-list #cx-language,
ul.vector-menu-content-list #cx-imageGallery
{
	display: none;
}

/* todo: figure out what this is for */
.localcomments
{
	white-space: normal !important;
}

/* allow copy-paste from category pages */
.mw-category-group > h3
{
	user-select: none;
}

/* highlight reverted tag */
.mw-tag-marker-mw-reverted
{
	background-color: #fed7d7;
}

/* new vector: make the sticky header look better by using the full page width */
.vector-sticky-header
{
	max-width: none !important;
}

/* new vector: no length limit for titles on the sticky header */
.vector-sticky-header-context-bar-primary
{
	max-width: none;	
}

.vector-sticky-header-context-bar-primary::after
{
	display: none;
}

/* new vector: I am aware of the language box moving */
.vector-language-sidebar-alert
{
	display: none;
}

/* new vector: remove ugly background color for the sidebar */
.vector-feature-page-tools-disabled .vector-main-menu
{
	background-color: #ffffff;
}

/* new vector: hide the buggy and useless popup */
.vector-limited-width-popup
{
	display: none;
}

/* the sysadmin group gives me more options than I want, highlight the one user group I usually want to adjust */
label[for="wpGroup-autopatrolled"]
{
	color: blue;
}

/* hide annoyingly-colored icons without any extra information */
.mw-message-box .cdx-message__icon
{
	display: none;
}

/* hide "missing in these languages" popup in the language switcher */
.cx-uls-relevant-languages-banner
{
	display: none;
}

/* hide parsoid popus */
div.mw-notification.mw-notification-tag-parsermigration-notice
{
	display: none;
}

/* use the same color for links regardless of whether they've been visited or not, or are external or not */
@media screen
{
	a,
	a:visited,
	.mw-parser-output a.extiw:visited,
	.mw-parser-output a.external:visited
	{
		color: var(--color-progressive,#36c);
	}	
}