MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Green Campus Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */


@media screen {
/* ------------------------------------------------------------ */
  .color-left, .color-middle, .color-right { background-color: #097609; }
/* CSS for adding the image resolution upload limit to the form */
   #mw-content-container { border-bottom-color: #097609; }
/* This is silly, but I don't want to patch the code to do this */
/* The escaped space (\0020) is necessary because MediaWiki removes it otherwise */
tr.mw-htmlform-field-UploadSourceField + tr > td::after {
  padding-left: 1em;
   content: "Maximale Auflösung:\0020 20 MP";
}
}


/* ------------------------------------------------------ */
/* CSS for hiding and showing paragraphs after checkboxes */
/* CSS for hiding and showing paragraphs after checkboxes */
/* this is here because sanitized-css doesn't allow some of the tricks used here so it can't be in a template */
/* this is here because templatestyles doesn't allow some of the tricks used here */
/* to be used with Vorlage:CheckBox and Vorlage:CSSMarker */
/* to be used with Vorlage:CheckBox and Vorlage:CSSMarker */


/* hide paragraphs containing .hide-when-checked when a checkbox in the previous paragraph is checked */
:has(> input:checked) + :has(> .hide-when-checked) {
:has(> input:checked) + :has(> .hide-when-checked) {
   display:none
   display: none;
}
}
/* hide paragraphs containing .hide-when-unchecked when a checkbox in the previous paragraph is unchecked */
:has(> input:not(:checked)) + :has(> .hide-when-unchecked) {
:has(> input:not(:checked)) + :has(> .hide-when-unchecked) {
   display:none
   display: none;
}
}
/* ensure .hide-when-unchecked is still visible in the editor */
[contenteditable="true"] :has(> input:not(:checked)) + :has(> .hide-when-unchecked) {
  display: revert;
}
/* hide paragraphs containing .show-when-all-checked when at least one checkbox in a previous paragraph is unchecked */
:has(> input:not(:checked)) ~ :has(> .show-when-all-checked) {
:has(> input:not(:checked)) ~ :has(> .show-when-all-checked) {
   display:none
   display: none;
}
 
/* ensure .show-when-all-checked is still visible in the editor */
[contenteditable="true"] :has(> input:not(:checked)) ~ :has(> .show-when-all-checked)  {
  display: revert;
}
}
/* show paragraphs containing .hide-when-all-checked by default */
:has(> .hide-when-all-checked) {
:has(> .hide-when-all-checked) {
   display:none
   display: none;
}
}
/* show paragraphs containing .hide-when-all-checked when at least one checkbox in a previous paragraph is unchecked */
:has(> input:not(:checked)) ~ :has(> .hide-when-all-checked) {
:has(> input:not(:checked)) ~ :has(> .hide-when-all-checked) {
   display:unset
   display: revert;
}
}


Zeile 37: Zeile 61:
/* make markers visible in editors */
/* make markers visible in editors */
[contenteditable="true"] .marker {
[contenteditable="true"] .marker {
   display: unset;
   display: revert;
   border: 1px solid gray;
   border: 1px solid gray;
   border-radius: .2em;
   border-radius: .2em;
Zeile 43: Zeile 67:
   padding-right: .2em;
   padding-right: .2em;
   background-color: lightgray;
   background-color: lightgray;
}
/* make sure parents of markers are always visible */
[contenteditable="true"] :has(.marker) {
  display: unset !important;
}
}

Aktuelle Version vom 25. März 2024, 23:56 Uhr

/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */

/* ------------------------------------------------------------ */
/* CSS for adding the image resolution upload limit to the form */
/* This is silly, but I don't want to patch the code to do this */
/* The escaped space (\0020) is necessary because MediaWiki removes it otherwise */
tr.mw-htmlform-field-UploadSourceField + tr > td::after {
  padding-left: 1em;
  content: "Maximale Auflösung:\0020 20 MP";
}

/* ------------------------------------------------------ */
/* CSS for hiding and showing paragraphs after checkboxes */
/* this is here because templatestyles doesn't allow some of the tricks used here */
/* to be used with Vorlage:CheckBox and Vorlage:CSSMarker */

/* hide paragraphs containing .hide-when-checked when a checkbox in the previous paragraph is checked */
:has(> input:checked) + :has(> .hide-when-checked) {
  display: none;
}

/* hide paragraphs containing .hide-when-unchecked when a checkbox in the previous paragraph is unchecked */
:has(> input:not(:checked)) + :has(> .hide-when-unchecked) {
  display: none;
}

/* ensure .hide-when-unchecked is still visible in the editor */
[contenteditable="true"] :has(> input:not(:checked)) + :has(> .hide-when-unchecked) {
  display: revert;
}

/* hide paragraphs containing .show-when-all-checked when at least one checkbox in a previous paragraph is unchecked */
:has(> input:not(:checked)) ~ :has(> .show-when-all-checked) {
  display: none;
}

/* ensure .show-when-all-checked is still visible in the editor */
[contenteditable="true"] :has(> input:not(:checked)) ~ :has(> .show-when-all-checked)  {
  display: revert;
}

/* show paragraphs containing .hide-when-all-checked by default */
:has(> .hide-when-all-checked) {
  display: none;
}

/* show paragraphs containing .hide-when-all-checked when at least one checkbox in a previous paragraph is unchecked */
:has(> input:not(:checked)) ~ :has(> .hide-when-all-checked) {
  display: revert;
}

/* CSS for showing CSS Markers in the visual editor */
/* this is here because templatestyles aren't loaded properly in the editor it seems */
/* to be used with Vorlage:CSSMarker */

/* make markers invisible on pages */
.marker {
  display: none;
}

/* make markers visible in editors */
[contenteditable="true"] .marker {
  display: revert;
  border: 1px solid gray;
  border-radius: .2em;
  padding-left: .2em;
  padding-right: .2em;
  background-color: lightgray;
}