MediaWiki:Vector.less/editor.less

From RuneRealm Wiki
Jump to navigation Jump to 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; } } }

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

// Abusefilter editor

  1. 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; }

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

// space between edit box and mediawiki warnings

  1. editform {

margin-top: 1.25em; }

/* ===========================

      Lua debug console
  =========================== */

// Give Lua console styling consistent with the editor

  1. mw-scribunto-input,
  2. 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; }

  1. mw-scribunto-input {

background-color: var(--ooui-input); border-color: var(--ooui-input-border); }

root {

--scribuntoconsole-input: @venice-blue; --scibuntoconsole-print: @olive; --scribuntoconsole-error: @old-brick; --scribuntoconsole-message: @la-palma; --scribuntoconsole-tabcomplete: @seance; --scribuntoconsole-clear: @old-brick; }

.mw-scribunto {

&-console-fieldset { color: inherit; background-color: var(--ooui-interface); border-color: var(--ooui-interface-border); }

// remove white backgrounds &-normalOutput, &-print, &-error, &-propList, &-message, &-tabcomplete { background: none; }

// console input and echoes &-input { color: var(--scribuntoconsole-input); }

&-normalOutput { color: inherit; }

&-print { color: var(--scibuntoconsole-print); }

&-error { color: var(--scribuntoconsole-error); }

&-propList, &-message { color: var(--scribuntoconsole-message); }

&-tabcomplete { color: var(--scribuntoconsole-tabcomplete); }

&-clear { color: var(--scribuntoconsole-clear); border-bottom-color: var(--scribuntoconsole-clear); }

}