Loading files
aec8bf58bThis file is pinned to the selected release. Download the original to open it in your design tool.
/* On-screen numpad + keyboard for kiosk (no physical keyboard).
Bottom-sheet layout sized for gloved hands on a 1280x720 touchscreen:
near-full-width QWERTY, all key targets >= 64px tall. */
/* ── Overlay (dimmed backdrop, panel anchored to the bottom) ── */
.numpad-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(0, 0, 0, 0.45);
}
/* ── Panel (bottom sheet) ─────────────────────────────────── */
.numpad-panel {
background: #fff;
border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
border: 1px solid #dce1e8;
border-bottom: none;
box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
width: 480px;
max-width: 98vw;
overflow: hidden;
user-select: none;
animation: numpad-slide-up 0.15s ease-out;
}
.numpad-panel--keyboard {
width: min(96vw, 1200px);
}
@keyframes numpad-slide-up {
from { transform: translateY(30%); opacity: 0.5; }
to { transform: translateY(0); opacity: 1; }
}
/* ── Header (shared) ─────────────────────────────────────── */
.numpad-header {
padding: 12px 20px;
border-bottom: 1px solid #dce1e8;
background: #f7f8fa;
}
.numpad-label {
font-size: 14px;
color: #6b7280;
margin-bottom: 6px;
}
.numpad-display {
font-size: 32px;
font-weight: 600;
color: #1a1a2e;
min-height: 40px;
text-align: right;
font-variant-numeric: tabular-nums;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.numpad-panel--keyboard .numpad-display {
font-size: 24px;
text-align: left;
word-break: break-all;
white-space: normal;
min-height: 32px;
}
.numpad-display--empty::after {
content: '|';
animation: numpad-blink 1s step-end infinite;
color: #9ca3af;
}
@keyframes numpad-blink {
50% { opacity: 0; }
}
/* ── Numpad grid (number inputs) ─────────────────────────── */
.numpad-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
padding: 16px;
}
.numpad-btn {
height: 76px;
min-width: 96px;
border: 1px solid #dce1e8;
border-radius: var(--radius-sm, 6px);
background: #fff;
font-size: 30px;
font-weight: 500;
color: #1a1a2e;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.1s;
-webkit-tap-highlight-color: transparent;
}
.numpad-btn:active {
background: #e5e7eb;
}
.numpad-btn--backspace {
font-size: 24px;
}
.numpad-btn--dot.numpad-btn--hidden {
visibility: hidden;
}
/* ── Keyboard grid (text inputs) ─────────────────────────── */
.keyboard-grid {
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
}
.keyboard-row {
display: flex;
gap: 8px;
justify-content: center;
}
/* Stagger the letter rows like a physical keyboard (percentage insets so the
layout scales with the near-full-width panel) */
.keyboard-row--offset {
padding: 0 4%;
}
.keyboard-row--offset2 {
padding: 0 2%;
}
.kb-btn {
height: 68px;
flex: 1 1 0;
min-width: 0;
border: 1px solid #dce1e8;
border-radius: var(--radius-sm, 6px);
background: #fff;
font-size: 26px;
font-weight: 500;
color: #1a1a2e;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.1s;
-webkit-tap-highlight-color: transparent;
}
.kb-btn:active {
background: #e5e7eb;
}
.kb-btn--wide {
flex: 1.6 1 0;
font-size: 20px;
}
.kb-btn--space {
flex: 5 1 0;
font-size: 16px;
color: #6b7280;
letter-spacing: 1px;
}
/* ── Shared actions ──────────────────────────────────────── */
.numpad-actions {
display: flex;
gap: 10px;
padding: 0 16px 16px;
}
.numpad-actions button {
flex: 1;
height: 64px;
border: none;
border-radius: var(--radius-sm, 6px);
font-size: 19px;
font-weight: 600;
cursor: pointer;
transition: background 0.1s;
}
.numpad-cancel {
background: #f3f4f6;
color: #6b7280;
}
.numpad-cancel:active {
background: #e5e7eb;
}
.numpad-ok {
background: var(--primary, #3b82f6);
color: #fff;
}
.numpad-ok:active {
background: var(--primary-dark, #2563eb);
}