包页面→ /design/shtukbase-ui-html/components/composite/command/command.css
pages/design/shtukbase-ui-html/components/composite/command/command.css
23 行, 2.3 KB. 直接打开 (在项目中它旁边还有其他文件,这里可能缺失).
文件按包中的原样显示:代码及其注释不做翻译。
- /* command: a floating sheet; the search line, a hairline, the list. The chosen item is grey. */
- .command {
- display: flex; flex-direction: column; width: 100%; max-width: 420px; min-width: 0; box-sizing: border-box; overflow: hidden;
- border-radius: var(--radius); background: var(--popover, var(--background)); color: var(--popover-foreground, var(--foreground));
- box-shadow: var(--sb-shadow-sheet, var(--shadow-md));
- }
- .command-input-wrapper { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--border); }
- .command-input-wrapper svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted-foreground); stroke-width: 1.5; stroke-linecap: round; }
- .command-input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; outline: none; background: transparent; font: 400 14px/1 var(--font-sans); color: inherit; }
- .command-input::placeholder { color: var(--muted-foreground); }
- .command-list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; padding: 4px; }
- .command-group { display: flex; flex-direction: column; }
- .command-group-heading { padding: 8px 8px 4px; font: 500 11.5px/1.3 var(--font-sans); color: var(--muted-foreground); overflow-wrap: anywhere; hyphens: auto; }
- .command-item {
- display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 8px; box-sizing: border-box; border-radius: calc(var(--radius) - 3px);
- font: 400 13.5px/1.35 var(--font-sans); cursor: pointer; overflow-wrap: anywhere; hyphens: auto; min-width: 0;
- }
- .command-item svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted-foreground); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
- .command-item:is(:hover, [data-selected]) { background: color-mix(in srgb, var(--foreground) 6%, transparent); }
- .command-item[aria-disabled="true"] { opacity: .5; pointer-events: none; }
- .command-shortcut { margin-left: auto; flex: none; padding-left: 8px; font: 400 11.5px/1 var(--font-sans); color: var(--muted-foreground); }
- .command-separator { height: 1px; margin: 4px -4px; background: var(--border); }
- .command-empty { padding: 22px 12px; text-align: center; font: 400 13px/1.4 var(--font-sans); color: var(--muted-foreground); overflow-wrap: anywhere; hyphens: auto; }