#95 SearchInput
This commit is contained in:
parent
cfaaad8cc6
commit
0afcaf19d1
3 changed files with 15 additions and 8 deletions
|
|
@ -11,10 +11,11 @@
|
|||
</svg>
|
||||
|
||||
<style lang="scss">
|
||||
@use '../../scss/mixins' as *;
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
path {
|
||||
fill: var(--theme-colour-text-secondary);
|
||||
fill: $theme-colour-text-secondary;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
|
@ -38,13 +38,18 @@
|
|||
on:input="{input}"
|
||||
bind:value="{value}"
|
||||
/>
|
||||
<div class="search--x" class:invisible="{!active}" on:click="{clear}">
|
||||
<div
|
||||
class="search--x"
|
||||
class:invisible="{!active}"
|
||||
on:click="{clear}"
|
||||
on:keyup="{clear}"
|
||||
>
|
||||
<X />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../../scss/mixins';
|
||||
@use '../../scss/mixins' as *;
|
||||
|
||||
.search {
|
||||
position: relative;
|
||||
|
|
@ -58,7 +63,7 @@
|
|||
top: 0.15rem;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
fill: var(--theme-colour-brand-rules);
|
||||
fill: $theme-colour-brand-rules;
|
||||
}
|
||||
.search--input {
|
||||
@include font-sans;
|
||||
|
|
@ -66,7 +71,7 @@
|
|||
padding: 0 0 0 2rem;
|
||||
font-size: 0.8rem;
|
||||
height: 33px;
|
||||
border: 1px solid var(--theme-colour-brand-rules);
|
||||
border: 1px solid $theme-colour-brand-rules;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
width: 100%;
|
||||
|
|
@ -77,7 +82,7 @@
|
|||
top: 0.15rem;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
fill: var(--theme-colour-text-primary);
|
||||
fill: $theme-colour-text-primary;
|
||||
cursor: pointer;
|
||||
&.invisible {
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -20,13 +20,14 @@
|
|||
</svg>
|
||||
|
||||
<style lang="scss">
|
||||
@use '../../scss/mixins' as *;
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
path {
|
||||
fill: var(--theme-colour-text-secondary);
|
||||
fill: $theme-colour-text-secondary;
|
||||
}
|
||||
rect {
|
||||
fill: var(--theme-colour-background, white);
|
||||
fill: $theme-colour-background;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Loading…
Reference in a new issue