@import 'variables.less';

input {
	margin: 0.5em 0;
	padding: 0.34em;
	font-family: @fonts;
}

.mw-input-with-label {
	display: block; // wat (this is probably an awful idea but aaaaaah whatever)
}

// Fix for half-arsed date input conversion on special:contributions and anywhere else
// that's not actually ooui: add just enough margin to keep multiple widgets from fondling
// each other
.mw-widget-dateInputWidget {
	margin: 0 0 0.2em 0;
}

// More fondling, because we've removed the default margins in normalise
input[ type='radio' ],
input[ type='checkbox' ] {
	margin: 0.35em 0.2em 0.25em 0.35em;
	box-sizing: border-box;
}

textarea,
#searchInput {
	box-sizing: border-box;
	box-shadow: inset 0 1px 1px 1px rgba( 0, 0, 0, 0.05 );
}

textarea {
	width: 100%;
	resize: vertical;
	box-sizing: border-box;
	line-height: 1.3em;
	border: solid 1px @grey;
}

div.editOptions {
	padding: 1.25em 1.75em;
	border: solid @grey;
	border-width: 0 1px @border;
	background: @background2;

	// For Extension:TemplateSandbox and the like
	fieldset {
		margin-top: 1em;
	}
}

/* Extension:TemplateSandbox stuff */
.mw-templatesandbox-page label {
	padding: 0;
}

#wpTemplateSandboxPreview {
	margin-left: 0.5em;
}

/* fixes for non-JavaScript filtering on Special:Watchlist
 * @see https://phabricator.wikimedia.org/T225412
 */
.mw-special-Watchlist .mw-input-with-label {
	display: inline-block;
}
