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. */
/* ===== Popup Hintergrund ===== */
.mw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
}

/* ===== Popup Container ===== */
.mw-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 95%;       /* vorher 90% → mehr Breite erlaubt */
  width: 600px;         /* vorher 520px → breiter */
  padding: 50px 30px 30px; /* oben & seitlich mehr Platz */
  border-radius: 10px;
  z-index: 10001;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  max-height: 92vh;     /* leicht größer als vorher */
  overflow-y: auto;     /* Scrollbar, falls sehr viel Text */
}

/* ===== Logo-Bereich mit Herz ===== */
.mw-popup-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.mw-popup-logo img {
  max-width: 110px; /* Logo leicht größer */
  position: relative;
  z-index: 2;
}

/* ===== Herz-Hintergrund – Desktop ===== */
.mw-popup-heart {
  position: absolute;
  top: 22%;           /* höher positioniert */
  left: 50%;
  width: 120px;
  height: 120px;
  background: red;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
  z-index: 1;
  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: translate(-50%, -50%) rotate(-45deg) scale(1); }
  50%      { transform: translate(-50%, -50%) rotate(-45deg) scale(1.1); }
}

/* ===== Titel & Text ===== */
.mw-popup-modal h2 {
  margin: 6px 0 10px;
  font-size: 1.35em; /* leicht größer */
}
.mw-popup-content p {
  margin: 0.6em 0;
  font-size: 1.08em;
  line-height: 1.55;
  text-align: center;
}

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

/* ===== Mobile-Anpassungen ===== */
@media (max-width: 480px) {
  .mw-popup-modal {
    width: calc(100% - 20px);
    padding: 40px 16px 16px; /* oben mehr Platz als vorher */
  }
  .mw-popup-logo img {
    max-width: 90px;
  }
  .mw-popup-heart {
    top: 18%;
    width: 90px;
    height: 90px;
  }
  .mw-popup-heart::before,
  .mw-popup-heart::after {
    width: 90px;
    height: 90px;
  }
  .mw-popup-heart::before { top: -45px; }
  .mw-popup-heart::after  { left: 45px; }
}