Zum Inhalt springen

MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus ADOS Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 15: Zeile 15:
   transform: translate(-50%, -50%);
   transform: translate(-50%, -50%);
   background: #fff;
   background: #fff;
   max-width: 95%;      /* vorher 90% → mehr Breite erlaubt */
   max-width: 96%;      /* breiter als vorher */
   width: 600px;        /* vorher 520px → breiter */
   width: 640px;        /* fester Wert auf Desktop */
   padding: 50px 30px 30px; /* oben & seitlich mehr Platz */
   padding: 80px 40px 30px; /* sehr viel Platz oben */
   border-radius: 10px;
   border-radius: 12px;
   z-index: 10001;
   z-index: 10001;
   text-align: center;
   text-align: center;
   box-shadow: 0 6px 20px rgba(0,0,0,0.3);
   box-shadow: 0 8px 24px rgba(0,0,0,0.35);
   max-height: 92vh;    /* leicht größer als vorher */
   max-height: 94vh;    /* fast volle Höhe */
   overflow-y: auto;    /* Scrollbar, falls sehr viel Text */
   overflow-y: auto;    /* scrollen, falls zu lang */
}
}


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


/* ===== Herz-Hintergrund – Desktop ===== */
/* ===== Herz-Hintergrund ===== */
.mw-popup-heart {
.mw-popup-heart {
   position: absolute;
   position: absolute;
   top: 22%;           /* höher positioniert */
   top: -20px; /* nach oben rausziehen */
   left: 50%;
   left: 50%;
   width: 120px;
   width: 120px;
   height: 120px;
   height: 120px;
   background: red;
   background: red;
   transform: translate(-50%, -50%) rotate(-45deg);
   transform: translateX(-50%) rotate(-45deg);
   transform-origin: center;
   transform-origin: center;
   z-index: 1;
   z-index: 1;
Zeile 65: Zeile 65:
/* ===== Puls-Animation ===== */
/* ===== Puls-Animation ===== */
@keyframes pulse {
@keyframes pulse {
   0%, 100% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
   0%, 100% { transform: translateX(-50%) rotate(-45deg) scale(1); }
   50%      { transform: translate(-50%, -50%) rotate(-45deg) scale(1.1); }
   50%      { transform: translateX(-50%) rotate(-45deg) scale(1.1); }
}
}


/* ===== Titel & Text ===== */
/* ===== Titel & Text ===== */
.mw-popup-modal h2 {
.mw-popup-modal h2 {
   margin: 6px 0 10px;
   margin: 8px 0 12px;
   font-size: 1.35em; /* leicht größer */
   font-size: 1.35em;
}
}
.mw-popup-content p {
.mw-popup-content p {
Zeile 98: Zeile 98:
   .mw-popup-modal {
   .mw-popup-modal {
     width: calc(100% - 20px);
     width: calc(100% - 20px);
     padding: 40px 16px 16px; /* oben mehr Platz als vorher */
     padding: 70px 16px 16px; /* auch mobil mehr Platz oben */
   }
   }
   .mw-popup-logo img {
   .mw-popup-logo img {
Zeile 104: Zeile 104:
   }
   }
   .mw-popup-heart {
   .mw-popup-heart {
     top: 18%;
     top: -10px;
     width: 90px;
     width: 100px;
     height: 90px;
     height: 100px;
   }
   }
   .mw-popup-heart::before,
   .mw-popup-heart::before,
   .mw-popup-heart::after {
   .mw-popup-heart::after {
     width: 90px;
     width: 100px;
     height: 90px;
     height: 100px;
   }
   }
   .mw-popup-heart::before { top: -45px; }
   .mw-popup-heart::before { top: -50px; }
   .mw-popup-heart::after  { left: 45px; }
   .mw-popup-heart::after  { left: 50px; }
}
}

Version vom 1. September 2025, 22:35 Uhr

/* 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: 96%;       /* breiter als vorher */
  width: 640px;         /* fester Wert auf Desktop */
  padding: 80px 40px 30px; /* sehr viel Platz oben */
  border-radius: 12px;
  z-index: 10001;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  max-height: 94vh;     /* fast volle Höhe */
  overflow-y: auto;     /* scrollen, falls zu lang */
}

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

/* ===== Herz-Hintergrund ===== */
.mw-popup-heart {
  position: absolute;
  top: -20px; /* nach oben rausziehen */
  left: 50%;
  width: 120px;
  height: 120px;
  background: red;
  transform: translateX(-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: translateX(-50%) rotate(-45deg) scale(1); }
  50%      { transform: translateX(-50%) rotate(-45deg) scale(1.1); }
}

/* ===== Titel & Text ===== */
.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;
}

/* ===== 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: 70px 16px 16px; /* auch mobil mehr Platz oben */
  }
  .mw-popup-logo img {
    max-width: 90px;
  }
  .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; }
}