/*!
 * Styles for elements of the editing form.
 */

/* General layout */
#wpTextbox1 {
	margin: 0;
	display: block;
	/* Ensure the textarea is not higher than browser's viewport on small screens */
	max-height: 100vh;
	/* But don't let it collapse into nothingness on really tiny screens */
	min-height: 5em;
}

/*
 * Add a bit of margin space between the preview and the toolbar.
 * This replaces the ugly <p><br /></p> we used to insert into the page source
 */
#wikiPreview.ontop {
	margin-bottom: 1em;
}

/* Adjustments to edit form elements */
#editpage-copywarn {
	font-size: 0.9em;
}

#wpSummary {
	display: block;
	width: 80%;
	margin-bottom: 1em;
}

/* Adjustments to edit form elements (only when $wgOOUIEditPage is false) */
.mw-editform-legacy .editCheckboxes {
	margin-bottom: 1em;
}

.mw-editform-legacy .editCheckboxes input:first-child {
	margin-left: 0;
}

.mw-editform-legacy .cancelLink {
	margin-left: 0.5em;
}

.mw-editform-legacy input#wpSummary {
	background-color: #fff;
	color: #000;
	margin-top: 0;
	padding: 0.625em 0.546875em 0.546875em;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	box-shadow: inset 0 0 0 1px #fff;
	font-family: inherit;
	font-size: inherit;
	-webkit-transition: border-color 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 ), box-shadow 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 );
	-moz-transition: border-color 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 ), box-shadow 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 );
	transition: border-color 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 ), box-shadow 200ms cubic-bezier( 0.39, 0.575, 0.565, 1 );
}

.mw-editform-legacy input#wpSummary:focus,
.mw-editform-legacy input#wpSummary:active {
	outline: 0;
	border-color: #36c;
	box-shadow: inset 0 0 0 1px #36c;
}

.mw-editform-legacy .editButtons input:first-child {
	margin-left: 0.1em;
}

/* Adjustments to edit form elements (only when $wgOOUIEditPage is true) */
.mw-editform-ooui #editpage-copywarn {
	line-height: 1.26;
}

.mw-editform-ooui #wpSummary {
	max-width: none;
}

.mw-editform-ooui #wpSummaryLabel {
	margin: 0;
}

.mw-editform-ooui .editCheckboxes .oo-ui-fieldLayout {
	margin-right: 1em;
}

.mw-editform-ooui .editHelp {
	margin-left: 0.5em;
	vertical-align: middle;
}

.mw-editform-ooui .editHelp a {
	font-weight: bold;
}

.mw-editform-ooui .editOptions {
	border-radius: 0 0 2px 2px;
}
