MediaWiki:Common.css: Unterschied zwischen den Versionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 236: | Zeile 236: | ||
} | } | ||
/* | /* Overlay & Modal (verwende deine bestehende Popup-Optik gern weiter) */ | ||
.mw-popup-overlay { | |||
position: fixed; | |||
inset: 0; | |||
background: rgba(0,0,0,0.45); | |||
z-index: 10000; | |||
} | |||
.mw-popup-modal { | |||
position: fixed; | |||
top: 50%; left: 50%; | |||
transform: translate(-50%, -50%); | |||
background: #fff; | |||
max-width: 96%; | |||
width: 760px; | |||
padding: 20px 24px 26px; | |||
border-radius: 14px; | |||
z-index: 10001; | |||
text-align: center; | |||
box-shadow: 0 10px 28px rgba(0,0,0,0.35); | |||
max-height: 94vh; | |||
overflow-y: auto; | |||
} | |||
/* Whisky-Canvas Bühne */ | |||
.mw-fw-canvas-wrap { | .mw-fw-canvas-wrap { | ||
position: relative; | position: relative; | ||
height: | height: 260px; | ||
margin: - | margin: -8px -8px 14px; | ||
border-radius: 10px; | border-radius: 10px; | ||
overflow: hidden; | overflow: hidden; | ||
background: radial-gradient(ellipse at center, # | background: radial-gradient(ellipse at center, #0b1c38 0%, #061025 60%, #03060d 100%); | ||
box-shadow: inset 0 0 | box-shadow: inset 0 0 30px rgba(0,0,0,0.65); | ||
} | } | ||
.mw-fw-canvas { display:block; width:100%; height:100%; } | |||
/* | /* Headline & Intro */ | ||
.mw-popup-modal h2 { | .mw-popup-modal h2 { | ||
margin: 8px 0 6px; | margin: 8px 0 6px; | ||
font-size: 1. | font-size: 1.35em; | ||
} | } | ||
.mw-popup-content p { | .mw-popup-content p { | ||
margin: 0. | margin: 0.5em 0; | ||
font-size: 1. | font-size: 1.06em; | ||
line-height: 1. | line-height: 1.5; | ||
} | } | ||
/* | /* Kartenlayout für die zwei Abfüllungen */ | ||
.mw- | .mw-wnews-cards { | ||
display: flex; | margin-top: 10px; | ||
display: grid; | |||
gap: | grid-template-columns: 1fr 1fr; | ||
gap: 12px; | |||
} | |||
.mw-wnews-card { | |||
display: grid; | |||
grid-template-rows: auto auto; | |||
background: #f8f9fa; | |||
border: 1px solid #e3e6e8; | |||
border-radius: 10px; | |||
text-decoration: none; | |||
color: inherit; | |||
overflow: hidden; | |||
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; | |||
} | |||
.mw-wnews-card:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 8px 18px rgba(0,0,0,.12); | |||
border-color: #d5dadd; | |||
} | |||
.mw-wnews-thumb img { | |||
display:block; | |||
width:100%; | |||
height: 220px; | |||
object-fit: cover; | |||
} | |||
.mw-wnews-meta { | |||
padding: 10px 12px; | |||
display:flex; | |||
flex-direction:column; | |||
gap: 6px; | |||
} | |||
.mw-wnews-title { | |||
font-weight: 700; | |||
font-size: 1.02em; | |||
} | |||
.mw-wnews-cta { | |||
color: #36c; | |||
font-weight: 600; | |||
} | } | ||
/* Button-Reihe */ | |||
.mw-popup- | .mw-popup-button-row { | ||
flex: | display:flex; justify-content:center; gap:10px; margin-top: 12px; flex-wrap: wrap; | ||
} | } | ||
.mw-popup-close { | .mw-popup-close { | ||
padding: 10px 16px; | padding: 10px 16px; | ||
| Zeile 290: | Zeile 338: | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 1em; | font-size: 1em; | ||
} | } | ||
.mw-popup-close:hover { background:#258; } | |||
.mw-popup- | /* Mobil */ | ||
@media (max-width: 640px) { | |||
.mw-popup-modal { width: calc(100% - 20px); padding: 16px; } | |||
.mw-fw-canvas-wrap { height: 220px; margin: -6px -6px 10px; } | |||
.mw-wnews-cards { grid-template-columns: 1fr; } | |||
.mw-wnews-thumb img { height: 200px; } | |||
.mw- | |||
} | } | ||