main
css 85 lines 1.92 KB
Raw
1 .SearchInput {
2 flex: 1 1;
3 display: flex;
4 align-items: center;
5 }
6
7 .Input {
8 flex: 1 1 100px;
9 width: 100px;
10 font-size: var(--font-size-sans-large);
11 outline: none;
12 border: none;
13 background-color: var(--color-background);
14 color: var(--color-text);
15 padding-left: 1.5rem;
16 margin-left: -1rem;
17 }
18
19 .InputIcon {
20 pointer-events: none;
21 z-index: 2;
22 color: var(--color-dimmer);
23 }
24
25 .IndexLabel {
26 color: var(--color-dim);
27 font-size: var(--font-size-sans-normal);
28 white-space: pre;
29 }
30
31 /* Shown while the (deferred) search is still computing matches. */
32 .Spinner {
33 flex: 0 0 auto;
34 width: 0.75rem;
35 height: 0.75rem;
36 margin: 0 0.25rem;
37 border: 2px solid var(--color-border);
38 border-top-color: var(--color-dim);
39 border-radius: 50%;
40 animation: SearchInput-spin 0.6s linear infinite;
41 }
42
43 @keyframes SearchInput-spin {
44 to {
45 transform: rotate(360deg);
46 }
47 }
48
49 .IndexInput {
50 color: var(--color-text);
51 font-size: var(--font-size-sans-normal);
52 font-family: inherit;
53 text-align: center;
54 background: none;
55 /* A visible border so it's clear this number can be edited. */
56 border: 1px solid var(--color-border);
57 border-radius: 0.125rem;
58 outline: none;
59 padding: 0 0.25rem;
60 margin: 0;
61 /* Keep a floor so the box doesn't shrink/jitter as the digit count changes. */
62 min-width: 1.5ch;
63 }
64
65 /* AutoSizeInput sizes the element width to fit the text exactly (assuming no
66 padding/border). content-box makes our padding + border add around that
67 width rather than eating into it and clipping digits. The descendant
68 selector raises specificity above the global `.DevTools *` border-box rule,
69 which otherwise wins by source order at equal specificity. */
70 .IndexLabel .IndexInput {
71 box-sizing: content-box;
72 }
73
74 .IndexInput:focus {
75 background-color: var(--color-button-background-focus);
76 }
77
78 .LeftVRule{
79 height: 20px;
80 width: 1px;
81 background-color: var(--color-border);
82 }
83 .LeftVRule {
84 margin: 0 0.25rem 0 0.5rem;
85 }