You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

245 lines
4.0 KiB

5 years ago
input,
button {
border: 1px solid $black;
background: $white;
border-radius: 0;
height: 28px;
}
button {
border: none;
cursor: pointer;
5 years ago
outline: 0 !important;
&:active,
&:focus,
&:visited,
&:hover {
outline: 0 !important;
}
&:-moz-focusring {
//color: transparent;
text-shadow: 0 0 0 $black;
}
::-moz-focus-inner {border:0;}
5 years ago
}
input,
select,
textarea {
font-size: $font-12;
border-radius: 0;
background: $white;
width: 100%;
outline: none !important;
&:active,
&:focus{
outline: none !important;
}
&:-moz-focusring {
//color: transparent;
text-shadow: 0 0 0 $black;
}
&:-webkit-autofill {
-webkit-text-fill-color: $black;
box-shadow: 0 0 0px 1000px $white inset !important;
&:focus,
&:hover {
-webkit-text-fill-color: $black;
box-shadow: 0 0 0px 1000px $white inset !important;
}
}
}
select,
input[type=text],
input[type=password],
input[type=email],
input[type=tel],
input[type=date],
input[type=number] {
5 years ago
color: $dark-gray;
background: $white;
border-radius: 0;
height: auto;
display: block;
5 years ago
padding: 10px 10px;
5 years ago
border: 2px solid $white;
@include font-style( $font-sans, 'regular', $font-18);
5 years ago
box-shadow: unset;
text-transform: initial !important;
& + .label-text,
& + label {
color: $gray;
top: -1*$font-10;
position: absolute;
display: block;
@include font-style($font-sans, 'regular', $font-10);
text-transform: uppercase;
}
&:required {
& + .label-text,
& + label {
&::after {
content: ' *';
}
& ~ .error-message {
display: none;
color: $red;
@include font-style($font-sans, 'regular', $font-10);
}
}
}
&.has-error {
border-bottom: 1px solid $red;
& + .label-text,
& + label {
color: $red;
text-transform: uppercase;
& ~ .error-message {
display: block;
color: $red;
text-transform: uppercase;
}
}
}
&.transparent {
background: transparent;
}
5 years ago
&.input-gray {
border: 2px solid $light-gray;
background: $light-gray;
}
5 years ago
&:disabled {
5 years ago
border-bottom: 2px solid $gray;
5 years ago
& + .label-text,
& + label {
color: $gray;
}
}
}
select {
appearance: none;
background-image: url(/images/arrow-down.svg);
background-size: auto 40%;
background-repeat: no-repeat;
background-position: right 3px center;
5 years ago
border-bottom: 1px solid $gray;
5 years ago
&:disabled {
5 years ago
background-image: url(/images/arrow-down.svg);
5 years ago
}
5 years ago
5 years ago
&:focus {
//background-image: url(/images/arrow-up.svg);
}
}
.button {
5 years ago
color: $white;
5 years ago
background: transparent;
border-radius: 0;
height: auto;
display: block;
padding: 10px 15px;
5 years ago
border: 2px solid $white;
5 years ago
text-align: center;
5 years ago
@include font-style( $font-sans, 'regular', $font-14);
5 years ago
&.button-brown {
background: $brown;
color: $white;
}
&.button-transparent {
background: transparent;
border: 1px solid $brown;
color: $brown;
}
5 years ago
&.button-big {
padding: 10px 20px;
font-size: $font-18;
}
5 years ago
&.button-small {
height: 18px;
line-height: $font-6;
padding: 5px;
}
5 years ago
&.button-black {
background: $dark-gray;
color: $white;
border: 2px solid $dark-gray;
}
5 years ago
&:disabled {
opacity: 0.5;
}
}
.checkbox {
display: inline-block;
position: relative;
padding-left: 25px;
margin-bottom: 12px;
cursor: pointer;
user-select: none;
width: 100%;
float: left;
line-height: 12px;
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 15px;
width: 15px;
background: none;
border: 1px solid $black;
&:disabled {
border-bottom: 1px solid $gray;
}
&:after {
content: '';
position: absolute;
display: none;
}
}
input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
&:checked ~ .checkmark {
background: $black;
&:after {
display: block;
}
}
}
}