MediaWiki:Common.less/editor.less

From Old School RuneScape Wiki
Jump to: navigation, search
/* Change the look of the editor */

// Make code-editors 100px (~11 lines of code) taller than the default 400px (~19.9 lines)
input[name="model"] {
	&[value="Scribunto"],
	&[value="css"],
	&[value="less"],
	&[value="javascript"],
	&[value="json"] {
		& ~ .wikiEditor-ui #wpTextbox1 {
			height: 600px;
		}
	}
}

// Give LUA console styling consistent with the editor
#mw-scribunto-input,
#mw-scribunto-output {
	padding: 3px; // make caret appear even at the start of the line
	font-family: monospace;
	font-size: 13px;
	line-height: 1.5em;
}

// TemplateData dialog template description textarea
.tdg-templateDataDialog-listParamsPanel textarea.oo-ui-textInputWidget-autosized {
	resize: vertical;
}

// Abusefilter editor
#wpAceFilterEditor {
	resize: horizontal;
}

// hide userspace upload warning by default, and hide generic 'own work' label on userspace
.warn-userupload,
.ns-2 .upload-own-work {
	display: none;
}
// in userspace, replace 'own work' label with userspace upload warning
.ns-2 .warn-userupload {
	display: inline;
}

// Page creation preload buttons list
ul.preload-list {
    margin-left: 0;
    
	li {
	    list-style: none;
	    display: inline-block;
	    margin: 0.3em;
	}
}

// Batch Upload boxes
textarea[name="wfUploadDescription"] {
	height: 3em;
}