Repository Public
1/**2 * file: src/components/editor/nodes/blocks-ra.css3 * description: styles of the living-block indicator (queryView, chart fed by a database), of the research additions of the editor4 * (resolved citations, PDF annotations linked to a reference) and of the contextual AI preview. Tokens only (globals.css); every5 * animation here is decoration and is switched off under prefers-reduced-motion.6 * author: Simon-Pierre Boucher — contact@spboucher.ai7 */8.live-badge { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; font-size: 0.6875rem; line-height: 1rem; font-weight: 500; color: var(--fg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }9.live-badge .live-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }10.live-dot { position: relative; width: .4375rem; height: .4375rem; border-radius: var(--r-pill); flex-shrink: 0; background: var(--success); }11.live-badge[data-state="live"] .live-dot::after, .live-badge[data-state="updating"] .live-dot::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--lumen); opacity: 0; animation: live-pulse 2.4s var(--ease-standard) infinite; }12.live-badge[data-state="updating"] .live-dot { background: var(--accent); }13.live-badge[data-state="stale"], .live-badge[data-state="offline"] { color: color-mix(in oklab, var(--warning) 58%, var(--fg)); }14.live-badge[data-state="stale"] .live-dot, .live-badge[data-state="offline"] .live-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warning); }15.live-stale { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .375rem .75rem; border-bottom: 1px solid color-mix(in oklab, var(--warning) 30%, transparent); background: color-mix(in oklab, var(--warning) 9%, transparent); font-size: 0.75rem; line-height: 1.125rem; color: var(--fg); }16.live-stale > svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--warning-text); } .live-stale > span { min-width: 0; flex: 1 1 12rem; overflow-wrap: anywhere; }17.qv-num { text-align: right; font-variant-numeric: tabular-nums; }18.ch-note .live-badge { margin-left: .25rem; }19@keyframes live-pulse { 0% { opacity: .55; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.9); } }20@media (max-width: 480px) { .nb-head .live-badge .live-text { max-width: 9.5rem; } }21@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none !important; display: none; } }22/* PDF block ↔ research reference */23.pdfv-ref { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; padding: .375rem .75rem; border-top: 1px solid var(--line); background: var(--bg-sunk); font-size: 0.75rem; line-height: 1.125rem; color: var(--fg-muted); }24.pdfv-ref > svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }25.note-editor .pdfv-ref-name, .pdfv-ref-name { color: var(--accent); font-weight: 600; text-decoration: none; } .pdfv-ref-name:hover { text-decoration: underline; }26.pdfv-extract { display: inline-flex; margin-left: auto; flex-shrink: 0; color: var(--accent); } .pdfv-extract svg { width: 14px; height: 14px; }27.note-editor .cite-inline[data-ref-state="deleted"] { color: var(--danger-text); border-bottom-color: color-mix(in oklab, var(--danger) 50%, transparent); }28