Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 1bb950e

Browse files
committed
Algolia Search drop updates
1 parent 61655ff commit 1bb950e

File tree

1 file changed

+14
-31
lines changed

1 file changed

+14
-31
lines changed

components/molecules/AlgoliaSearch/AlgoliaSearch.module.css

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@apply relative h-full;
2121

2222
& input {
23-
@apply w-full p-2 pr-8 border rounded;
23+
@apply w-full p-2 pr-12 border rounded text-sm;
2424

2525
background: #fff;
2626
line-height: 1;
@@ -35,7 +35,7 @@
3535

3636
/* Buttons (Submit, Reset) */
3737
& button {
38-
@apply absolute cursor-pointer flex justify-center items-center right-4;
38+
@apply absolute cursor-pointer flex justify-center items-center right-2;
3939

4040
width: 28px;
4141
height: 28px;
@@ -56,7 +56,7 @@
5656

5757
/* Reset Button */
5858
&[type='reset'] {
59-
@apply right-28;
59+
@apply right-8;
6060

6161
& svg {
6262
width: 12px;
@@ -77,8 +77,8 @@
7777

7878
z-index: 999;
7979
bottom: -10px;
80-
width: 112%;
81-
margin-left: -6%;
80+
width: 106%;
81+
margin-left: -3%;
8282
}
8383

8484
/* Show dropmenu on Focus */
@@ -102,28 +102,16 @@
102102
background-color: #fff;
103103

104104
& ul {
105-
@apply py-8;
106-
107-
& li {
108-
&:not(.clear) {
109-
& button {
110-
&:hover,
111-
&:focus {
112-
color: #fff;
113-
114-
& span.time {
115-
color: #fff;
116-
}
117-
}
118-
}
119-
}
120-
}
105+
@apply p-2;
121106
}
122107

123108
& button {
124-
@apply block w-full py-12 px-20 text-left transition font-semibold;
109+
@apply block w-full p-2 text-left transition font-semibold text-sm;
125110

126-
line-height: 1.25;
111+
&:hover,
112+
&:focus {
113+
@apply underline;
114+
}
127115

128116
& em {
129117
font-style: normal;
@@ -137,22 +125,17 @@
137125
@apply w-full flex justify-between items-center;
138126

139127
& span.time {
140-
@apply overflow-ellipsis text-right font-normal italic flex-shrink-0 self-start;
128+
@apply overflow-ellipsis text-right font-normal italic flex-shrink-0 self-start text-xs opacity-50;
141129

142130
width: 30%;
143131
}
144132
}
145133

146134
& .clear {
147-
@apply mt-4 border-none;
135+
@apply mt-2 border-t;
148136

149137
& button {
150-
@apply py-8 font-normal;
151-
152-
&:hover,
153-
&:focus {
154-
@apply underline;
155-
}
138+
@apply mt-2 font-normal text-xs;
156139
}
157140
}
158141
}

0 commit comments

Comments
 (0)