Zum Inhalt springen

MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus ADOS Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 17: Zeile 17:
   max-width: 90%;
   max-width: 90%;
   width: 520px;
   width: 520px;
   padding: 20px;
   padding: 40px 20px 20px; /* mehr Platz oben */
   border-radius: 10px;
   border-radius: 10px;
   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 6px 20px rgba(0,0,0,0.3);
  max-height: 90vh;        /* falls Text länger wird */
  overflow-y: auto;        /* bei Bedarf scrollbar statt abgeschnitten */
}
}


Zeile 28: Zeile 30:
   position: relative;
   position: relative;
   display: inline-block;
   display: inline-block;
   margin-bottom: 10px;
   margin-bottom: 12px;
}
}
.mw-popup-logo img {
.mw-popup-logo img {
   max-width: 100px; /* Desktop-Logo-Größe */
   max-width: 100px; /* Desktop-Logo-Größe */
   position: relative;
   position: relative;
   z-index: 2;
   z-index: 2;       /* über dem Herz */
}
}


/* ===== Herz-Hintergrund – Desktop ===== */
/* ===== Herz-Hintergrund – Desktop ===== */
/* höher positioniert, damit es den Text nicht überdeckt */
.mw-popup-heart {
.mw-popup-heart {
   position: absolute;
   position: absolute;
   top: 42%; /* leicht höher als Mitte */
   top: 24%;           /* deutlich höher als Mitte */
   left: 50%;
   left: 50%;
   width: 120px;
   width: 120px;
   height: 120px;  
   height: 120px;
   background: red;
   background: red;
   transform: translate(-50%, -50%) rotate(-45deg);
   transform: translate(-50%, -50%) rotate(-45deg);
Zeile 53: Zeile 56:
   content: "";
   content: "";
   position: absolute;
   position: absolute;
   width: 120px;
   width: 120px;
   height: 120px;  
   height: 120px;
   background: red;
   background: red;
   border-radius: 50%;
   border-radius: 50%;
}
}
.mw-popup-heart::before {
.mw-popup-heart::before { top: -60px; left: 0; }
  top: -60px;  
.mw-popup-heart::after { left: 60px; top: 0; }
  left: 0;
}
.mw-popup-heart::after {
  left: 60px;  
  top: 0;
}


/* ===== Puls-Animation ===== */
/* ===== Puls-Animation ===== */
Zeile 75: Zeile 72:
/* ===== Titel & Text ===== */
/* ===== Titel & Text ===== */
.mw-popup-modal h2 {
.mw-popup-modal h2 {
   margin: 0 0 0.6em;
   margin: 6px 0 10px;
   font-size: 1.25em;
   font-size: 1.25em;
}
}
.mw-popup-content p {
.mw-popup-content p {
   margin: 0.5em 0;
   margin: 0.6em 0;
   font-size: 1.05em;
   font-size: 1.05em;
   line-height: 1.45;
   line-height: 1.5;
   text-align: center;
   text-align: center;
}
}
Zeile 95: Zeile 92:
   cursor: pointer;
   cursor: pointer;
}
}
.mw-popup-close:hover {
.mw-popup-close:hover { background: #258; }
  background: #258;
}


/* ===== Mobile-Anpassung ===== */
/* ===== Mobile-Anpassungen ===== */
@media (max-width: 480px) {
@media (max-width: 480px) {
   .mw-popup-modal {
   .mw-popup-modal {
     width: calc(100% - 32px);
     width: calc(100% - 32px);
     padding: 16px;
     padding: 36px 16px 16px; /* auch mobil oben mehr Platz */
   }
   }
   .mw-popup-logo img {
   .mw-popup-logo img {
     max-width: 80px; /* kleineres Logo */
     max-width: 84px; /* etwas kleineres Logo */
   }
   }
   .mw-popup-heart {
   .mw-popup-heart {
     top: 38%; /* noch höher setzen auf Mobile */
     top: 20%;   /* noch höher auf Mobile */
     width: 90px;
     width: 92px;
     height: 90px;
     height: 92px;
   }
   }
   .mw-popup-heart::before,
   .mw-popup-heart::before,
   .mw-popup-heart::after {
   .mw-popup-heart::after {
     width: 90px;
     width: 92px;
     height: 90px;
     height: 92px;
   }
   }
   .mw-popup-heart::before { top: -45px; }
   .mw-popup-heart::before { top: -46px; }
   .mw-popup-heart::after  { left: 45px; }
   .mw-popup-heart::after  { left: 46px; }
}
}

Version vom 1. September 2025, 22:25 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: 90%;
  width: 520px;
  padding: 40px 20px 20px; /* mehr Platz oben */
  border-radius: 10px;
  z-index: 10001;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  max-height: 90vh;         /* falls Text länger wird */
  overflow-y: auto;         /* bei Bedarf scrollbar statt abgeschnitten */
}

/* ===== Logo-Bereich mit Herz ===== */
.mw-popup-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.mw-popup-logo img {
  max-width: 100px; /* Desktop-Logo-Größe */
  position: relative;
  z-index: 2;       /* über dem Herz */
}

/* ===== Herz-Hintergrund – Desktop ===== */
/* höher positioniert, damit es den Text nicht überdeckt */
.mw-popup-heart {
  position: absolute;
  top: 24%;           /* deutlich höher als Mitte */
  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.25em;
}
.mw-popup-content p {
  margin: 0.6em 0;
  font-size: 1.05em;
  line-height: 1.5;
  text-align: center;
}

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

/* ===== Mobile-Anpassungen ===== */
@media (max-width: 480px) {
  .mw-popup-modal {
    width: calc(100% - 32px);
    padding: 36px 16px 16px; /* auch mobil oben mehr Platz */
  }
  .mw-popup-logo img {
    max-width: 84px; /* etwas kleineres Logo */
  }
  .mw-popup-heart {
    top: 20%;   /* noch höher auf Mobile */
    width: 92px;
    height: 92px;
  }
  .mw-popup-heart::before,
  .mw-popup-heart::after {
    width: 92px;
    height: 92px;
  }
  .mw-popup-heart::before { top: -46px; }
  .mw-popup-heart::after  { left: 46px; }
}