MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Green Campus Wiki
Keine Bearbeitungszusammenfassung
Markierung: Manuelle Zurücksetzung
Keine Bearbeitungszusammenfassung
Zeile 30: Zeile 30:
/* to be used with Vorlage:CSSMarker */
/* to be used with Vorlage:CSSMarker */


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


/* make markers visible in editors */
[contenteditable="true"] .marker {
[contenteditable="true"] .marker {
   display: unset;
   display: unset;
Zeile 41: Zeile 43:
   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;
}
}

Version vom 17. März 2024, 15:57 Uhr

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

@media screen {
  .color-left, .color-middle, .color-right { background-color: #097609; }
  #mw-content-container { border-bottom-color: #097609; }
}

/* 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 */
/* to be used with Vorlage:CheckBox and Vorlage:CSSMarker */

:has(> input:checked) + :has(> .hide-when-checked) {
  display:none
}
:has(> input:not(:checked)) + :has(> .hide-when-unchecked) {
  display:none
}
:has(> input:not(:checked)) ~ :has(> .show-when-all-checked) {
  display:none
}
:has(> .hide-when-all-checked) {
  display:none
}
:has(> input:not(:checked)) ~ :has(> .hide-when-all-checked) {
  display:unset
}

/* 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: unset;
  border: 1px solid gray;
  border-radius: .2em;
  padding-left: .2em;
  padding-right: .2em;
  background-color: lightgray;
}

/* make sure parents of markers are always visible */
[contenteditable="true"] :has(.marker) {
  display: unset !important;
}