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