返回 DeepSeek-Reasonix
SettingsSelect.css
根目录 / desktop / frontend / src / components / SettingsSelect.css
1 /* Shared across settings pages and portaled menus; never depend on a page ancestor. */
2 :root .settings-select {
3 box-sizing: border-box;
4 display: inline-flex;
5 align-items: center;
6 justify-content: space-between;
7 gap: 10px;
8 width: 100%;
9 min-width: 0;
10 height: 36px;
11 min-height: 36px;
12 padding: 0 10px;
13 border: 1px solid var(--border);
14 border-radius: 8px;
15 background: var(--bg);
16 color: var(--fg);
17 font: inherit;
18 font-size: var(--font-control, 14px);
19 line-height: 20px;
20 text-align: left;
21 cursor: pointer;
22 --reasonix-draggable: no-drag;
23 }
24 .settings-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
25 .settings-select > svg { flex: 0 0 auto; color: var(--fg-dim); }
26 :root .settings-select:hover:not(:disabled) { background: var(--bg-elev); border-color: var(--border-2); }
27 :root .settings-select:disabled { opacity: .55; cursor: not-allowed; }
28 :root .settings-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
29 .settings-select-menu {
30 display: flex;
31 flex-direction: column;
32 max-width: calc(100vw - 16px);
33 max-height: min(280px, calc(100dvh - 24px));
34 overflow: hidden;
35 border: 1px solid var(--border);
36 border-radius: 8px;
37 background: var(--bg-elev);
38 color: var(--fg);
39 box-shadow: 0 6px 20px rgb(0 0 0 / 14%);
40 font-size: var(--font-control, 14px);
41 }
42 .settings-select-menu__search { flex: 0 0 auto; padding: 6px; border-bottom: 1px solid var(--border-soft); }
43 .settings-select-menu__search input { box-sizing: border-box; width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--fg); font: inherit; }
44 .settings-select-menu__search input:focus-visible { outline: 1px solid var(--accent); }
45 .settings-select-menu__list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
46 .settings-select-menu__list:focus-visible { outline: none; }
47 .settings-select-menu__group { padding: 4px 8px; line-height: 16px; color: var(--fg-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
48 .settings-select-menu__option { display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box; height: 32px; padding: 0 8px; border-radius: 5px; cursor: pointer; }
49 .settings-select-menu__option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
50 .settings-select-menu__option > svg { flex: 0 0 auto; color: var(--accent); }
51 .settings-select-menu__option.is-active { background: var(--button-bg-hover); }
52 .settings-select-menu__option[aria-selected="true"] { font-weight: 600; }
53 .settings-select-menu__option[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
54 .settings-select-menu__empty { padding: 12px 8px; color: var(--fg-dim); }
55
55 lines CSS