Skip to content

Commit 583d8d4

Browse files
authored
style select menu in search filter (PR #101)
1 parent f0c26fb commit 583d8d4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/css/vendor/docsearch.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,16 @@
125125
margin-left: 1.5rem;
126126
max-width: min-content;
127127
margin-top: 4px;
128-
font-size: 0.8em;
129128
display: none;
129+
appearance: none;
130+
font-size: 0.9em;
131+
line-height: 1.3;
132+
padding: 0.25em 1.5em 0.25em 0.5em;
133+
border: 1px solid #c1c1c1;
134+
border-radius: 0.25em;
135+
box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.05);
136+
background: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M207.029%20381.476L12.686%20187.132c-9.373-9.373-9.373-24.569%200-33.941l22.667-22.667c9.357-9.357%2024.522-9.375%2033.901-.04L224%20284.505l154.745-154.021c9.379-9.335%2024.544-9.317%2033.901.04l22.667%2022.667c9.373%209.373%209.373%2024.569%200%2033.941L240.971%20381.476c-9.373%209.372-24.569%209.372-33.942%200z%22%2F%3E%3C%2Fsvg%3E) no-repeat right 0.5em top 55% / 0.75em auto, linear-gradient(to bottom, #fff 0%, #e5e5e5 100%) repeat;
137+
background-color: #fff;
130138
}
131139

132140
.algolia-autocomplete .ds-filter input[type=checkbox]:checked ~ select {

0 commit comments

Comments
 (0)