|
61 | 61 | <style lang="scss"> |
62 | 62 | :global { |
63 | 63 | .maplibregl-ctrl-geocoder { |
64 | | - background-color: #fff; |
| 64 | + background-color: var(--color-surfaceFill); |
65 | 65 | position: relative; |
66 | 66 | width: 100%; |
67 | 67 | z-index: 1; |
68 | 68 | font-family: var(--swr-sans); |
69 | 69 | font-size: var(--fs-small-1); |
70 | 70 | border-radius: var(--br-small); |
71 | | - border: 1px solid rgba(0, 0, 0, 0.75); |
72 | | - box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075); |
| 71 | + border: 1px solid var(--color-surfaceBorder); |
| 72 | + box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.075); |
| 73 | +
|
| 74 | + button { |
| 75 | + cursor: pointer; |
| 76 | + } |
73 | 77 | } |
74 | 78 |
|
75 | 79 | .maplibre-gl-geocoder--error { |
76 | 80 | font-size: var(--fs-small-2); |
77 | | - color: var(--gray-dark-2); |
| 81 | + color: var(--color-textSecondary); |
78 | 82 | padding: 0.4em 0.65em; |
79 | 83 | } |
80 | 84 |
|
|
84 | 88 | font-family: inherit; |
85 | 89 | font-size: inherit; |
86 | 90 | background-color: transparent; |
87 | | - color: var(--gray-dark-5); |
| 91 | + color: var(--color-textPrimary); |
88 | 92 | border: 0; |
89 | | - height: 1.85em; |
90 | | - padding: 0 1.85em; |
| 93 | + height: 1.95em; |
| 94 | + padding: 0 1.95em; |
91 | 95 | padding-top: 0.1em; |
92 | 96 | text-overflow: ellipsis; |
93 | 97 | white-space: nowrap; |
|
96 | 100 |
|
97 | 101 | .maplibregl-ctrl-geocoder--input::placeholder { |
98 | 102 | opacity: 1; |
99 | | - color: var(--gray-dark-2); |
| 103 | + color: var(--color-textSecondary); |
100 | 104 | } |
101 | 105 | .maplibregl-ctrl-geocoder--input:focus { |
102 | | - color: var(--gray-dark-5); |
| 106 | + color: var(--color-textPrimary); |
103 | 107 | outline: 0; |
104 | 108 | } |
105 | 109 |
|
|
115 | 119 |
|
116 | 120 | /* Suggestions */ |
117 | 121 | .maplibregl-ctrl-geocoder .suggestions { |
118 | | - background: white; |
| 122 | + background: var(--color-surfaceFill); |
119 | 123 | border: 1px solid rgba(0, 0, 0, 0.75); |
120 | 124 | box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); |
121 | 125 | border-radius: var(--br-small); |
|
140 | 144 | padding: 0.5em 0.75em; |
141 | 145 | color: var(--gray-dark-5); |
142 | 146 | padding-bottom: 0.5em; |
143 | | - border-bottom: 1px solid var(--gray-light-3); |
| 147 | + border-bottom: 1px solid var(--color-surfaceBorder); |
144 | 148 | } |
145 | 149 | .maplibregl-ctrl-geocoder .suggestions > li:last-child > a { |
146 | 150 | border-bottom: 0; |
147 | 151 | } |
148 | 152 |
|
149 | 153 | .maplibregl-ctrl-geocoder .suggestions > .active > a, |
150 | 154 | .maplibregl-ctrl-geocoder .suggestions > li > a:hover { |
151 | | - background: var(--gray-light-5); |
| 155 | + background: var(--color-surfaceHover); |
152 | 156 | text-decoration: none; |
153 | 157 | cursor: pointer; |
154 | 158 | } |
|
180 | 184 | display: none; |
181 | 185 | } |
182 | 186 | .maplibregl-ctrl-geocoder--result-title { |
| 187 | + color: var(--color-textPrimary); |
183 | 188 | font-weight: 600; |
184 | 189 | letter-spacing: 0; |
185 | 190 | } |
186 | 191 | .maplibregl-ctrl-geocoder--result-address { |
187 | 192 | font-size: var(--fs-small-2); |
188 | | - color: var(--gray-dark-2); |
| 193 | + color: var(--color-textSecondary); |
189 | 194 | line-height: 1.3; |
190 | 195 | } |
191 | 196 |
|
|
195 | 200 | top: 50%; |
196 | 201 | transform: translateY(-50%); |
197 | 202 | height: 1em; |
| 203 | + path { |
| 204 | + fill: var(--color-textPrimary); |
| 205 | + } |
198 | 206 | } |
199 | 207 |
|
200 | 208 | .maplibregl-ctrl-geocoder--icon-close { |
|
0 commit comments