42 lines
1.1 KiB
SCSS
42 lines
1.1 KiB
SCSS
.wc-block-text-input {
|
|
position: relative;
|
|
margin-top: $gap;
|
|
}
|
|
|
|
.wc-block-text-input label {
|
|
position: absolute;
|
|
transform: translateX(#{$gap}) translateY(#{$gap-small});
|
|
transform-origin: top left;
|
|
font-size: 16px;
|
|
line-height: 22px;
|
|
transition: all 200ms ease;
|
|
color: $gray-50;
|
|
}
|
|
|
|
.wc-block-text-input.is-active label {
|
|
transform: translateX(#{$gap}) translateY(#{$gap-smallest}) scale(0.75);
|
|
transition: all 200ms ease;
|
|
}
|
|
.wc-block-text-input input[type="tel"],
|
|
.wc-block-text-input input[type="url"],
|
|
.wc-block-text-input input[type="text"],
|
|
.wc-block-text-input input[type="email"] {
|
|
padding: $gap-small $gap;
|
|
border-radius: 4px;
|
|
border: 1px solid $input-border-gray;
|
|
width: 100%;
|
|
font-size: 16px;
|
|
line-height: 22px;
|
|
font-family: inherit;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
height: 48px;
|
|
color: $input-text-active;
|
|
}
|
|
.wc-block-text-input.is-active input[type="tel"],
|
|
.wc-block-text-input.is-active input[type="url"],
|
|
.wc-block-text-input.is-active input[type="text"],
|
|
.wc-block-text-input.is-active input[type="email"] {
|
|
padding: $gap-large $gap $gap-smallest;
|
|
}
|