|
14 | 14 | color: #9ca3af; |
15 | 15 | } |
16 | 16 |
|
| 17 | + .search-item { |
| 18 | + background-color: #374151 !important; |
| 19 | + border-radius: 0.5rem !important; |
| 20 | + margin-bottom: 0.5rem !important; |
| 21 | + overflow: hidden !important; |
| 22 | + } |
| 23 | + |
17 | 24 | .search-item a { |
18 | | - color: #d1d5db; |
19 | | - padding: 0.75rem; |
20 | | - display: block; |
21 | | - border-radius: 0.375rem; |
22 | | - background-color: #374151; |
23 | | - transition: background-color 0.2s; |
| 25 | + color: #d1d5db !important; |
| 26 | + padding: 0.75rem !important; |
| 27 | + display: block !important; |
| 28 | + background-color: #374151 !important; |
| 29 | + transition: background-color 0.2s !important; |
| 30 | + text-decoration: none !important; |
| 31 | + border-radius: inherit !important; |
24 | 32 | } |
25 | 33 |
|
| 34 | + .search-item:hover, |
26 | 35 | .search-item a:hover, |
| 36 | + .search-item[aria-selected], |
27 | 37 | .search-item[aria-selected] a { |
28 | | - background-color: #4b5563; |
29 | | - color: white; |
| 38 | + background-color: #4b5563 !important; |
| 39 | + color: white !important; |
30 | 40 | } |
31 | 41 |
|
32 | 42 | .search-item-title { |
|
208 | 218 | Object.keys(result).forEach((key, index) => { |
209 | 219 | resultsContainer.insertAdjacentHTML( |
210 | 220 | 'beforeend', |
211 | | - `<dd class="search-item" role="option"> |
212 | | - <a href="${result[key].url}"> |
| 221 | + `<dd class="search-item" role="option" style="background-color: #374151; border-radius: 0.5rem; margin-bottom: 0.5rem; overflow: hidden;"> |
| 222 | + <a href="${result[key].url}" style="color: #d1d5db; padding: 0.75rem; display: block; background-color: #374151; text-decoration: none; border-radius: inherit;"> |
213 | 223 | <span class="search-item-icon"></span> |
214 | 224 | <span class="search-item-content"> |
215 | 225 | ${result[key].path && result[key].product ? `<div class="search-item-container"><span class="search-item-path">${result[key].path}</span><span class="px-2">→</span><span class="search-item-path">${result[key].product}</span></div>` : ''} |
|
0 commit comments