Skip to content

Commit f1021e6

Browse files
committed
styling: increase input height, add configurable spacing
ref #12
1 parent 3fdec71 commit f1021e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/autocomplete/autocomplete.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
--input-color: var(--gray-900);
2727
--input-bg: #fff;
2828
--input-border-color: var(--gray-300);
29+
--input-height: 47px;
2930
--input-shadow:
3031
rgba(0, 0, 0, 0) 0px 0px 0px 0px,
3132
rgba(0, 0, 0, 0) 0px 0px 0px 0px,
3233
rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
3334

3435
--loading-color: var(--gray-500);
3536

37+
--results-spacing: 10px;
3638
--results-bg: #fff;
3739
--results-z-index: 10;
3840
--results-shadow:
@@ -76,6 +78,7 @@
7678
font-family: var(--font-family);
7779
color: var(--input-color);
7880
background: var(--input-bg);
81+
height: var(--input-height);
7982
display: block;
8083
width: 100%;
8184
border: 1px solid var(--input-border-color);
@@ -100,7 +103,7 @@
100103
.results {
101104
font-size: 16px;
102105
position: absolute;
103-
top: calc(46px + 10px); /* height of input plus 10px spacing */
106+
top: calc(var(--input-height) + var(--results-spacing));
104107
left: 0;
105108
margin: 0;
106109
padding: 0 0 35px 0; /* padding bottom equal to attribution height */

0 commit comments

Comments
 (0)