2023-05-11 11:33:01 +00:00
|
|
|
.GrowingTextarea {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2023-05-12 17:50:28 +00:00
|
|
|
position: relative;
|
2023-05-11 11:33:01 +00:00
|
|
|
|
|
|
|
.growWrap {
|
|
|
|
display: grid;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: attr(data-replicated-value);
|
|
|
|
visibility: hidden;
|
|
|
|
transition: height 0.3s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textInput {
|
2023-05-29 04:40:17 +00:00
|
|
|
background: var(--background-color);
|
2023-05-11 11:33:01 +00:00
|
|
|
border: none;
|
2023-05-29 04:40:17 +00:00
|
|
|
color: var(--default-color);
|
|
|
|
margin-bottom: 0;
|
2023-05-11 11:33:01 +00:00
|
|
|
resize: none;
|
|
|
|
overflow: hidden;
|
2023-05-12 13:03:46 +00:00
|
|
|
|
2023-05-11 11:33:01 +00:00
|
|
|
&::placeholder {
|
|
|
|
color: #858585;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus-visible,
|
|
|
|
&:active {
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after,
|
|
|
|
& .textInput {
|
|
|
|
/* Identical styling required!! */
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
|
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
2023-05-12 17:50:28 +00:00
|
|
|
|
|
|
|
.maxLength {
|
2023-05-29 04:40:17 +00:00
|
|
|
color: #000;
|
2023-05-12 17:50:28 +00:00
|
|
|
opacity: 1;
|
|
|
|
position: absolute;
|
|
|
|
right: 0.6rem;
|
|
|
|
bottom: -1.2rem;
|
|
|
|
font-size: 1.1rem;
|
|
|
|
border: 3px solid rgba(#ccc, 0.5);
|
|
|
|
padding: 0.5rem;
|
|
|
|
border-radius: 1.3rem;
|
|
|
|
line-height: 1;
|
|
|
|
user-select: none;
|
|
|
|
transition: opacity 0.3s ease-in-out;
|
2023-06-16 14:47:24 +00:00
|
|
|
background: rgb(255 255 255 / 80%);
|
2023-05-12 17:50:28 +00:00
|
|
|
|
|
|
|
&.visible {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.limited {
|
|
|
|
animation: blink 0.8s;
|
|
|
|
animation-iteration-count: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes blink {
|
|
|
|
50% {
|
|
|
|
border-color: #000;
|
|
|
|
}
|
2023-05-11 11:33:01 +00:00
|
|
|
}
|