Jump to content

MediaWiki:Group-sysop.css

From Wikipedia, the free encyclopedia

This page is the CSS for styles that are only visible to administrators. It is dynamically loaded from MediaWiki:Common.js. Major changes to this page should first be proposed on its talk page or the Village pump.

Changes should be tested. They can be tested with your personal skin.css or common.css or in the browser console.

Changes are visible within minutes. Errors you make can disrupt the entire encyclopedia.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Protected pages have text area in light red, to prevent 
   accidental editing by admins who didn't notice the header */
.mw-textarea-protected,
.mw-textarea-protected + div .ace_content,
.mw-textarea-protected + .CodeMirror,
.mw-textarea-protected + .cm-editor,
.ns-8 textarea,
.ns-8 .ace_content,
.ns-8 .CodeMirror,
.ns-8 .cm-editor {
	background-color: hsl(0, 100%, 94%);
}

@media screen {
	html.skin-theme-clientpref-night .mw-textarea-protected,
	html.skin-theme-clientpref-night .mw-textarea-protected + div .ace_content,
	html.skin-theme-clientpref-night .mw-textarea-protected + .CodeMirror,
	html.skin-theme-clientpref-night .mw-textarea-protected + .cm-editor,
	html.skin-theme-clientpref-night .ns-8 textarea,
	html.skin-theme-clientpref-night .ns-8 .ace_content,
	html.skin-theme-clientpref-night .ns-8 .CodeMirror,
	html.skin-theme-clientpref-night .ns-8 .cm-editor {
		background-color: hsl(0, 100%, 10%);
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .mw-textarea-protected,
	html.skin-theme-clientpref-os .mw-textarea-protected + div .ace_content,
	html.skin-theme-clientpref-os .mw-textarea-protected + .CodeMirror,
	html.skin-theme-clientpref-os .mw-textarea-protected + .cm-editor,
	html.skin-theme-clientpref-os .ns-8 textarea,
	html.skin-theme-clientpref-os .ns-8 .ace_content,
	html.skin-theme-clientpref-os .ns-8 .CodeMirror,
	html.skin-theme-clientpref-os .ns-8 .cm-editor {
		background-color: hsl(0, 100%, 10%);
	}
}

/* The "return to Main page" link on [[Special:MovePage]] after
   deleting the target page makes no sense and is in the way. */
.page-Special_MovePage #mw-returnto {
  display: none;
}

/* Show hidden items that have class="sysop-show". */
div.sysop-show,
p.sysop-show {
  display: block !important;
}
span.sysop-show,
small.sysop-show {
  display: inline !important;
}
table.sysop-show {
  display: table !important;
}
li.sysop-show {
  display: list-item !important;
}
/* Avoid accidental delete's and move's */
.page-Main_Page #ca-delete,
.page-Main_Page #ca-move {
    display: none !important;
}