Files
qr_vitanova/src/app/pages/create-page/create-page.scss

291 lines
6.2 KiB
SCSS
Raw Normal View History

2026-04-30 01:17:17 +04:00
@use './../../../shared' as *;
.card__header {
position: relative;
}
.back {
position: absolute;
2026-04-30 01:25:20 +04:00
top: 14px;
left: 14px;
width: 44px;
height: 44px;
2026-04-30 01:17:17 +04:00
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
2026-04-30 15:06:02 +04:00
color: #475569;
background: #f1f5f9;
border: 1px solid #e2e8f0;
2026-04-30 01:17:17 +04:00
text-decoration: none;
2026-04-30 15:06:02 +04:00
transition: background 0.15s, color 0.15s;
2026-04-30 01:17:17 +04:00
z-index: 1;
2026-04-30 15:06:02 +04:00
&:hover { background: #e2e8f0; color: #0f172a; }
&:active { background: #cbd5e1; }
2026-04-30 01:17:17 +04:00
}
.currency-badge {
display: flex;
align-items: center;
gap: 10px;
background: #f1f5f9;
border-radius: 12px;
padding: 12px 16px;
margin-bottom: 18px;
&__flag { font-size: 22px; line-height: 1; }
&__code { font-size: 15px; font-weight: 700; color: #0f172a; }
&__name { font-size: 13px; color: #64748b; margin-left: auto; }
}
// ─── Methods row ────────────────────────────────────────────────────────────
.methods {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
2026-04-30 01:25:20 +04:00
2026-05-07 00:13:45 +04:00
@media (max-width: 600px) {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
padding-bottom: 4px;
}
2026-04-30 01:25:20 +04:00
@media (max-width: 360px) {
gap: 6px;
}
2026-04-30 01:17:17 +04:00
}
.method {
display: flex;
align-items: center;
justify-content: center;
height: 56px;
padding: 8px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background: #fff;
cursor: pointer;
transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
2026-04-30 01:25:20 +04:00
-webkit-appearance: none;
font-family: inherit;
2026-05-07 00:13:45 +04:00
@media (max-width: 600px) {
flex: 0 0 72px;
width: 72px;
}
2026-04-30 01:25:20 +04:00
@media (max-width: 360px) {
height: 52px;
padding: 6px;
}
2026-04-30 01:17:17 +04:00
&__logo {
max-width: 100%;
max-height: 28px;
object-fit: contain;
display: block;
pointer-events: none;
}
&:hover:not(:disabled):not(.method--disabled) {
border-color: #cbd5e1;
}
&:active:not(:disabled) { transform: scale(.97); }
&--active {
border-color: #2563eb;
background: rgba(37, 99, 235, .06);
box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
&--disabled,
&:disabled {
cursor: not-allowed;
background: #f8fafc;
.method__logo {
filter: grayscale(1);
opacity: .45;
}
}
}
// ─── Currency chips ─────────────────────────────────────────────────────────
.currencies {
display: flex;
flex-wrap: wrap;
gap: 8px;
2026-05-07 00:13:45 +04:00
@media (max-width: 600px) {
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
padding-bottom: 4px;
}
2026-04-30 01:17:17 +04:00
}
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 14px;
2026-04-30 01:25:20 +04:00
height: 44px;
2026-04-30 01:17:17 +04:00
border-radius: 999px;
border: 2px solid #e2e8f0;
background: #f8fafc;
color: #475569;
font-family: inherit;
2026-04-30 01:25:20 +04:00
font-size: 14px;
2026-04-30 01:17:17 +04:00
font-weight: 700;
cursor: pointer;
transition: border-color .15s, background .15s, color .15s;
2026-04-30 01:25:20 +04:00
-webkit-appearance: none;
2026-04-30 01:17:17 +04:00
&__flag { font-size: 16px; line-height: 1; }
&__sign {
font-size: 15px;
font-weight: 800;
color: #1e40af;
line-height: 1;
}
&__code { letter-spacing: .3px; }
&--active {
border-color: #2563eb;
background: rgba(37, 99, 235, .08);
color: #1e40af;
}
&--disabled,
&:disabled {
opacity: .45;
cursor: not-allowed;
color: #94a3b8;
.chip__sign { color: #94a3b8; }
}
}
.note-input {
width: 100%;
border: 2px solid #e2e8f0;
border-radius: 14px;
background: #f8fafc;
padding: 14px 16px;
font-size: 15px;
font-weight: 500;
color: #0f172a;
font-family: inherit;
resize: vertical;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
line-height: 1.5;
&::placeholder { color: #cbd5e1; font-weight: 400; }
&:focus {
border-color: #2563eb;
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
background: #fff;
}
}
2026-05-05 00:52:03 +04:00
// ─── QR section ─────────────────────────────────────────────────────────────
// ─── QR popup ───────────────────────────────────────────────────────────────
.qr-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.55);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
animation: overlay-in 0.2s ease;
}
.qr-modal {
position: relative;
background: #fff;
border-radius: 20px;
padding: 32px 28px 24px;
2026-05-05 00:52:03 +04:00
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
box-shadow: 0 20px 60px rgba(0,0,0,0.25);
animation: modal-in 0.22s cubic-bezier(.34,1.56,.64,1);
max-width: 340px;
width: 90vw;
&__close {
position: absolute;
top: 12px;
right: 12px;
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: #f1f5f9;
color: #475569;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s;
&:hover { background: #e2e8f0; }
}
2026-05-05 00:52:03 +04:00
&__label {
font-size: 13px;
font-weight: 600;
color: #475569;
text-transform: uppercase;
letter-spacing: 0.05em;
}
&__img {
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
&__hint {
font-size: 13px;
color: #64748b;
animation: pulse 1.6s ease-in-out infinite;
}
2026-05-05 11:53:52 +04:00
&__status {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 3px 10px;
border-radius: 20px;
background: #f1f5f9;
color: #475569;
}
2026-05-05 00:52:03 +04:00
}
@keyframes overlay-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes modal-in {
from { opacity: 0; transform: scale(0.85); }
to { opacity: 1; transform: scale(1); }
}
2026-05-05 00:52:03 +04:00
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.45; }
}