MediaWiki:Common.css: Unterschied zwischen den Versionen
Admin (Diskussion | Beiträge) Die Seite wurde neu angelegt: „→Das folgende CSS wird für alle Benutzeroberflächen geladen.: →===== Site Announcement Modal Styles =====: .mw-site-announcement-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 10000; →über allem: } .mw-site-announcement-modal { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); max-width: 640px; width: calc(100% - 32px); background: #fff; color: #202122; border:…“ |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 81: | Zeile 81: | ||
.mw-ui-progressive { | .mw-ui-progressive { | ||
border-color: #36c; | 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-site-announcement-img { | |||
max-width: 100%; | |||
height: auto; | |||
display: block; | |||
margin: 0 auto 8px; | |||
} | } | ||
Version vom 31. August 2025, 22:50 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* ===== Site Announcement Modal Styles ===== */
.mw-site-announcement-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.45);
z-index: 10000; /* über allem */
}
.mw-site-announcement-modal {
position: fixed;
inset: 50% auto auto 50%;
transform: translate(-50%, -50%);
max-width: 640px;
width: calc(100% - 32px);
background: #fff;
color: #202122;
border: 1px solid #a2a9b1;
border-radius: 12px;
box-shadow: 0 8px 28px rgba(0,0,0,0.25);
z-index: 10001;
display: flex;
flex-direction: column;
}
@media (prefers-color-scheme: dark) {
.mw-site-announcement-modal {
background: #1b1b1d;
color: #e6e6e6;
border-color: #32373d;
}
}
.mw-site-announcement-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid #eaecf0;
}
.mw-site-announcement-header h2 {
margin: 0;
font-size: 1.125rem;
line-height: 1.3;
}
.mw-site-announcement-close {
border: none;
background: transparent;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
color: inherit;
}
.mw-site-announcement-content {
padding: 16px;
font-size: 0.95rem;
}
.mw-site-announcement-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 12px 16px 16px;
border-top: 1px solid #eaecf0;
}
/* Minimaler Button-Style, falls mw-ui nicht geladen ist */
.mw-ui-button {
appearance: none;
border: 1px solid #a2a9b1;
background: #f8f9fa;
padding: 8px 12px;
border-radius: 8px;
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-site-announcement-img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto 8px;
}