Arc-hive-omeka-theme/asset/scss/components/_forms.scss

84 lines
1.9 KiB
SCSS
Raw Normal View History

// .hero{
.search{
2021-11-19 14:49:24 +01:00
@include xy-grid();
// display: flex;
// flex-direction: column;
// align-items: center;
.input-group {
2021-11-19 14:49:24 +01:00
@include breakpoint(small){
@include xy-cell (12);
2021-11-19 15:04:10 +01:00
margin-left: auto;
margin-right: auto;
// @include xy-gutters(auto, $gutter-position: left right);
2021-11-19 14:49:24 +01:00
}
@include breakpoint(medium){
@include xy-cell (6);
}
@include breakpoint(medium){
@include xy-cell (4);
}
position: relative;
border-radius: 4rem;
overflow: hidden;
padding: 0;
margin: 0;
2021-11-19 14:49:24 +01:00
.appear {
right: 0;
position: absolute;
height: 100%;
padding: 0.3rem 1rem;
}
}
2021-11-19 14:49:24 +01:00
.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;
2021-11-19 14:49:24 +01:00
// right: 2rem;
+ .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%);
}
}
}
// } //end .hero