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

209 lines
4.4 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
@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;
@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;
}
.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-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 16px 0 8px;
&__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;
}
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.45; }
}