bug fixes( mobile ansicht delele overlay fixed) wartet auf testing. Status offensichtlicher gemacht
This commit is contained in:
@ -20,14 +20,18 @@
|
|||||||
|
|
||||||
@if (Status != null)
|
@if (Status != null)
|
||||||
{
|
{
|
||||||
<p class="mt-3"><strong>Status:</strong>
|
<p class="mt-2"><strong>Status: </strong>
|
||||||
@if (Status == true)
|
@if (Status == true)
|
||||||
{
|
{
|
||||||
@Localizer["Zusage"]<br />
|
<span class ="fontsizeInf">@Localizer["Zugesagt"]</span>
|
||||||
|
|
||||||
|
<br />
|
||||||
<button class="btn btn-danger" @onclick="Absage">@Localizer["Absagen"]</button>
|
<button class="btn btn-danger" @onclick="Absage">@Localizer["Absagen"]</button>
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
@Localizer["Absage"]<br />
|
<span class="fontsizeInf"> @Localizer["Abgesagt"]</span>
|
||||||
|
|
||||||
|
<br class="mt-2" />
|
||||||
<button class="btn btn-success" @onclick="Zusage">@Localizer["Zusagen"]</button>
|
<button class="btn btn-success" @onclick="Zusage">@Localizer["Zusagen"]</button>
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -6,6 +6,13 @@
|
|||||||
.mt-3 {
|
.mt-3 {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
.mt-2 strong {
|
||||||
|
font-size: 1.4rem; /* Textgr<67><72>e <20> Standard ist ca. 1rem */
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.fontsizeInf {
|
||||||
|
font-size: 1.4rem; /* Textgr<67><72>e <20> Standard ist ca. 1rem */
|
||||||
|
}
|
||||||
.event-list {
|
.event-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -15,7 +22,7 @@
|
|||||||
|
|
||||||
.event-card {
|
.event-card {
|
||||||
/*background-color: var(--bs-gray-dark); */
|
/*background-color: var(--bs-gray-dark); */
|
||||||
border: 2px solid rgb(var(--bs-primary-rgb)); /* Umrandung */
|
border: 2px solid rgb(128 128 128); /* Umrandung */
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
@ -24,11 +31,6 @@
|
|||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-card:hover {
|
|
||||||
border-color: #66ccff; /* Heller beim Hover */
|
|
||||||
transform: translateY(-4px);
|
|
||||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
.event-card h3 {
|
.event-card h3 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@ -44,3 +46,156 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
/* vorher:
|
||||||
|
.event-card:hover {
|
||||||
|
border-color: #66ccff;
|
||||||
|
transform: translateY(-4px); <-- das ist der <20>belt<6C>ter
|
||||||
|
box-shadow: 0 6px 14px rgba(0,0,0,0.5);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* nachher <20> kein transform mehr */
|
||||||
|
.event-card:hover {
|
||||||
|
border-color: #66ccff;
|
||||||
|
/* statt transform die Karte minimal "anheben" */
|
||||||
|
margin-top: -4px; /* optischer Lift */
|
||||||
|
box-shadow: 0 6px 14px rgba(0,0,0,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sicherheitshalber: Overlay darf nicht abgeschnitten werden */
|
||||||
|
.event-card {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
/* ---------- A) Hover nur auf Ger<65>ten mit Maus ---------- */
|
||||||
|
@media (hover: hover) and (pointer: fine) {
|
||||||
|
.event-card:hover {
|
||||||
|
border-color: #66ccff;
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 6px 14px rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Auf Touch-Ger<65>ten kein transform (verhindert Modal-Probleme) */
|
||||||
|
@media (hover: none), (pointer: coarse) {
|
||||||
|
.event-card:hover {
|
||||||
|
transform: none;
|
||||||
|
box-shadow: 0 6px 14px rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sicherheitshalber: nichts abschneiden */
|
||||||
|
.event-card {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- B) Overlay/Modal (Desktop-Basis) ---------- */
|
||||||
|
/* Falls schon vorhanden, kannst du diese Werte als Override nutzen */
|
||||||
|
.overlay {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
background: rgba(0,0,0,.45);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 2rem;
|
||||||
|
z-index: 2000;
|
||||||
|
overscroll-behavior: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 20px 60px rgba(0,0,0,.35);
|
||||||
|
width: min(92vw, 720px);
|
||||||
|
max-height: 85vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden; /* f<>r sticky header/footer */
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header,
|
||||||
|
.modal-footer {
|
||||||
|
padding: 1rem 1.25rem;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header {
|
||||||
|
border-bottom: 1px solid rgba(0,0,0,.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
border-top: 1px solid rgba(0,0,0,.1);
|
||||||
|
display: flex;
|
||||||
|
gap: .75rem;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
padding: 1rem 1.25rem;
|
||||||
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Medien responsiv im Detail-Dialog */
|
||||||
|
.modal-body img,
|
||||||
|
.modal-body video,
|
||||||
|
.modal-body canvas,
|
||||||
|
.modal-body iframe {
|
||||||
|
max-width: 100% !important;
|
||||||
|
height: auto !important;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------- C) Mobile-Vollbild & Sticky-Header/Footer ---------- */
|
||||||
|
@supports (height: 100dvh) {
|
||||||
|
.modal {
|
||||||
|
max-height: 100dvh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.overlay {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh; /* nutzt auf modernen Browsern 100dvh (s.o.) */
|
||||||
|
max-height: 100vh;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
position: sticky;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Lesbare <20>berschriften auf Mobile */
|
||||||
|
.modal-body h1 {
|
||||||
|
font-size: clamp(1.25rem, 5.5vw, 2rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body h2 {
|
||||||
|
font-size: clamp(1.125rem, 5vw, 1.5rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* iOS Safe-Area (Notch) */
|
||||||
|
@supports (padding: max(0px)) {
|
||||||
|
.modal {
|
||||||
|
padding-bottom: max(0px, env(safe-area-inset-bottom));
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user