2022-04-24 01:35:22 +02:00
|
|
|
//search block size in content
|
|
|
|
article,aside,.omekas-entry-content {
|
|
|
|
.search,.widget_search{
|
|
|
|
@include xy-grid();
|
|
|
|
.input-group,.search-form {
|
|
|
|
@include breakpoint(small){
|
|
|
|
@include xy-cell (12);
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
@include breakpoint(medium){
|
|
|
|
@include xy-cell (6);
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
@include breakpoint(large){
|
|
|
|
@include xy-cell (4);
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-29 16:15:20 +02:00
|
|
|
// search elements
|
2022-04-08 01:10:36 +02:00
|
|
|
.search {
|
2022-03-29 16:15:20 +02:00
|
|
|
.input-group {
|
|
|
|
position: relative;
|
2022-04-24 01:35:22 +02:00
|
|
|
border-radius: $global-padding*4;
|
2022-03-29 16:15:20 +02:00
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
.appear {
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
2022-04-24 01:35:22 +02:00
|
|
|
padding: $global-padding*0.3 $global-padding;
|
2022-03-29 16:15:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.input-group * {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-04-08 01:10:36 +02:00
|
|
|
.button {
|
2022-04-24 13:07:37 +02:00
|
|
|
// border-color: $primary-color;
|
|
|
|
border: none;
|
2022-03-29 16:15:20 +02:00
|
|
|
}
|
2022-04-08 01:10:36 +02:00
|
|
|
.appear {
|
2022-03-29 16:15:20 +02:00
|
|
|
display:none;
|
|
|
|
}
|
2022-04-08 01:10:36 +02:00
|
|
|
input {
|
2022-04-24 01:35:22 +02:00
|
|
|
border-radius: $global-radius-archive;
|
2022-04-08 01:10:36 +02:00
|
|
|
&:active {
|
2022-03-29 16:15:20 +02:00
|
|
|
border-color: $primary-color;
|
|
|
|
background-color: $input-background-focus;
|
|
|
|
}
|
|
|
|
&:focus,&:focus-within{
|
2022-04-24 01:35:22 +02:00
|
|
|
border-color: $input-background;
|
2022-03-29 16:15:20 +02:00
|
|
|
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;
|
2022-04-08 01:10:36 +02:00
|
|
|
&:after {
|
2022-03-29 16:15:20 +02:00
|
|
|
}
|
2022-04-24 01:35:22 +02:00
|
|
|
&::placeholder {
|
2022-03-29 16:15:20 +02:00
|
|
|
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%);
|
|
|
|
}
|
|
|
|
}
|
2022-04-24 01:35:22 +02:00
|
|
|
&-form {
|
|
|
|
@extend .search;
|
|
|
|
position: relative;
|
|
|
|
min-width: 40vw;
|
|
|
|
input:not(:placeholder-shown) {
|
|
|
|
padding: $global-padding/2 $global-padding;
|
|
|
|
}
|
|
|
|
.search-submit {
|
|
|
|
@extend button;
|
|
|
|
padding: $global-padding/2 $global-padding;
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
.search-field {
|
|
|
|
&:active,&:focus,&:not(:placeholder-shown) {
|
|
|
|
padding-right: $global-padding * 8;
|
2022-03-29 16:15:20 +02:00
|
|
|
}
|
2022-04-24 01:35:22 +02:00
|
|
|
}
|
|
|
|
label {
|
|
|
|
width:100%;
|
2022-04-24 13:07:37 +02:00
|
|
|
&:active,&:focus,&:focus-within,&:hover {
|
2022-04-24 01:35:22 +02:00
|
|
|
+ .search-submit {
|
|
|
|
display: inline;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
width: auto;
|
|
|
|
min-width: unset;
|
|
|
|
background-color: scale-color($input-background-focus, $lightness: -20%);
|
|
|
|
}
|
2022-03-29 16:15:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-08 01:10:36 +02:00
|
|
|
// wordpress
|
2022-04-24 13:07:37 +02:00
|
|
|
|
2022-04-24 01:35:22 +02:00
|
|
|
.hero {
|
|
|
|
.search-form {
|
|
|
|
input[type="submit"]{
|
|
|
|
color: $white;
|
2022-04-08 01:10:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-24 01:35:22 +02:00
|
|
|
|
2022-03-30 21:32:51 +02:00
|
|
|
// contact form 7
|
|
|
|
//
|
|
|
|
|
|
|
|
[type='text'], [type='password'], [type='date'], [type='datetime'], [type='datetime-local'], [type='month'], [type='week'], [type='email'], [type='number'], [type='search'], [type='tel'], [type='time'], [type='url'], [type='color'],
|
|
|
|
textarea {
|
|
|
|
border: none;
|
|
|
|
}
|