103 lines
1.6 KiB
SCSS
103 lines
1.6 KiB
SCSS
.search-box {
|
|
background: $base-panel;
|
|
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 1 auto;
|
|
padding-left: 0;
|
|
font-weight: bold;
|
|
color: $base-head;
|
|
min-width: 48px;
|
|
|
|
&::placeholder {
|
|
font-weight: normal;
|
|
color: $base-mute;
|
|
}
|
|
}
|
|
|
|
& > input:focus {
|
|
outline: 0;
|
|
}
|
|
|
|
& > .prefix {
|
|
@include font-size(0);
|
|
display: block;
|
|
color: rgba($base-mute, 0.5);
|
|
font-weight: 400;
|
|
user-select: none;
|
|
line-height: 1.5em;
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
background: rgba($base-body, 0.5);
|
|
margin: 0 0 0 16px;
|
|
box-shadow: 0 1px 1px rgba($base-mute, 0.25);
|
|
}
|
|
|
|
& > .sep {
|
|
color: rgba($base-mute, 0.5);
|
|
@include font-size(2);
|
|
margin: 0 8px;
|
|
}
|
|
|
|
// Hide prefix in mobiel
|
|
@media (max-width: 768px) {
|
|
& > .prefix,
|
|
& > .sep {
|
|
display: none;
|
|
}
|
|
|
|
& > input {
|
|
padding-left: 16px;
|
|
}
|
|
}
|
|
|
|
// Icon
|
|
&::before {
|
|
content: '';
|
|
@include ion-md-search(32px, $base-head);
|
|
background-position: center center;
|
|
flex: 0 0 64px;
|
|
width: 64px;
|
|
order: 2;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Small
|
|
*/
|
|
|
|
.search-box.-small {
|
|
& {
|
|
height: 48px;
|
|
}
|
|
|
|
& > input {
|
|
padding: 8px;
|
|
height: 48px;
|
|
padding-left: 0;
|
|
}
|
|
|
|
& > .prefix,
|
|
& > .sep,
|
|
& > input {
|
|
@include font-size(1);
|
|
}
|
|
|
|
&::before {
|
|
flex: 0 0 48px;
|
|
width: 48px;
|
|
line-height: 48px;
|
|
font-size: 24px;
|
|
}
|
|
}
|