MediaWiki:Common.css: Unterschied zwischen den Versionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 465: | Zeile 465: | ||
/* | /* Overlay & Modal */ | ||
. | .mwnews-overlay{ | ||
position: fixed; inset: 0; | position:fixed; inset:0; | ||
background: rgba(0,0,0, | background:rgba(0,0,0,.45); | ||
z-index: 10000; | z-index:10000; | ||
} | } | ||
. | .mwnews-modal{ | ||
position: fixed; top: 50%; left: 50%; | position:fixed; top:50%; left:50%; | ||
transform: translate(-50%, -50%); | transform:translate(-50%,-50%); | ||
background: #fff; | background:#fff; color:#111; | ||
max-width: 96%; width: | max-width:96%; width:760px; | ||
padding: 22px 26px 26px; | padding:22px 26px 26px; | ||
border-radius: 14px; | border-radius:14px; | ||
z-index: 10001; | z-index:10001; | ||
text-align: center; | text-align:center; | ||
box-shadow: 0 10px 28px rgba(0,0,0, | box-shadow:0 10px 28px rgba(0,0,0,.35); | ||
max-height: 94vh; overflow-y: auto; | max-height:94vh; overflow-y:auto; | ||
} | } | ||
.mwnews-modal h2{ margin:8px 0 6px; font-size:1.35em; } | |||
.mwnews-intro{ margin:.5em 0 1em; font-size:1.06em; line-height:1.5; } | |||
/* | /* Karten */ | ||
. | .mwnews-cards{ | ||
display:flex; gap:12px; flex-wrap:wrap; justify-content:center; | |||
} | } | ||
. | .mwnews-card{ | ||
display:block; width:300px; text-decoration:none; color:inherit; | |||
background:#f8f9fa; border:1px solid #e3e6e8; border-radius:10px; overflow:hidden; | |||
transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; | |||
box-shadow:0 3px 8px rgba(0,0,0,.12); | |||
background: | |||
} | } | ||
.mwnews-card:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.18); border-color:#d5dadd; } | |||
.mwnews-thumb img{ display:block; width:100%; height:210px; object-fit:cover; } | |||
.mwnews-meta{ padding:10px 12px; } | |||
.mwnews-title{ font-weight:700; font-size:1.02em; margin-bottom:6px; } | |||
.mwnews-cta{ color:#36c; font-weight:600; } | |||
/* Buttons */ | /* Buttons */ | ||
. | .mwnews-btnrow{ display:flex; justify-content:center; gap:10px; margin-top:12px; } | ||
. | .mwnews-close{ | ||
padding: 10px 16px; border: | padding:10px 16px; border:0; background:#36c; color:#fff; | ||
border-radius: 6px; cursor: pointer; font-size: 1em; | border-radius:6px; cursor:pointer; font-size:1em; font-weight:600; | ||
} | } | ||
.mwnews-close:hover{ background:#258; } | |||
/* Mobil */ | /* Mobil */ | ||
@media (max-width: | @media (max-width:640px){ | ||
. | .mwnews-modal{ width:calc(100% - 20px); padding:16px; } | ||
. | .mwnews-card{ width:100%; } | ||
. | .mwnews-thumb img{ height:240px; object-fit:contain; background:#000; } | ||
} | } | ||