Update search box
This commit is contained in:
parent
569ee8ca78
commit
1a1001e5e2
|
@ -26,6 +26,8 @@ type: website
|
|||
</p>
|
||||
<form data-js-search-form class='search' action='.' method='get'>
|
||||
<label class='search-box'>
|
||||
<!-- <span class='prefix'>devhints.io</span> -->
|
||||
<!-- <span class='sep'>/</span> -->
|
||||
<input name='q' type='text' placeholder='Search...' autofocus data-js-search-input>
|
||||
</label>
|
||||
</form>
|
||||
|
|
|
@ -3,28 +3,52 @@
|
|||
box-shadow: $shadow3;
|
||||
display: flex;
|
||||
height: 64px;
|
||||
align-items: center;
|
||||
cursor: text;
|
||||
|
||||
& > input {
|
||||
font-family: $body-font;
|
||||
@include font-size(2);
|
||||
padding: 16px;
|
||||
height: 64px;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
Flex: 1 0 auto;
|
||||
padding-left: 0;
|
||||
font-weight: bold;
|
||||
color: $base-head;
|
||||
|
||||
&::placeholder {
|
||||
font-weight: normal;
|
||||
color: $base-mute;
|
||||
}
|
||||
}
|
||||
|
||||
& > input:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
& > .prefix,
|
||||
& > .sep {
|
||||
@include font-size(2);
|
||||
display: block;
|
||||
color: $base-mute;
|
||||
font-weight: 400;
|
||||
opacity: 0.5;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
& > .sep {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
&::before {
|
||||
@include ion-icon('md-search');
|
||||
font-size: 32px;
|
||||
color: $base-head;
|
||||
flex: 0 0 48px;
|
||||
width: 48px;
|
||||
flex: 0 0 64px;
|
||||
width: 64px;
|
||||
line-height: 64px;
|
||||
text-indent: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue