@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); transition: transform 0.3s ease-in-out; } } &:not([value=""]) { ~ .fake-placeholder { transform: translateY(-35px); transition: transform; } } &[type="number"] { &:focus { ~ .fake-placeholder { transform: translateY(-35px); transition: transform 0.3s ease-in-out; } } &:not([value=""]) { ~ .fake-placeholder { transform: translateY(-35px); transition: transform; } } } &:not([value=""]) { ~ .fake-placeholder { transform: translateY(-35px); transition: transform 0.3s ease-in-out; } } ~ .fake-placeholder { z-index: 2; top: 35%; margin-left: 8px; padding: 0 16px; pointer-events: none; position: absolute; background: $white; } } } .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); } }