hensei-web/components/common/Textarea/index.module.scss
Justin Edmund b8b3f2fffb Fix placeholder text and formatting
This fixes Textarea's placeholder text to be consistent with Input, as well as allows us to use new lines in the placeholder
2023-07-02 02:23:23 -07:00

43 lines
927 B
SCSS

.textarea {
-webkit-font-smoothing: antialiased;
background-color: var(--input-bg);
border: 2px solid transparent;
border-radius: $input-corner;
box-sizing: border-box;
color: var(--text-primary);
display: block;
font-family: system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial,
sans-serif;
font-size: $font-regular;
line-height: 1.4;
overflow: scroll;
min-height: $unit-10x;
padding: $unit * 1.5 $unit-2x;
white-space: pre-wrap;
width: 100%;
&:focus {
border: 2px solid $blue;
outline: none;
}
&.bound {
background-color: var(--input-bound-bg);
&:hover {
background-color: var(--input-bound-bg-hover);
}
}
&.editParty {
flex-grow: 1;
}
&[contenteditable='true']:empty:before {
content: attr(placeholder);
color: var(--text-tertiary);
pointer-events: none;
white-space: pre;
display: block; /* For Firefox */
}
}