Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115/* ========================================================================== supram · buttons Two weights, one height. The heavy button (.btn) is for the default or major action on a screen: small caps on a 2px rule, inverting on hover. The quiet button (.btn-quiet) is for everything else: the same height, a hairline border, plain text, usually with an icon (see icons.css). Both work on <button> and on <a>. ========================================================================== */
.btn { --btn-h: 2rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-block-size: var(--btn-h); padding: 0 0.7rem; border: var(--rule-w) solid var(--rule); background: var(--bg); color: var(--fg); font: var(--weight-semibold) var(--text-xs) / 1.2 var(--font-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);}
.btn:hover:not(:disabled, [aria-disabled="true"]) { background: var(--fg); color: var(--bg);}
.btn:disabled,.btn[aria-disabled="true"] { opacity: 0.45; cursor: default;}
/* The one action a screen is for. */.btn-primary { background: var(--fg); color: var(--bg);}
.btn-primary:hover:not(:disabled, [aria-disabled="true"]) { background: var(--accent); color: var(--on-accent);}
/* ── The quiet button ─────────────────────────────────────────────────── */
.btn-quiet { border-width: 1px; border-color: var(--hairline); font-weight: var(--weight-medium); font-size: var(--text-sm); letter-spacing: 0; text-transform: none;}
.btn-quiet:hover:not(:disabled, [aria-disabled="true"]) { background: var(--subtle); color: var(--fg); border-color: var(--rule);}
/* A toggle that is on, or the current one of a set. */.btn-quiet[aria-pressed="true"],.btn-quiet.on { background: var(--subtle); border-color: var(--rule);}
/* No border at all until hovered: for icon rows in tight chrome. */.btn-bare { border-color: transparent; background: transparent;}
/* ── Shapes ──────────────────────────────────────────────────────────── */
/* Icon only: a square. Give it a title or an aria-label. */.btn-icon { padding-inline: 0; inline-size: var(--btn-h);}
.btn-small { --btn-h: 1.6rem; padding-inline: 0.5rem;}
.btn-small.btn-quiet { font-size: var(--text-xs);}
/* Icons scale with the label; a little larger on quiet buttons, where they carry more of the meaning. */.btn .icon { font-size: 1.15em;}
.btn-quiet .icon { font-size: 1.2em;}
.btn-icon .icon { font-size: 1.25em;}