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

@use "../../../lib";
/*** main heading section ***/

/* overwriting styles from here:
 * https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Vector/+/refs/heads/REL1_39/resources/skins.vector.styles.legacy/layouts/screen.less#47 */
.mw-body .firstHeading {
	/* fix scroll-x issue for narrow width */
	overflow: hidden;
}

/* the " < rootpage < page " crumb */
/* overwriting styles from here:
 * https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/REL1_39/resources/src/mediawiki.skinning/interface-subtitle.less#6 */
#contentSub,
#contentSub2 {
	font-size: 12px;
	line-height: 20px;
	margin: 0;
	color: var(--theme-text-color-note);
}

/* custom "back-arrows" */
#contentSub {
	.subpages {
		color: transparent;
		line-height: 20px;
		font-size: 0;

		a {
			font-size: 12px;
			vertical-align: middle;
			display: inline-flex;
			align-items: center;
			padding-left: 4px;

			&::before {
				content: "";
				display: inline-block;
				height: 4px;
				width: 4px;
				border-color: var(--theme-icon-color);
				border-style: solid;
				border-width: 0 0 2px 2px;
				margin: 0 2px 0 0;
				transform: rotate(45deg);
			}
		}
	}

	&::after {
		/* the line between heading section and content body box */
		@include lib.pseudo-block;
		@include lib.hr;
		margin-top: 4px;
		margin-bottom: var(--layout-padding-y);
	}
}