fix/search-issue-45 #46

Merged
jorge merged 2 commits from fix/search-issue-45 into develop 2021-11-19 17:00:00 +01:00
2 changed files with 65 additions and 85 deletions
Showing only changes of commit 0ec94a15e1 - Show all commits

File diff suppressed because one or more lines are too long

View File

@ -1,25 +1,70 @@
.hero{ // search elements
.search{ .search{
// @include xy-grid(); .input-group {
.input-group { position: relative;
@include breakpoint(small){ border-radius: 4rem;
// @include xy-cell (12); overflow: hidden;
// margin-left: auto; padding: 0;
// margin-right: auto; margin: 0;
} .appear {
@include breakpoint(medium){ right: 0;
// @include xy-cell (6); position: absolute;
// margin-left: auto; height: 100%;
// margin-right: auto; padding: 0.3rem 1rem;
} }
@include breakpoint(large){ }
// @include xy-cell (4); .input-group * {
// margin-left: auto; margin: 0;
// margin-right: auto; }
.button{
border-color: $primary-color;
}
.appear{
display:none;
}
input{
&:active{
border-color: $primary-color;
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;
padding-right: $global-padding * 9;
+ .appear {
display: block;
background-color: scale-color($input-background-focus, $lightness: -20%);
z-index: 2;
&:hover {
color: $white;
background-color: $primary-color;
}
} }
} }
} }
} //end .hero .hollow {
border-color: $primary-color;
color: $primary-color;
&::after {
}
&::placeholder {
color: scale-color($primary-color, $lightness: -20%);
}
&:hover {
background-color: scale-color($primary-color, $lightness: 95%);
}
&:active {
background-color: scale-color($primary-color, $lightness: 85%);
}
}
}
//search block size in content
article,.omekas-entry-content { article,.omekas-entry-content {
.search{ .search{
@include xy-grid(); @include xy-grid();
@ -42,68 +87,3 @@ article,.omekas-entry-content {
} }
} }
} }
.search{
.input-group {
position: relative;
border-radius: 4rem;
overflow: hidden;
padding: 0;
margin: 0;
.appear {
right: 0;
position: absolute;
height: 100%;
padding: 0.3rem 1rem;
}
}
.input-group * {
margin: 0;
}
.button{
border-color: $primary-color;
}
.appear{
display:none;
}
input{
&:active{
border-color: $primary-color;
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;
padding-right: $global-padding * 9;
+ .appear {
display: block;
background-color: scale-color($input-background-focus, $lightness: -20%);
z-index: 2;
&:hover {
color: $white;
background-color: $primary-color;
}
}
}
}
.hollow {
border-color: $primary-color;
color: $primary-color;
&::after {
}
&::placeholder {
color: scale-color($primary-color, $lightness: -20%);
}
&:hover {
background-color: scale-color($primary-color, $lightness: 95%);
}
&:active {
background-color: scale-color($primary-color, $lightness: 85%);
}
}
}