/* OpenTalon docs. Built on the help page layout and the site tokens in style.css. */ .wrap.docs-main { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 3.5fr); column-gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: clamp(32px, 6vw, 80px); } /* Navigation */ .docs-nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-top: 14px; border-top: 2px solid var(--cyan); font-size: 14px; } .docs-nav-menu > summary { display: none; } .docs-pages, .docs-toc { margin: 0; padding: 0; list-style: none; } .docs-pages > li + li { margin-top: 2px; } .docs-pages a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text-2); text-decoration: none; } .docs-pages a:hover { color: var(--text); background: var(--surface); } .docs-pages > li.is-current > a { color: var(--text); background: var(--surface-2); font-weight: 600; } .docs-toc { margin: 4px 0 8px 10px; padding-left: 8px; border-left: 1px solid var(--line-2); } .docs-toc a { padding: 3px 8px; color: var(--muted); font-size: 13px; } .docs-toc a:hover { color: var(--cyan); background: transparent; } /* Article */ .docs-article { min-width: 0; } .docs-kicker { margin-bottom: 10px; font-family: var(--mono); font-size: 13px; } .docs-kicker a { color: var(--cyan); text-decoration: none; } .docs-head h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 650; line-height: 1.05; letter-spacing: -.05em; } .docs-head .lede { max-width: 60ch; margin-top: 14px; color: var(--text-2); font-size: clamp(16px, 2vw, 19px); } .docs-article section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); } .docs-article h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.18; letter-spacing: -.03em; } .docs-anchor { color: inherit; text-decoration: none; } .docs-anchor:hover { color: var(--cyan); } .docs-article h3 { margin-top: 22px; font-size: 17px; line-height: 1.3; } .docs-article p, .docs-article ol, .docs-article ul { max-width: 72ch; margin: 10px 0 0; color: var(--text-2); } .docs-article ol, .docs-article ul { padding-inline-start: 1.4em; } .docs-article li + li { margin-top: 6px; } .docs-article strong { color: var(--text); font-weight: 600; } .docs-article a:not(.docs-anchor, .docs-pager a) { color: var(--cyan); text-underline-offset: .22em; } .docs-article code, .docs-article kbd { font-family: var(--mono); font-size: .86em; } .docs-article code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--text); overflow-wrap: anywhere; } .docs-article kbd { display: inline-block; min-width: 1.7em; margin-inline: 1px; padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--text); line-height: 1.6; text-align: center; } .docs-badge { display: inline-block; padding: 2px 9px; border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); border-radius: 999px; color: var(--cyan); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; } .docs-article .note { max-width: 72ch; margin-top: 14px; padding: 10px 14px; border-inline-start: 2px solid var(--cyan); border-radius: 0 8px 8px 0; background: var(--bg-2); color: var(--text-2); } .docs-article table { width: 100%; max-width: 72ch; margin-top: 14px; border-collapse: collapse; font-size: 14px; } .docs-article th, .docs-article td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); text-align: left; vertical-align: top; } .docs-article th { color: var(--text); font-weight: 600; } .docs-article details { max-width: 72ch; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } .docs-article summary { cursor: pointer; font-weight: 600; } .docs-article summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; } /* Screenshots. Placeholders hold the spec for each capture until the 1.1 UI ships. */ .docs-shot { max-width: 820px; margin: 20px 0 6px; } .docs-shot-phone { max-width: 260px; } .docs-shot-wide { max-width: 560px; } .docs-shot-frame { display: flex; flex-direction: column; justify-content: center; gap: 8px; aspect-ratio: 16 / 10; padding: clamp(14px, 3vw, 28px); border: 1px dashed var(--line-2); border-radius: 12px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / .018) 14px 28px), var(--surface); } .docs-shot-phone .docs-shot-frame { aspect-ratio: 9 / 19.5; } .docs-shot-wide .docs-shot-frame { aspect-ratio: 5 / 2; } .docs-shot-label { color: var(--cyan); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; } .docs-shot-id { align-self: flex-start; } .docs-shot-needs { max-width: 60ch; color: var(--muted); font-size: 13px; line-height: 1.5; } .docs-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 12px; } .docs-shot figcaption { margin-top: 8px; color: var(--text-2); font-size: 13px; } /* Previous and next */ .docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; } .docs-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; } .docs-pager a:hover { border-color: var(--blue); } .docs-pager span { color: var(--muted); font-size: 13px; font-weight: 400; } .docs-pager-next { text-align: right; } @media (width <= 820px) { .wrap.docs-main { grid-template-columns: minmax(0, 1fr); } .docs-nav { position: static; max-height: none; margin-bottom: 28px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } .docs-nav-menu > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; } .docs-pages { padding: 0 8px 10px; } .docs-toc { display: none; } } @media (width <= 520px) { .wrap.docs-main { padding-inline: 16px; } .docs-shot-frame { aspect-ratio: auto; min-height: 220px; } .docs-shot-phone .docs-shot-frame { min-height: 360px; } .docs-pager { grid-template-columns: minmax(0, 1fr); } .docs-pager-next { text-align: left; } .docs-article table { display: block; overflow-x: auto; } }