MediaWiki:Common.css/src/interface/makeCollapsible.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.

/********* Collapsible elements *********/

/* Documentation of jquery.makeCollapsible:
 * https://www.mediawiki.org/wiki/Manual:Collapsible_elements
 * https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#jquery.makeCollapsible */

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

/* Define a custom class "plaincollapse":
 * Removes brackets from collapse/expand links */
.plaincollapse > .mw-collapsible-toggle { /* only apply to immediate children to allow nesting */
	color: rgba(0, 0, 0, 0.0);
	> a, > a:link, > a:visited, > a:hover{
		font-weight: bold;
	}
}
/* For floating the "Collapse"/"Expand" link (instead of always right next to text) */
.mw-collapsible-alignbtnright .mw-collapsible-toggle {
	float: right !important;
}
.mw-collapsible-alignbtnleft .mw-collapsible-toggle {
	float: left !important;
}
/* To forcibly prevent floating altogether */
.mw-collapsible-nofloat .mw-collapsible-toggle {
	float: none;
}