MediaWiki:Common.css/src/system/redirect.scss

From Terraria Wiki
Jump to navigation Jump to search

This page is one of the SCSS pages which are the basis for MediaWiki:Common.css. After you edit this page, you will need to recompile them for your changes to take effect. See Terraria Wiki:CSS to learn more.

/********* redirect *********/

/* Arrow on redirect pages */

/* overwriting styles from here:
 * https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css */

/* In the default style, the icon is the background of the <li> element.
 * We want to apply a filter to the image only (not the text), so we have to
 * move the image to a new pseudo-element. */
.mw-content-ltr .redirectText li:first-child {
	background: none;
	padding-left: 0;

	&:before {
		content: '';
		background: linear-gradient(transparent, transparent), url(/resources/src/mediawiki.action/images/redirect-ltr.svg);
		padding-left: 47px;
		filter: var(--ooui--icon-normal-filter); /* theme-dependent color of the icon */
	}
}