.grid { display: flex; flex-wrap: wrap; gap: 16px; } .card { min-width: 0; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 28px; overflow: hidden; } .wide { flex: 2 1 560px; } .narrow { flex: 1 1 300px; } .title { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.6; text-wrap: wrap; } .body { margin: 0; font-size: 15px; color: var(--cp-muted); text-wrap: pretty; } .relative { position: relative; } .pre { white-space: pre; } .faint { color: var(--cp-faint); } /* Selection */ .selectionDemo { min-height: 170px; display: flex; align-items: center; overflow: hidden; } .selectionCode { position: relative; font-family: var(--cp-mono); font-size: clamp(12px, 1.45vw, 17px); line-height: 2; color: var(--cp-text); padding: 46px 0 8px; } .selectionFirst { color: var(--cp-muted); white-space: pre; } .selBox { position: absolute; left: 13ch; top: 3px; bottom: 3px; width: 22ch; background: var(--cp-sel); border-radius: 3px; } .handleLeft, .handleRight { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: var(--cp-link); } .handleLeft { left: 13ch; } .handleRight { left: 35ch; } .handleLeft > span, .handleRight > span { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cp-link); } .handleLeft > span { top: -8px; } .handleRight > span { bottom: -8px; } .menu { position: absolute; left: 12ch; top: -48px; display: flex; align-items: center; border-radius: 10px; background: var(--cp-text); color: var(--cp-bg); font-family: var(--cp-sans); font-size: 13.5px; line-height: 1; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6); z-index: 2; } .menu > span { padding: 10px 13px; } .menu > .menuMore { padding: 10px 12px; } .menu > .menuRule { width: 1px; height: 18px; padding: 0; background: var(--cp-bg); opacity: 0.25; } .selectionLine { position: relative; white-space: pre; } /* Undo */ .undoDemo { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; } .undoRing { position: absolute; inset: -10px; border: 1.5px dashed var(--cp-accent); border-radius: 12px; opacity: 0; } .undoRing > span { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 8px; background: var(--cp-surface); font-family: var(--cp-mono); font-size: 11px; line-height: 16px; color: var(--cp-accent); white-space: nowrap; } .undoRow { display: flex; gap: 8px; font-family: var(--cp-mono); font-size: 18px; color: var(--cp-text); } .undoChip { position: relative; width: 30px; height: 38px; display: grid; place-items: center; } .undoSkin { position: absolute; inset: 0; border-radius: 8px; border: 1px solid var(--cp-border-strong); background: var(--cp-bg); } .undoKeys { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cp-muted); } .keycap, .keycap36 { height: 34px; min-width: 34px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--cp-border-strong); background: var(--cp-bg); display: grid; place-items: center; font-family: var(--cp-mono); font-size: 14px; color: var(--cp-text); box-shadow: 0 2px 0 0 rgba(127, 127, 127, 0.35); } .keycap36 { height: 36px; min-width: 36px; } .undoLabel { margin-left: 4px; } /* Pairs */ .pairsDemo { min-height: 170px; display: flex; align-items: center; } .pairsCode { font-family: var(--cp-mono); font-size: 17px; line-height: 2; color: var(--cp-text); } .pairsCaret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.2em; background: var(--cp-accent); opacity: 0; } .ghost { color: var(--cp-accent); opacity: 0; } .pairsIndent { display: flex; align-items: center; } .guide { display: inline-block; width: 4ch; height: 1.6em; border-right: 1px dashed var(--cp-border-strong); box-sizing: border-box; } .pairsBlink { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; background: var(--cp-accent); } .closer { position: relative; z-index: 0; } .flash { position: absolute; inset: -2px -4px; z-index: -1; border-radius: 4px; background: var(--cp-accent-soft); opacity: 0; } /* Search */ .searchDemo { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; } .findField { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 12px; border: 1px solid var(--cp-border-strong); background: var(--cp-bg); font-family: var(--cp-mono); font-size: 14px; max-width: 440px; } .findText { flex: 1; color: var(--cp-text); } .chip, .chipOn { padding: 2px 7px; border-radius: 6px; font-size: 12px; } .chip { border: 1px solid var(--cp-border); color: var(--cp-muted); } .chipOn { background: var(--cp-accent-soft); color: var(--cp-accent); } .matchCount { color: var(--cp-faint); font-size: 12px; padding: 0 4px; } .searchCode { font-family: var(--cp-mono); font-size: clamp(12px, 1.3vw, 14.5px); line-height: 1.95; overflow: hidden; color: var(--cp-text); } .comment { color: var(--cp-c); font-style: italic; white-space: pre; } .match { position: relative; z-index: 0; background: var(--cp-sm); border-radius: 3px; } .matchActive { position: absolute; inset: 0; z-index: -1; border-radius: 3px; background: var(--cp-sma); opacity: 0; } /* Hardware keys */ .chordsDemo { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 12px; } .chord { display: flex; align-items: center; gap: 8px; } .chordLabel { margin-left: 8px; font-size: 14px; color: var(--cp-muted); } /* Toolbar */ .toolbarDemo { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 18px; } .toolbarKeys { display: flex; gap: 6px; flex-wrap: wrap; } .toolbarKey { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--cp-border-strong); background: var(--cp-bg); display: grid; place-items: center; font-size: 16px; color: var(--cp-text); } .toolbarLit { position: absolute; inset: -1px; border-radius: 10px; background: var(--cp-accent-soft); box-shadow: inset 0 0 0 1px var(--cp-accent); opacity: 0; } .toolbarCall { font-family: var(--cp-mono); font-size: 13px; color: var(--cp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Soft wrap */ .wrapDemo { min-height: 170px; display: flex; align-items: center; } .wrapBox { width: 100%; display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--cp-border-strong); box-sizing: border-box; font-family: var(--cp-mono); font-size: 13px; line-height: 1.75; } .wrapText { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; }