2019-08-21 18:08:08 +00:00
|
|
|
.searchbar {
|
2019-10-02 15:17:52 +00:00
|
|
|
position: relative;
|
2019-08-21 18:08:08 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchbar__input {
|
|
|
|
width: #{240 / $base-font-size}rem;
|
|
|
|
height: #{36 / $base-font-size}rem;
|
|
|
|
border: solid 0.5px;
|
|
|
|
padding-left: #{36 / $base-font-size}rem;
|
|
|
|
padding-right: #{38 / $base-font-size}rem;
|
|
|
|
@include themify() {
|
|
|
|
border-color: getThemifyVariable('input-border-color');
|
2020-04-24 22:34:26 +00:00
|
|
|
background-color: getThemifyVariable('input-background-color');
|
2019-08-21 18:08:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-02 19:54:40 +00:00
|
|
|
div.searchbar__button {
|
2019-09-24 21:52:45 +00:00
|
|
|
background-color: unset;
|
2019-08-21 18:08:08 +00:00
|
|
|
width: #{31 / $base-font-size}rem;
|
|
|
|
height: #{36 / $base-font-size}rem;
|
|
|
|
position: absolute;
|
2020-02-25 17:52:52 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-08-21 18:08:08 +00:00
|
|
|
padding: 0;
|
2019-09-24 21:52:45 +00:00
|
|
|
border: 0;
|
2019-08-21 18:08:08 +00:00
|
|
|
border-right: solid 1px;
|
|
|
|
@include themify() {
|
|
|
|
border-right-color: getThemifyVariable('input-border-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchbar__icon {
|
|
|
|
display: inline-block;
|
|
|
|
& svg {
|
|
|
|
width: #{22 / $base-font-size}rem;
|
|
|
|
height: #{27 / $base-font-size}rem;
|
|
|
|
transform: scaleX(-1);
|
2020-04-02 19:54:40 +00:00
|
|
|
padding-top: #{3 / $base-font-size}rem;
|
2020-04-29 22:34:37 +00:00
|
|
|
}
|
|
|
|
& path {
|
2019-08-21 18:08:08 +00:00
|
|
|
@include themify() {
|
|
|
|
fill: getThemifyVariable('input-text-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchbar__clear-button {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: #{10 / $base-font-size}rem;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 2px;
|
|
|
|
align-self: center;
|
|
|
|
position: absolute;
|
|
|
|
padding: #{3 / $base-font-size}rem #{4 / $base-font-size}rem;
|
2019-11-04 19:30:24 +00:00
|
|
|
right: #{7 / $base-font-size}rem;
|
2019-08-21 18:08:08 +00:00
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('primary-text-color');
|
|
|
|
background-color: getThemifyVariable('search-clear-background-color');
|
|
|
|
&:hover, &:focus {
|
|
|
|
color: getThemifyVariable('search-hover-text-color');
|
|
|
|
background-color: getThemifyVariable('search-hover-background-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-20 19:55:00 +00:00
|
|
|
|
|
|
|
.searchbar--is-empty .searchbar__clear-button {
|
|
|
|
display: none;
|
|
|
|
}
|