/* The portal demo's stylesheet: the portal's own, then the demo's pieces in its tokens — the "Demo" chip after the breadcrumb's path, the GitHub pill beside the page's QR knob, the scenario rows in the drawer, and the set-up state switch beside the set-up sheet's ×. */ @import '../styles/index.css'; /* The path keeps its width so the chip sits right after it; the page's QR stays at the end. */ .cr-path { flex: 0 1 auto; } .dm-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 10px; margin-right: auto; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; flex: none; transition: transform 150ms var(--ease-out), background-color 150ms; } .dm-chip:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); } .dm-chip:active { transform: scale(0.94); } .dm-chip .i { width: 14px; height: 14px; transform: rotate(90deg); } /* A card alone (paused): the breadcrumb is centred, the chip with it. */ .page.single .dm-chip { margin-right: 0; } /* GitHub: a pill of the QR knob's height and fill, just before it. On a phone it would crowd out the names (the server's and the person's): there it is a button in the drawer instead. */ .dm-gh { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--knob); color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; flex: none; transition: transform 150ms var(--ease-out), background-color 150ms; } .dm-gh:hover { background: color-mix(in srgb, var(--knob), var(--text) 6%); } .dm-gh:active { transform: scale(0.94); } .dm-gh .i { width: 16px; height: 16px; } @media (max-width: 479px) { .dm-gh { display: none; } } /* The drawer: groups of rows that touch, one step lighter than the sheet, the current one in the accent. */ .dm-group { margin: 0 0 18px; } .dm-group .lbl-s { margin: 0 4px 8px; } .dm-list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-row); overflow: hidden; } .dm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px 10px 12px; background: var(--field); text-align: left; transition: background-color 150ms; } .dm-row:hover { background: color-mix(in srgb, var(--field), var(--text) 4%); } .dm-row .gi { width: 30px; height: 30px; flex: none; } .dm-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dm-row b { font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: -0.02em; } .dm-row .t span { color: var(--text-2); font-size: 13px; line-height: 18px; } .dm-row.on b { color: var(--accent); } .dm-tick { width: 18px; height: 18px; color: var(--accent); flex: none; } /* The drawer's foot: Start over, and on a phone GitHub beside it. */ .dm-foot { display: flex; gap: 8px; } .dm-foot .btn { flex: 1; } @media (min-width: 480px) { .dm-gh-alt { display: none; } } /* The set-up state switch: a pill beside ×, gliding into its place when the device arrives. */ .dm-way { position: absolute; z-index: 3; top: 22px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--knob); color: var(--text); font-size: 13px; font-weight: 500; transition: background-color 150ms, transform 150ms var(--ease-out), right var(--spring-smooth-dur) var(--spring-smooth); } .dm-way:hover { background: color-mix(in srgb, var(--knob), var(--text) 6%); } .dm-way:active { transform: scale(0.95); } .dm-way[aria-expanded='true'] { background: color-mix(in srgb, var(--knob), var(--text) 10%); } .dm-way .i { width: 14px; height: 14px; color: var(--text-2); transform: rotate(90deg); transition: transform 240ms var(--ease-out); } .dm-way[aria-expanded='true'] .i { transform: rotate(-90deg); } .dm-way .dot, .dm-way-pop .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: background-color 300ms, opacity 150ms; } .dm-way .dot.warn, .dm-way-pop .dot.warn { background: var(--warn); } .dm-way .dot.ok, .dm-way-pop .dot.ok { background: var(--ok); } /* Its popup: segments in one pill frame, a step above the sheet each (white on grey in light), a tail down to the pill, and a dark, softly blurred halo behind that fades out around it. */ .dm-way-pop { --frame: color-mix(in srgb, var(--field), var(--knob) 55%); --seg: color-mix(in srgb, var(--knob), var(--text) 2%); --seg-hover: color-mix(in srgb, var(--knob), var(--text) 6%); position: fixed; z-index: 60; display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--frame); box-shadow: var(--pop-shadow); } .dm-way-pop::before { content: ''; position: absolute; bottom: -5px; left: var(--tail, 50%); width: 12px; height: 12px; margin-left: -6px; border-radius: 0 0 3px 0; background: var(--frame); transform: rotate(45deg); } .dm-way-pop button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--seg); color: color-mix(in srgb, var(--text-2), var(--text-3) 35%); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: color 150ms, background-color 150ms, transform 150ms var(--ease-out); } /* The ends follow the frame: half the segment's height (a larger radius would shrink every corner). */ .dm-way-pop button:first-of-type { border-radius: 17px 10px 10px 17px; padding-left: 13px; } .dm-way-pop button:last-of-type { border-radius: 10px 17px 17px 10px; padding-right: 13px; } .dm-way-pop button:hover { color: color-mix(in srgb, var(--text-2), var(--text) 45%); background: var(--seg-hover); } .dm-way-pop button:active { transform: scale(0.96); } .dm-way-pop button[aria-checked='true'] { color: var(--text); } .dm-way-pop .dot { background: currentColor; opacity: 0.5; } .dm-way-pop button[aria-checked='true'] .dot, .dm-way-pop button:hover .dot { opacity: 1; } .dm-way-halo { position: fixed; z-index: 59; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.35) 55%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 92%); mask-image: radial-gradient(closest-side, #000 60%, transparent 92%); } @media (prefers-color-scheme: light) { .dm-way-pop { --frame: var(--knob); --seg: var(--raised); --seg-hover: color-mix(in srgb, var(--raised), var(--text) 4%); } .dm-way-halo { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.07) 55%, transparent); } }