Style modal i poprawa card na telefonie

This commit is contained in:
dm
2025-12-11 18:34:57 +01:00
parent b1d288dce8
commit 51ab1e8b2f
3 changed files with 87 additions and 64 deletions

View File

@@ -60,7 +60,7 @@
=========================== */ =========================== */
.fuz-modal-phone-list.fuz-accordion { .fuz-modal-phone-list.fuz-accordion {
@apply flex flex-col gap-3; @apply flex flex-col gap-2;
} }
.fuz-accordion-item { .fuz-accordion-item {
@@ -69,18 +69,18 @@
} }
.fuz-accordion-header { .fuz-accordion-header {
@apply w-full flex items-center justify-between gap-4 px-4 py-3 cursor-pointer; @apply w-full flex items-center justify-between gap-4 px-4 py-2 cursor-pointer;
background: rgba(148, 163, 184, 0.06); background: rgba(148, 163, 184, 0.06);
border: none; border: none;
outline: none; outline: none;
} }
.fuz-accordion-header-left { .fuz-accordion-header-left {
@apply flex items-center gap-2; @apply flex items-center gap-1;
} }
.fuz-modal-phone-name { .fuz-modal-phone-name {
@apply font-medium; @apply font-medium ml-2;
} }
.fuz-modal-phone-price { .fuz-modal-phone-price {
@@ -187,3 +187,27 @@
.fuz-accordion-item--no-phone .fuz-accordion-header { .fuz-accordion-item--no-phone .fuz-accordion-header {
background: rgba(148, 163, 184, 0.03); background: rgba(148, 163, 184, 0.03);
} }
.fuz-accordion-header-left input[type="radio"] {
width: 1.05rem;
height: 1.05rem;
transform: scale(1.05);
accent-color: var(--fuz-accent, #2563eb);
cursor: pointer;
}
.fuz-addon-checkbox input[type="checkbox"] {
width: 1.05rem;
height: 1.05rem;
transform: scale(1.05);
accent-color: var(--fuz-accent, #2563eb);
cursor: pointer;
}
.fuz-accordion-header-left {
align-items: center;
}
.fuz-addon-checkbox {
align-items: center;
}

View File

@@ -12,10 +12,14 @@
padding: 0 1rem; padding: 0 1rem;
} }
/* KARTA POPRAWIONA, BEZ width/max-width/flex 1 1 300px */ /* -----------------------------
.f-card { KARTA MOBILE FIRST
flex: 0 1 320px; ------------------------------ */
/* MOBILE: każda karta ~pełna szerokość */
.f-card {
flex: 1 1 100%;
max-width: 26rem; /* możesz dać 100%, jeśli chcesz naprawdę full */
@apply bg-[--f-bg] text-[--f-text] border border-[--f-offers-border] @apply bg-[--f-bg] text-[--f-text] border border-[--f-offers-border]
rounded-2xl shadow-md p-6 relative flex flex-col gap-4; rounded-2xl shadow-md p-6 relative flex flex-col gap-4;
} }
@@ -83,27 +87,17 @@
@apply text-red-600 opacity-60; @apply text-red-600 opacity-60;
} }
/* ----------------------------- /* -----------------------------
INTELIGENTNY UKŁAD KART INTELIGENTNY UKŁAD OD MD↑
------------------------------ */ ------------------------------ */
@media (min-width: 768px) {
/* DOMYŚLNE: responsywnie */ /* DOMYŚLNE: responsywnie */
.f-card { .f-card {
flex: 1 1 300px; flex: 1 1 300px;
max-width: 360px; max-width: 360px;
} }
/* LICZNIK KART */
.f-offers-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
/* --- UKŁAD SPECJALNY --- */
/* 4 karty → 2 + 2 */ /* 4 karty → 2 + 2 */
.f-count-4 .f-card { .f-count-4 .f-card {
flex: 0 1 calc(50% - 2rem); flex: 0 1 calc(50% - 2rem);
@@ -144,3 +138,4 @@
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
}

View File

@@ -72,10 +72,14 @@
--btn-background-hover: var(--surface4-light); --btn-background-hover: var(--surface4-light);
--btn-text-hover: var(--link-color-light); --btn-text-hover: var(--link-color-light);
*/ */
--btn-background: var(--surface4-light); --btn-background: var(--link-color-light);
--btn-text: var(--link-color-light); /* var(--surface4-light); */
--btn-background-hover: var(--link-color-light); --btn-text: var(--surface4-light);
--btn-text-hover: var(--surface4-light); /* var(--link-color-light); */
--btn-background-hover: var(--surface4-light);
/* var(--link-color-light); */
--btn-text-hover: var(--link-color-light);
/* var(--surface4-light); */
--f-background-toast: var(--surface2-dark); --f-background-toast: var(--surface2-dark);