mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-18 00:23:36 +08:00
2 lines
3.0 KiB
CSS
2 lines
3.0 KiB
CSS
.r-demo-code{border:1px solid var(--r-line);color:var(--r-text-secondary);background:var(--r-surface-muted);white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--r-font-mono);tab-size:2;border-radius:8px;margin:0;padding:16px 18px;font-size:12px;line-height:1.8}.r-hook-example{min-width:0;box-shadow:var(--r-shadow-soft)}.r-hook-example__header{align-items:center;gap:10px;padding:22px 24px 0;display:flex}.r-hook-example__header h2{min-width:0;color:var(--r-text);font-family:var(--r-font-mono);overflow-wrap:anywhere;font-size:15px;font-weight:600}.r-hook-example__symbol{width:30px;height:30px;color:var(--r-text-secondary);background:var(--r-surface-muted);border-radius:8px;flex-shrink:0;place-items:center;font-family:Georgia,serif;font-size:20px;display:grid}.r-hook-example__type{color:var(--r-text-muted);margin-inline-start:auto;font-size:11px}.r-hook-example__description{color:var(--r-text-secondary);margin:12px 24px 18px;font-size:13px;line-height:1.8}.r-hook-grid:empty{display:none}.r-demo-section-heading:has(+.r-hook-grid:empty){display:none}.r-hook-preview{border:1px solid var(--r-line);background:var(--r-surface-muted);border-radius:8px;flex-direction:column;align-items:stretch;gap:12px;margin:0 24px 20px;padding:16px;display:flex}.r-hook-preview__label{color:var(--r-text-muted);font-size:11px;font-weight:500}.r-hook-preview>code,.r-hook-preview code:not(.r-demo-code code){overflow-wrap:anywhere;font-family:var(--r-font-mono);font-size:12px}.r-hook-code{border-top:1px solid var(--r-line)}.r-hook-code summary{color:var(--r-text-secondary);cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:13px 24px;font-size:12px;list-style:none;display:flex}.r-hook-code summary>span:first-child{align-items:center;gap:7px;display:flex}.r-hook-code summary::-webkit-details-marker{display:none}.r-hook-code summary .r-icon{transition:transform .18s;transform:rotate(180deg)}.r-hook-code[open] summary .r-icon{transform:rotate(270deg)}.r-hook-code[open] summary{border-bottom:1px solid var(--r-line)}.r-hook-code__format{color:var(--r-text-muted);font-family:var(--r-font-mono);font-size:10px}.r-hook-code__toolbar{color:var(--r-text-muted);justify-content:space-between;align-items:center;padding:12px 24px 0;font-size:11px;display:flex}.r-hook-code .r-demo-code{border:0;margin:10px 16px 16px}.r-hook-capture-target{border:1px solid var(--r-line);background:var(--r-surface);color:var(--r-text);box-shadow:var(--r-shadow-soft);border-radius:12px;padding:28px;position:relative}.r-hook-capture-target h2{margin-block-end:10px;font-size:21px;font-weight:600}.r-hook-capture-target p{max-width:64ch;color:var(--r-text-secondary);line-height:1.8}.r-hook-capture-target .r-hook-capture-target__stack{color:var(--r-text-muted);margin-block-start:16px;font-size:12px}@container (width<=600px){.r-hook-example__header{padding:18px 18px 0}.r-hook-example__description{margin-inline:18px}.r-hook-preview{margin-inline:18px;padding:12px}.r-hook-code summary{padding-inline:18px}}
|