MediaWiki

MediaWiki:Common.css

From Illustrations in German Translations of Mark Twain's Works

Revision as of 15:38, 15 July 2025 by HMHTEST (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Importiere die DataTables und Swiper Styles */
@import url('https://unpkg.com/swiper/swiper-bundle.min.css');
@import url('https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css');
@import url('https://cdn.datatables.net/datetime/1.5.1/css/dataTables.dateTime.min.css');
@import url('https://cdn.datatables.net/searchbuilder/1.6.0/css/searchBuilder.dataTables.min.css');

.ausklapp-menublock {
  border: 1px solid #ccc;
  padding: 1em;
  background-color: #F4F4F4;
  max-width: 500px;
  border-radius: 6px;
}

.ausklapp-button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.5em 0;
  padding: 0.5em;
  background-color: #FFF2E6;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/*.ausklapp-button:hover {
  background-color: #005a9e;
}
*/

.ausklapp-button.sub {
  background-color: #FFF2E6;
  margin-left: 1em;
  font-size: 75%;
}

.ausklapp-inhalt {
  display: none;
  margin-left: 1em;
}

.ausklapp-inhalt.sub {
  margin-left: 2em;
}

.ausklapp-inhalt a {
  display: block;
  margin: 0.3em 0;
  text-decoration: none;
  color: #333333;
}

.ausklapp-inhalt a:hover {
  text-decoration: underline;
}

/* Oberste Ebene (Hauptbuttons) */
.ausklapp-button {
  color: #333333; /* Dunkelblau */
}

/* Unterpunkte (zweite Ebene) */
.ausklapp-button.sub {
  color: #333333; /* etwas heller */
}

/* Links innerhalb der Unter-Unterpunkte */
.ausklapp-inhalt.sub a,
.link-entry {
  color: #333333;
}

/* Linkpfeil-Symbole */
.link-icon {
  color: #333333;
}

.ausklapp-button {
  white-space: nowrap;
}

.ausklapp-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.ausklapp-button .link-icon {
  text-decoration: none;
  font-size: 0.9em;
  margin-left: auto;
  color: #0059b3;
}

.ausklapp-menublock {
  flex: 1; /* gleichmäßig verteilen */
  /* alternativ: width: 50%; */
}

.ausklapp-menublock {
  font-family: "Roboto", sans-serif;
}




/* Allgemeines Styling für die Tabelle */
/* #catalog {
 /*   width: 100%;
 /*   table-layout: auto !important; /* Flexibel für DataTables und schmalere Spalten */
  /*  border-collapse: collapse; /* Entfernt unnötige Ränder */
/*

/* Spaltenbreiten anpassen und Schmaler machen */
#catalog th, #catalog td {
    padding: 1px 4px;
    line-height: 1.2;         /* kleinere Zeilenhöhe */
    text-align: left;  /* Standardtextausrichtung für alle Zellen */
}

#catalog th:nth-child(1), #catalog td:nth-child(1) {
    width: 11%; /* Book */
}

#catalog th:nth-child(2), #catalog td:nth-child(2) {
    width: 4%; /* Year */
    text-align: center;  /* Jahr zentrieren */
}

#catalog th:nth-child(3), #catalog td:nth-child(3) {
    width: 7%; /* Illustrator */
}

#catalog th:nth-child(4), #catalog td:nth-child(4) {
    width: 5%; /* Chpt in Orig */
    text-align: center;
}

#catalog th:nth-child(5), #catalog td:nth-child(5) {
    width: 5%; /* Chpt in this Ed. */
    text-align: center;
}

#catalog th:nth-child(6), #catalog td:nth-child(6) {
    width: 5%; /* Ill. in Chpt. */
    text-align: center;
}

#catalog th:nth-child(7), #catalog td:nth-child(7) {
    width: 12%; /* Illustration Title */
    text-align: center;
}

#catalog th:nth-child(8), #catalog td:nth-child(8) {
    width: 11%; /* Tags */
    text-align: center;
}

#catalog th:nth-child(9), #catalog td:nth-child(9) {
    width: 8%; /* ID */
}

/* Entferne horizontales Scrollen und passe das Design an */
#catalog_wrapper {
    overflow-x: hidden; /* Kein horizontales Scrollen */
}

/* Optional: Passe den Abstand der Spalten an */
#catalog th, #catalog td {
    padding: 1px 1px;
}

/* DataTables Filter-Box und Pagination nach oben verschieben */
#catalog_filter {
    margin-bottom: -2px;
    margin-top: -18px;
    margin-right: 5px;
    float: right;
}
#catalog_length {
    float: left; /* Zeige X Einträge nach rechts verschieben */
}

#catalog_length select {
    padding-right: 20px;
}






/* Verhindert, dass die DataTable das Layout stört */
.dataTables_wrapper {
    width: 140%;
    overflow: visible; /* Entfernt das äußere Scrollen */
}

/* Kompaktere Zeilen für DataTables */
#catalog.dataTable tbody td,
#catalog.dataTable thead th {
    padding: 3px 8px !important;
    line-height: 1.2 !important;
    height: auto !important;
    vertical-align: middle !important;
}

/* Eingabefelder in DataTables-Kopfzeile sauber einpassen */
#catalog thead input {
    box-sizing: border-box;       /* verhindert, dass padding + border die Größe aufblähen */
    width: 100%;                  /* volle Breite der Zelle */
    height: 100%;                 /* passt sich der Zellenhöhe an */
    padding: 4px;                 /* kleiner Innenabstand */
    margin: 0;                    /* verhindert vertikales Überlappen */
    font-size: 13px;              /* kleiner und lesbarer */
    border: 1px solid #ccc;       /* optisch passend zur Tabelle */
}


#image-hover-preview {
    pointer-events: none;
}
#image-hover-preview img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

#galleryContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

#galleryContainer img {
    max-width: 200px;
    margin: 10px;
    cursor: pointer;
}

.mw-gallery-slideshow {
  max-width: 600px;
  margin: 0 auto;
}

.mw-gallery-slideshow .mw-gallery-slideshow-image img {
  max-height: 400px;
  object-fit: contain;
}
.slideshow-row {
  display: flex;
  gap: 20px; /* Abstand zwischen Slideshows */
  flex-wrap: wrap; /* Falls Bildschirm zu schmal, untereinander */
  justify-content: center;
}

.slideshow-box {
  max-width: 400px;
  flex: 1 1 auto;
}
.slideshow-row {
  display: flex;
  gap: 20px; /* Abstand zwischen den Slideshows */
  justify-content: center;
  flex-wrap: wrap; /* optional, falls schmaler Bildschirm */
}

.slideshow-box {
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert Inhalte (inkl. Überschrift) */
  width: 320px; /* gleiche Breite wie Slideshow, anpassen falls nötig */
}

.slideshow-box h3 {
  text-align: center;
  margin-bottom: 0.5em;
  font-size: 1.2em;
}