|
6 | 6 | margin: 0 2px; |
7 | 7 | } |
8 | 8 |
|
9 | | -/* IP Replacer — sticky input bar below header */ |
| 9 | +/* IP Replacer — announcement bar below header */ |
10 | 10 | .ip-replacer { |
11 | 11 | display: flex; |
12 | 12 | align-items: center; |
13 | | - gap: 0.75rem; |
14 | | - padding: 0.4rem 1rem; |
| 13 | + gap: 0.6rem; |
| 14 | + padding: 0.35rem 1rem; |
15 | 15 | background: var(--md-code-bg-color); |
16 | 16 | border-bottom: 1px solid var(--md-default-fg-color--lightest); |
17 | | - font-size: 0.82rem; |
| 17 | + font-size: 0.8rem; |
18 | 18 | flex-wrap: wrap; |
19 | 19 | } |
20 | 20 |
|
21 | 21 | .ip-replacer label { |
22 | 22 | font-weight: 600; |
23 | 23 | white-space: nowrap; |
| 24 | + display: inline-flex; |
| 25 | + align-items: center; |
| 26 | + gap: 0.3rem; |
| 27 | +} |
| 28 | + |
| 29 | +.ip-replacer-icon { |
| 30 | + font-size: 0.9rem; |
24 | 31 | } |
25 | 32 |
|
26 | 33 | .ip-replacer input { |
27 | 34 | font-family: var(--md-code-font-family); |
28 | | - font-size: 0.82rem; |
29 | | - padding: 0.25rem 0.5rem; |
| 35 | + font-size: 0.8rem; |
| 36 | + padding: 0.2rem 0.5rem; |
30 | 37 | border: 1px solid var(--md-default-fg-color--lighter); |
31 | 38 | border-radius: 4px; |
32 | 39 | background: var(--md-default-bg-color); |
33 | 40 | color: var(--md-default-fg-color); |
34 | | - width: 10rem; |
| 41 | + width: 9rem; |
35 | 42 | } |
36 | 43 |
|
37 | 44 | .ip-replacer input:focus { |
|
40 | 47 | } |
41 | 48 |
|
42 | 49 | .ip-replacer button { |
43 | | - font-size: 0.78rem; |
44 | | - padding: 0.2rem 0.6rem; |
| 50 | + font-size: 0.75rem; |
| 51 | + padding: 0.15rem 0.5rem; |
45 | 52 | border: 1px solid var(--md-default-fg-color--lighter); |
46 | 53 | border-radius: 4px; |
47 | 54 | background: var(--md-default-bg-color); |
|
53 | 60 | background: var(--md-accent-fg-color--transparent); |
54 | 61 | } |
55 | 62 |
|
56 | | -.ip-replacer .ip-replacer-disclaimer { |
| 63 | +.ip-replacer-hint { |
57 | 64 | color: var(--md-default-fg-color--light); |
58 | | - font-size: 0.72rem; |
59 | | - font-style: italic; |
60 | | -} |
61 | | - |
62 | | -/* Info button (?) */ |
63 | | -.ip-replacer-info-wrapper { |
64 | | - position: relative; |
65 | | - display: inline-flex; |
66 | | -} |
67 | | - |
68 | | -.ip-replacer-info-btn { |
69 | | - width: 1.5rem; |
70 | | - height: 1.5rem; |
71 | | - padding: 0; |
72 | | - border-radius: 50%; |
73 | | - font-weight: 700; |
74 | | - font-size: 0.75rem; |
75 | | - line-height: 1; |
76 | | - display: inline-flex; |
77 | | - align-items: center; |
78 | | - justify-content: center; |
79 | | - border: 1px solid var(--md-default-fg-color--lighter); |
80 | | - background: var(--md-default-bg-color); |
81 | | - color: var(--md-default-fg-color); |
82 | | - cursor: pointer; |
83 | | -} |
84 | | - |
85 | | -.ip-replacer-info-btn:hover { |
86 | | - background: var(--md-accent-fg-color--transparent); |
87 | | -} |
88 | | - |
89 | | -/* Tooltip */ |
90 | | -.ip-replacer-tooltip { |
91 | | - display: none; |
92 | | - position: fixed; |
93 | | - z-index: 999; |
94 | | - width: 20rem; |
95 | | - padding: 0.6rem 0.8rem; |
96 | | - border-radius: 6px; |
97 | | - font-size: 0.78rem; |
98 | | - font-style: normal; |
99 | | - font-weight: 400; |
100 | | - line-height: 1.5; |
101 | | - background: #1a1a2e; |
102 | | - color: #e8e8e8; |
103 | | - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); |
104 | | -} |
105 | | - |
106 | | -[data-md-color-scheme="slate"] .ip-replacer-tooltip { |
107 | | - background: #f0f0f0; |
108 | | - color: #1a1a1a; |
| 65 | + font-size: 0.7rem; |
109 | 66 | } |
110 | 67 |
|
111 | | -.ip-replacer-tooltip--visible { |
112 | | - display: block; |
| 68 | +.ip-replacer-hint code { |
| 69 | + font-size: 0.68rem; |
| 70 | + padding: 0.1rem 0.25rem; |
| 71 | + border-radius: 3px; |
| 72 | + background: var(--md-default-fg-color--lightest); |
113 | 73 | } |
114 | 74 |
|
115 | 75 | /* Highlighted replaced IP values */ |
|
0 commit comments