MediaWiki:Common.css: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* ===== Site Announcement Modal Styles ===== */
/* ===== Popup Hintergrund ===== */
.mw-site-announcement-overlay {
.mw-popup-overlay {
   position: fixed;
   position: fixed;
   inset: 0;
   inset: 0;
   background: rgba(0,0,0,0.45);
   background: rgba(0,0,0,0.4);
   z-index: 10000; /* über allem */
   z-index: 10000;
}
}


.mw-site-announcement-modal {
/* ===== Popup Container ===== */
.mw-popup-modal {
   position: fixed;
   position: fixed;
   inset: 50% auto auto 50%;
   top: 50%;
  left: 50%;
   transform: translate(-50%, -50%);
   transform: translate(-50%, -50%);
  max-width: 640px;
  width: calc(100% - 32px);
   background: #fff;
   background: #fff;
   color: #202122;
   max-width: 90%;
   border: 1px solid #a2a9b1;
   padding: 20px;
   border-radius: 12px;
   border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
   z-index: 10001;
   z-index: 10001;
   display: flex;
   text-align: center;
   flex-direction: column;
   box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
}


@media (prefers-color-scheme: dark) {
/* ===== Logo-Bereich mit Herz ===== */
  .mw-site-announcement-modal {
.mw-popup-logo {
    background: #1b1b1d;
  position: relative;
    color: #e6e6e6;
  display: inline-block;
    border-color: #32373d;
  margin-bottom: 10px;
  }
}
}


.mw-site-announcement-header {
.mw-popup-logo img {
   display: flex;
   max-width: 120px;
  align-items: center;
   position: relative;
  justify-content: space-between;
   z-index: 2;
   padding: 12px 16px;
   border-bottom: 1px solid #eaecf0;
}
}


.mw-site-announcement-header h2 {
/* Herz-Hintergrund */
   margin: 0;
.mw-popup-heart {
   font-size: 1.125rem;
  position: absolute;
   line-height: 1.3;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  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: 140px;
  height: 140px;
  background: red;
  border-radius: 50%;
}
.mw-popup-heart::before {
  top: -70px;
  left: 0;
}
.mw-popup-heart::after {
  left: 70px;
  top: 0;
}
}


.mw-site-announcement-close {
/* Puls-Animation */
   border: none;
@keyframes pulse {
   background: transparent;
   0%, 100% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
  font-size: 1.5rem;
   50% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.1); }
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
}


.mw-site-announcement-content {
/* ===== Überschrift ===== */
   padding: 16px;
.mw-popup-modal h2 {
   font-size: 0.95rem;
   margin: 0 0 0.5em;
   font-size: 1.25em;
}
}


.mw-site-announcement-footer {
/* ===== Textbereich ===== */
   display: flex;
.mw-popup-content p {
   justify-content: flex-end;
   margin: 0.5em 0;
   gap: 8px;
   font-size: 1.05em;
  padding: 12px 16px 16px;
   line-height: 1.4;
   border-top: 1px solid #eaecf0;
   text-align: center;
}
}


/* Minimaler Button-Style, falls mw-ui nicht geladen ist */
/* ===== Button ===== */
.mw-ui-button {
.mw-popup-close {
   appearance: none;
   margin-top: 1em;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
   padding: 8px 12px;
   padding: 8px 12px;
   border-radius: 8px;
  border: none;
  background: #36c;
  color: white;
   border-radius: 4px;
   cursor: pointer;
   cursor: pointer;
  font-size: 0.95rem;
}
.mw-ui-button:hover { background: #fff; }
.mw-ui-progressive {
  border-color: #36c;
}
/* Zusätzliche Styles für Bildvorschau */
.mw-site-announcement-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mw-site-announcement-figure {
  margin: 0;
  padding: 8px 16px 16px;
}
}
 
.mw-popup-close:hover {
.mw-site-announcement-img {
   background: #258;
   max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}
}