Skip to content

Commit 38fee27

Browse files
Move CSS changes to _custom.scss
1 parent 3f3bda2 commit 38fee27

File tree

2 files changed

+29
-30
lines changed

2 files changed

+29
-30
lines changed

assets/scss/_custom.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,3 +1003,32 @@ div.alert > em.javascript-required {
10031003
margin: 0.25em;
10041004
}
10051005
}
1006+
1007+
// Adjust Search-bar search-icon
1008+
.search-bar {
1009+
display: flex;
1010+
align-items: center;
1011+
background-color: #fff;
1012+
border: 1px solid #4c4c4c;
1013+
border-radius: 20px;
1014+
vertical-align: middle;
1015+
flex-grow: 1;
1016+
overflow-x: hidden;
1017+
width: auto;
1018+
}
1019+
1020+
.search-bar:focus-within {
1021+
border: 2.5px solid rgba(47, 135, 223, 0.7);
1022+
}
1023+
1024+
.search-bar i.search-icon {
1025+
padding: .5em .5em .5em .75em;
1026+
opacity: .75;
1027+
}
1028+
1029+
.search-input {
1030+
flex: 1;
1031+
border: none;
1032+
outline: none;
1033+
padding: .5em 0 .5em 0;
1034+
}

layouts/partials/search-input.html

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
<style>
2-
.search-bar {
3-
display: flex;
4-
align-items: center;
5-
background-color: #fff;
6-
border: 1px solid #4c4c4c;
7-
border-radius: 20px;
8-
vertical-align: middle;
9-
flex-grow: 1;
10-
overflow-x: hidden;
11-
width: auto;
12-
}
13-
14-
.search-bar:focus-within {
15-
border: 2.5px solid rgba(47, 135, 223, 0.7);
16-
}
17-
18-
.search-bar i.search-icon {
19-
padding: .5em .5em .5em .75em;
20-
opacity: .75;
21-
}
22-
23-
.search-input {
24-
flex: 1;
25-
border: none;
26-
outline: none;
27-
padding: .5em 0 .5em 0;
28-
}
29-
</style>
30-
311
{{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
322
<div class="search-bar">
333
<i class="search-icon fas fa-search"></i>

0 commit comments

Comments
 (0)