search input fields with button appearing when terms inserted
This commit is contained in:
parent
81511ae260
commit
be27a7d142
|
@ -463,7 +463,7 @@ $select-background: $white;
|
||||||
$select-triangle-color: $primary-color;
|
$select-triangle-color: $primary-color;
|
||||||
$select-radius: $global-radius;
|
$select-radius: $global-radius;
|
||||||
$input-color: $primary-color;
|
$input-color: $primary-color;
|
||||||
$input-placeholder-color: scale-color($primary-color, $lightness: 60%); //$antracite-grey;
|
$input-placeholder-color: scale-color($primary-color, $lightness: 60%);
|
||||||
$input-font-family: inherit;
|
$input-font-family: inherit;
|
||||||
$input-font-size: rem-calc(16);
|
$input-font-size: rem-calc(16);
|
||||||
$input-font-weight: $global-weight-normal;
|
$input-font-weight: $global-weight-normal;
|
||||||
|
|
|
@ -42,7 +42,6 @@ button,.button {
|
||||||
background-color: $primary-color;
|
background-color: $primary-color;
|
||||||
color: $white;
|
color: $white;
|
||||||
border-radius:$global-radius-archive;
|
border-radius:$global-radius-archive;
|
||||||
// padding:0;
|
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,51 @@
|
||||||
.search{
|
.search{
|
||||||
|
.input-group * {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.input-group {
|
||||||
|
position: relative;
|
||||||
|
border-radius: 4rem;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.input-group .appear {
|
||||||
|
right: 0;
|
||||||
|
position: absolute;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0.3rem 1rem;
|
||||||
|
}
|
||||||
.button{
|
.button{
|
||||||
border-color: $primary-color;
|
border-color: $primary-color;
|
||||||
}
|
}
|
||||||
button.appear{
|
.appear{
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
input:not(:placeholder-shown) {
|
input{
|
||||||
+ button {
|
&:active{
|
||||||
display: block;
|
border-color: $primary-color;
|
||||||
z-index: 2;
|
background-color: $input-background-focus;
|
||||||
|
}
|
||||||
|
&:focus,&:focus-within{
|
||||||
|
border-color: $primary-color;
|
||||||
|
background-color: $input-background;
|
||||||
|
}
|
||||||
|
&:not(:placeholder-shown) {
|
||||||
|
border:none;
|
||||||
|
background-color: $input-background-focus;
|
||||||
|
position: relative;
|
||||||
|
right: 2rem;
|
||||||
|
+ .appear {
|
||||||
|
display: block;
|
||||||
|
color: $primary-color;
|
||||||
|
background-color: $input-background-focus;
|
||||||
|
z-index: 2;
|
||||||
|
&:hover {
|
||||||
|
color: $white;
|
||||||
|
background-color: $primary-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.hollow {
|
.hollow {
|
||||||
|
|
Loading…
Reference in New Issue