@import "@Themes/constants.scss"; .root { position: relative; textarea { resize: none; height: auto; box-sizing: border-box; font-family: "Inter"; font-style: normal; font-weight: 400; font-size: 18px; line-height: 22px; } .input { z-index: 1; display: flex; flex-direction: row; align-items: center; padding: 24px; gap: 10px; width: 530px; height: 70px; border: 1px solid $grey-medium; &:focus { ~ .fake-placeholder { transform: translateY(-35px); } } &:not([data-value=""]) { ~ .fake-placeholder { transform: translateY(-35px); } } &[type="number"] { &:focus { ~ .fake-placeholder { transform: translateY(-35px); } } &:not([data-value=""]) { ~ .fake-placeholder { transform: translateY(-35px); } } &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } /* For Chrome, Safari, and Opera */ &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; -moz-appearance: textfield; } /* For IE 10+ */ &::-ms-inner-spin-button, &::-ms-outer-spin-button { display: none; } } &:not([data-value=""]) { ~ .fake-placeholder { transform: translateY(-35px); } } ~ .fake-placeholder { z-index: 2; top: 35%; margin-left: 8px; padding: 0 16px; pointer-events: none; position: absolute; background: $white; transition: transform 0.3s ease-in-out; } } } .textarea { z-index: 1; display: flex; flex-direction: row; align-items: center; padding: 24px; gap: 10px; width: 530px; height: 70px; border: 1px solid $grey-medium; ~ .fake-placeholder { z-index: 2; top: -12px; margin-left: 8px; padding: 0 16px; pointer-events: none; position: absolute; background: $white; transform: translateY(35px); transition: transform 0.3s ease-in-out; } &:focus { ~ .fake-placeholder { transform: translateY(0px); } } &:not([data-value=""]) { ~ .fake-placeholder { transform: translateY(0px); } } }