Skip to content

Commit ee40453

Browse files
committed
Beautified the search input.
1 parent a26826b commit ee40453

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

assets/css/main.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,30 +274,35 @@ body {
274274
display: none;
275275
}
276276

277-
#search-wrap i {
277+
#search-wrap i.fas {
278278
position: relative;
279279
top: 1rem;
280280
left: .5rem;
281281
z-index: 2;
282282
font-size: .9rem;
283-
color: #c2c6cc!important;
283+
color: #c2c6cc;
284284
}
285285

286286
#search-input {
287287
position: relative;
288288
top: -.86rem;
289289
background: #f5f5f5;
290-
border-color: #e9ecef;
290+
border-color: #fff;
291291
border-radius: 0.9rem;
292292
padding: .18rem .75rem .18rem 2rem;
293-
color: #797878;
294293
}
295294

296295
#search-input:focus {
297296
box-shadow: none;
298297
background: center;
298+
border-color: #e9ecef;
299299
}
300300

301+
#search-input:focus.form-control::-webkit-input-placeholder { opacity: 0.6; }
302+
#search-input:focus.form-control::-moz-placeholder { opacity: 0.6; }
303+
#search-input:focus.form-control:-ms-input-placeholder { opacity: 0.6; }
304+
#search-input:focus.form-control::placeholder { opacity: 0.6; }
305+
301306
#topbar-title {
302307
display: none;
303308
font-size: 1.1rem;

0 commit comments

Comments
 (0)