Jump to content

MediaWiki:Common.css: Difference between revisions

From Drifters Almanac
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Match the Select2 (tokens input) to the rest of the form */
.select2-container--default .select2-selection--multiple {
  background-color: #2a2a2a !important;
  color: #d1d1d1 !important;
  border: 1px solid #555 !important;
}


$(document).ready(function () {
/* Token styling inside the multi-value field */
   $('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus');
.select2-container--default .select2-selection--multiple .select2-selection__choice {
});
   background-color: #3a3a3a !important;
  color: #eee !important;
  border: 1px solid #666 !important;
}


/* Ensure both <form> and <div> wrappers for #forminput are styled */
/* Dropdown suggestion list (autocompletion) */
form.createbox, div.createbox {
.select2-container--default .select2-results > .select2-results__options {
  display: flex;
   background-color: #2a2a2a !important;
  flex-direction: column;
   color: #d1d1d1 !important;
  align-items: center;
   border: 1px solid #444;
   justify-content: center;
   margin: 0 auto;
   width: fit-content;
}
}


/* Style the text input */
/* Highlighted option in suggestions */
form.createbox input[name="wpNewTitle"],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
div.createbox input[name="wpNewTitle"] {
  background-color: #3d553d !important;
   width: 300px;
  color: #fff !important;
   padding: 0.4em;
}
   margin-bottom: 0.6em;
 
   text-align: center;
.select2-container--default .select2-selection--multiple .select2-search__field {
   background-color: #111;
   background-color: #2a2a2a !important;
   color: #d1d1d1 !important;
}
 
.select2-container--default .select2-results__option {
  background-color: #2a2a2a;
   color: #d1d1d1;
}
 
 
 
 
/* === Create Center Accordion === */
.cc-accordion .cc-panel {
   border-left: 5px solid #4a774a;
   background-color: #222;
  border-radius: 8px;
  margin-bottom: 1em;
  overflow: hidden;
   color: #ccc;
   color: #ccc;
  border: 1px solid #444;
}
}


/* Style the submit button */
/* Collapse header (always visible) */
form.createbox input[type="submit"],
.cc-accordion .cc-panel .cc-header {
div.createbox input[type="submit"] {
   background-color: #2a2a2a;
   background-color: #2e4e2e;
   padding: 0.75em 1em;
  color: #eee;
   font-size: 1.2em;
  border: 1px solid #4a774a;
   color: #fff;
   padding: 0.4em 1em;
   border-radius: 4px;
   font-weight: bold;
   cursor: pointer;
   cursor: pointer;
}
/* Hidden body—shown when panel is expanded */
.cc-accordion .cc-panel .mw-collapsible-content {
  padding: 1em;
  display: none;
}
/* When expanded, show the body */
.cc-accordion .cc-panel.mw-collapsible-expanded .mw-collapsible-content {
  display: block;
}
}

Latest revision as of 17:32, 27 June 2025

/* CSS placed here will be applied to all skins */

/* Match the Select2 (tokens input) to the rest of the form */
.select2-container--default .select2-selection--multiple {
  background-color: #2a2a2a !important;
  color: #d1d1d1 !important;
  border: 1px solid #555 !important;
}

/* Token styling inside the multi-value field */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #3a3a3a !important;
  color: #eee !important;
  border: 1px solid #666 !important;
}

/* Dropdown suggestion list (autocompletion) */
.select2-container--default .select2-results > .select2-results__options {
  background-color: #2a2a2a !important;
  color: #d1d1d1 !important;
  border: 1px solid #444;
}

/* Highlighted option in suggestions */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #3d553d !important;
  color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
  background-color: #2a2a2a !important;
  color: #d1d1d1 !important;
}

.select2-container--default .select2-results__option {
  background-color: #2a2a2a;
  color: #d1d1d1;
}




/* === Create Center Accordion === */
.cc-accordion .cc-panel {
  border-left: 5px solid #4a774a;
  background-color: #222;
  border-radius: 8px;
  margin-bottom: 1em;
  overflow: hidden;
  color: #ccc;
}

/* Collapse header (always visible) */
.cc-accordion .cc-panel .cc-header {
  background-color: #2a2a2a;
  padding: 0.75em 1em;
  font-size: 1.2em;
  color: #fff;
  cursor: pointer;
}

/* Hidden body—shown when panel is expanded */
.cc-accordion .cc-panel .mw-collapsible-content {
  padding: 1em;
  display: none;
}

/* When expanded, show the body */
.cc-accordion .cc-panel.mw-collapsible-expanded .mw-collapsible-content {
  display: block;
}