/*!
 * Styling for Special:WhatLinksHere
 */

@import 'mediawiki.skin.variables.less';

.mw-special-Whatlinkshere {
	.oo-ui-fieldsetLayout-group {
		max-width: 50em;

		.oo-ui-panelLayout-padded.oo-ui-panelLayout-framed {
			border: 0;
			padding: 0;
		}

		// Hide extra `legend`s when grouping form in sections.
		.oo-ui-fieldsetLayout.oo-ui-labelElement > .oo-ui-fieldsetLayout-header {
			display: none;
		}
	}

	#mw-htmlform-whatlinkshere-ns {
		display: flex;
		justify-content: space-between;
		align-items: end;
		flex-wrap: wrap;
		// To remove the left padding when its child checkbox is wrapped.
		margin-left: -@spacing-100;
	}

	#mw-htmlform-whatlinkshere-ns > .mw-htmlform-field-HTMLSelectNamespace {
		flex-grow: 1;
		padding-left: @spacing-100;
	}

	#mw-htmlform-whatlinkshere-ns > .mw-htmlform-field-HTMLCheckField {
		padding-left: @spacing-100;
	}

	#mw-htmlform-whatlinkshere-filter > .mw-htmlform-field-HTMLCheckField {
		display: inline-block;
		padding-right: @spacing-100;
	}
}
