1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
|
.autocomplete {
display: none;
position: absolute;
width: calc(100% - 32px);
top: 55px;
}
.autocomplete .triangle {
width: 0;
height: 0;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-bottom: 12px solid var(--autocompleteBackground);
position: absolute;
top: 8px;
left: 26px;
transform: translateX(-50%);
z-index: 100;
background-color: transparent;
}
.autocomplete-preview {
width: 100%;
margin: 0;
height: 100%;
line-height: 20px;
background-color: var(--background);
font-family: var(--sansFontFamily);
border: 4px solid var(--autocompleteBorder);
padding: 12px 16px;
}
.autocomplete-preview div, .autocomplete-preview span {
display: none;
}
.autocomplete-preview.loading div {
float: left;
display: block;
border: 5px solid var(--autocompleteBorder);
border-radius: 50%;
border-top: 5px solid var(--textDetailAccent);
width: 20px;
height: 20px;
animation: spinner 4s linear infinite;
}
.autocomplete-preview.loading span {
color: var(--autocompleteResults);
display: inline;
margin-left: 6px;
}
.autocomplete-preview.loading span:after {
color: var(--autocompleteResults);
content: "Loading";
}
@keyframes spinner {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.autocomplete-preview.loading iframe {
height: 0;
}
.autocomplete-preview iframe {
width: 100%;
height: 100%;
border: 0;
}
.autocomplete-results {
list-style: none;
margin: 0;
padding: 15px 20px;
display: flex;
justify-content: space-between;
color: var(--autocompleteResults);
font-family: var(--sansFontFamily);
font-weight: 300;
font-size: 0.9rem;
}
.autocomplete-results .bold {
color: var(--autocompleteResultsBold);
font-weight: 400;
}
.autocomplete.shown {
display: block;
}
.autocomplete-container {
position: absolute;
top: 15px;
width: 100%;
z-index: 200;
}
.autocomplete-suggestions {
background-color: var(--autocompleteBackground);
border-radius: 8px;
box-shadow: 0px 15px 99px 0px var(--autocompleteBorder);
overflow-y: auto;
max-height: 450px;
white-space: normal;
overflow-x: hidden;
overscroll-behavior-y: contain;
}
.autocomplete-suggestions.previewing:has(.selected) {
max-height: 80vh;
}
.autocomplete-suggestions.previewing:has(.selected) .autocomplete-suggestion:not(.selected) {
display: none;
}
.autocomplete-suggestions.previewing:not(:has(.selected)) .autocomplete-preview {
display: none;
}
.autocomplete-suggestions:not(.previewing) .autocomplete-preview {
display: none;
}
.autocomplete-suggestion {
color: inherit;
display: block;
padding: 12px 20px;
text-decoration: none;
transition: background-color 0.3s ease-in-out;
border-top: 1px solid var(--suggestionBorder);
font-size: 0.9rem;
}
.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
background-color: var(--autocompleteHover);
}
.autocomplete-suggestion:not(.selected) .autocomplete-preview-indicator {
display: none;
}
.autocomplete-preview-indicator {
float: right;
}
.autocomplete-preview-indicator button {
color: var(--iconAction);
display: flex;
align-items: center;
text-decoration: none;
border: 1px solid var(--suggestionBorder);
border-radius: 8px;
transition: color .3s ease-in-out;
background-color: var(--autocompletePreview);
cursor: pointer;
padding: 4px 8px;
font-size: 14px;
}
.autocomplete-preview-indicator button:hover {
color: var(--iconActionHover);
background-color: var(--autocompleteHover);
}
.autocomplete-preview-indicator button i {
margin-right: 4px;
}
.autocomplete-suggestions.previewing .autocomplete-preview-indicator-closed {
display: none;
}
.autocomplete-suggestions:not(.previewing) .autocomplete-preview-indicator-open {
display: none;
}
.autocomplete-suggestion:hover:not(.selected) .autocomplete-preview-indicator-closed {
display: block;
}
.autocomplete-suggestion em {
font-style: normal;
font-weight: bold;
}
.autocomplete-suggestion .description {
opacity: 0.6;
padding-top: 3px;
}
.autocomplete-suggestion .label {
background-color: var(--autocompleteLabelBack);
opacity: 0.6;
color: var(--autocompleteLabelFont);
padding: 4px 8px 4px 8px;
border-radius: 4px;
margin-left: 5px;
text-transform: uppercase;
font-family: var(--sansFontFamily);
font-size: 0.7rem;
}
.autocomplete-suggestion .header {
margin-right: 5px;
}
.autocomplete-suggestion .title,
.autocomplete-suggestion .description {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
.autocomplete-suggestions a {
text-decoration: none !important;
}
/* Style the scrollbar track (the area behind the thumb) */
.autocomplete-suggestions::-webkit-scrollbar {
width: 5px;
/* Set the width of the scrollbar */
border-radius: 7px;
/* Add rounded corners to the thumb */
flex-shrink: 0;
}
/* Style the scrollbar thumb (the draggable part) */
.autocomplete-suggestions::-webkit-scrollbar-thumb {
background-color: var(--autocompleteSrollbarThumb);
border-radius: 7px;
}
/* Style the scrollbar track on hover */
.autocomplete-suggestions::-webkit-scrollbar-track {
background-color: var(--autocompleteSrollbarTrack);
}
@media screen and (max-width: 1023px) {
.autocomplete-results .press-return {
display: none;
}
}
|