Skip to content

Commit f1cebca

Browse files
committed
Align autocompletion with results
1 parent 9eeba4b commit f1cebca

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

Diff for: assets/css/autocomplete.css

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
.autocomplete {
22
display: none;
33
height: 0;
4-
margin: 0 5px 0 0;
4+
margin-right: 32px;
55
overflow: visible;
66
position: relative;
7-
width: 95%;
87
}
98

109
.autocomplete .triangle {
1110
width: 0;
1211
height: 0;
1312
border-left: 12px solid transparent;
1413
border-right: 12px solid transparent;
15-
border-bottom: 12px solid var(--autocompleBackground);
14+
border-bottom: 12px solid var(--autocompleBackground);
1615
position: absolute;
17-
top: 9px;
18-
left: 10%;
16+
top: 9px;
17+
left: 10%;
1918
transform: translateX(-50%);
20-
z-index: 250;
21-
background-color: transparent;
19+
z-index: 250;
20+
background-color: transparent;
2221
}
2322

2423
.autocomplete-results {
@@ -61,20 +60,19 @@
6160
width: 100%;
6261
z-index: 200;
6362
box-shadow: 0px 15px 99px 0px var(--autocompleteBorder);
64-
overflow-y: auto;
65-
max-height: 450px;
63+
overflow-y: auto;
64+
max-height: 450px;
6665
padding: 0 0 10px 0;
67-
margin-right: 10px;
6866
white-space: normal;
69-
overflow-x: hidden;
67+
overflow-x: hidden;
7068
}
7169

7270
.autocomplete-suggestion {
7371
color: inherit;
7472
display: block;
7573
padding: 12px 20px;
7674
text-decoration: none;
77-
transition: background-color .3s ease-in-out;
75+
transition: background-color 0.3s ease-in-out;
7876
border-bottom: 1px solid var(--suggestionBorder);
7977
font-size: 0.9rem;
8078
}
@@ -90,7 +88,7 @@
9088
}
9189

9290
.autocomplete-suggestion .description {
93-
opacity: .6;
91+
opacity: 0.6;
9492
padding-top: 3px;
9593
}
9694

@@ -128,7 +126,7 @@
128126
/* Style the scrollbar thumb (the draggable part) */
129127
.autocomplete-suggestions::-webkit-scrollbar-thumb {
130128
background-color: var(--autocompleteSrollbarThumb);
131-
border-radius: 7px;
129+
border-radius: 7px;
132130
}
133131

134132
/* Style the scrollbar track on hover */
@@ -138,26 +136,26 @@
138136

139137
@media (max-width: 480px) {
140138
.autocomplete .triangle {
141-
left: 27%;
139+
left: 27%;
142140
}
143141
}
144142

145143
@media (max-width: 767px) {
146144
.autocomplete .triangle {
147-
left: 17%;
145+
left: 17%;
148146
}
149147
}
150148

151149
@media (max-width: 1024px) {
152150
.autocomplete-results {
153151
gap: 0;
154152
}
155-
153+
156154
.autocomplete-results .show {
157155
width: 100%;
158156
}
159-
157+
160158
.autocomplete-results .mobile-hide {
161159
display: none;
162160
}
163-
}
161+
}

Diff for: formatters/html/dist/html-elixir-2PWT2FJB.css renamed to formatters/html/dist/html-elixir-T7D3DW6I.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: formatters/html/dist/html-erlang-H34DEZYS.css renamed to formatters/html/dist/html-erlang-QW5RMTQD.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)