Skip to content

Commit 843ee4d

Browse files
Merge pull request #2434 from buildkite/style-search
Style search button
2 parents fd96e30 + 1c0a3d0 commit 843ee4d

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

app/assets/stylesheets/components/docsearch/button.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
.DocSearch-Button {
22
align-items: center;
3-
background: var(--docsearch-searchbox-background);
3+
background: white;
44
border: 0;
55
border-radius: 5px;
66
color: var(--docsearch-muted-color);
77
cursor: pointer;
88
display: flex;
9-
font-weight: 500;
109
height: 36px;
1110
justify-content: space-between;
1211
margin: 0 0 0 16px;
1312
padding: 0 8px;
1413
user-select: none;
14+
transition: box-shadow $transition-speed, color $transition-speed;
15+
16+
box-shadow: rgba(93, 9, 199, 0) 0px 0px 0px 0px,
17+
rgba(93, 9, 199, 0.1) 0px 1px 3px, rgba(93, 9, 199, 0.2) 0px 0px 0px 1px,
18+
rgba(93, 9, 199, 0.05) 0px 3px 8px;
1519
}
1620

1721
.DocSearch-Button:hover,
1822
.DocSearch-Button:active,
1923
.DocSearch-Button:focus {
20-
background: var(--docsearch-searchbox-focus-background);
21-
box-shadow: var(--docsearch-searchbox-shadow);
22-
color: var(--docsearch-text-color);
24+
background: $base-0;
25+
color: map-get($color-aliases, "text-display");
26+
box-shadow: rgba(93, 9, 199, 0.2) 0px 0px 0px 3px,
27+
rgba(93, 9, 199, 0.2) 0px 1px 3px, rgba(93, 9, 199, 0.2) 0px 0px 0px 1px,
28+
rgba(93, 9, 199, 0.1) 0px 3px 8px;
2329
outline: none;
2430
}
2531

@@ -39,6 +45,10 @@
3945
.DocSearch-Button-Placeholder {
4046
font-size: 1rem;
4147
padding: 0 12px 0 6px;
48+
49+
@media (min-width: $screen-md) {
50+
font-size: map-get($font-sizes, "sm");
51+
}
4252
}
4353

4454
.DocSearch-Button-Keys {

app/assets/stylesheets/components/docsearch/modal.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@
224224
font-size: 1.2em;
225225
}
226226

227+
.DocSearch-Logo {
228+
display: none;
229+
}
230+
227231
.DocSearch-Logo a {
228232
display: flex;
229233
}
@@ -525,6 +529,7 @@ svg.DocSearch-Hit-Select-Icon {
525529
list-style: none;
526530
margin: 0;
527531
padding: 0;
532+
flex: 1;
528533
}
529534

530535
.DocSearch-Commands li {

0 commit comments

Comments
 (0)