Zum Inhalt springen

MediaWiki:Common.css

Aus ADOS Wiki

Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* ===== Overlay ===== */
.mw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
}

/* ===== Modal ===== */
.mw-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 96%;
  width: 640px;                 /* Breiterer Bereich auf Desktop */
  padding: 80px 40px 30px;      /* Viel Platz oben für Herz+Logo */
  border-radius: 12px;
  z-index: 10001;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  max-height: 94vh;
  overflow-y: auto;
}

/* ===== Logo + Herz ===== */
.mw-popup-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 56px;          /* Abstand zwischen Logo/Herz und Text */
  z-index: 2;
}
.mw-popup-logo img {
  max-width: 150px;
  position: relative;
  z-index: 2;
}

/* Herz hinter allem */
.mw-popup-heart {
  position: absolute;
  top: -20px;                   /* Herz hochziehen */
  left: 50%;
  width: 120px;
  height: 120px;
  background: red;
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: center;
  z-index: 0;                   /* Hinter Text und Buttons */
  animation: pulse 1.5s infinite;
}
.mw-popup-heart::before,
.mw-popup-heart::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: red;
  border-radius: 50%;
}
.mw-popup-heart::before { top: -60px; left: 0; }
.mw-popup-heart::after  { left: 60px; top: 0; }

/* Puls-Animation */
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) rotate(-45deg) scale(1); }
  50%      { transform: translateX(-50%) rotate(-45deg) scale(1.1); }
}

/* ===== Text & Überschrift (immer vor dem Herz) ===== */
.mw-popup-modal h2,
.mw-popup-content,
.mw-popup-close,
.mw-popup-wiki-button {
  position: relative;
  z-index: 3;
}

.mw-popup-modal h2 {
  margin: 8px 0 12px;
  font-size: 1.35em;
}
.mw-popup-content p {
  margin: 0.6em 0;
  font-size: 1.08em;
  line-height: 1.55;
  text-align: center;
}

/* ===== Buttons: gleich breit & responsiv ===== */
.mw-popup-button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1em;
  flex-wrap: wrap;              /* mobil umbrechen */
}

.mw-popup-close,
.mw-popup-wiki-button {
  flex: 1 1 140px;              /* beide gleich breit, min. Breite */
  text-align: center;
}

.mw-popup-close {
  padding: 10px 16px;
  border: none;
  background: #36c;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}
.mw-popup-close:hover { background: #258; }

.mw-popup-wiki-button {
  padding: 10px 16px;
  background: #f60;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
}
.mw-popup-wiki-button:hover { background: #d85000; }

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .mw-popup-modal {
    width: calc(100% - 20px);
    padding: 70px 16px 16px;
  }
  .mw-popup-logo img {
    max-width: 150px;
  }
  .mw-popup-heart {
    top: -10px;
    width: 100px;
    height: 100px;
  }
  .mw-popup-heart::before,
  .mw-popup-heart::after {
    width: 100px;
    height: 100px;
  }
  .mw-popup-heart::before { top: -50px; }
  .mw-popup-heart::after  { left: 50px; }
}