LingoSynth/lingosynth/app/static/css/input.css
2023-05-11 21:48:16 +02:00

89 lines
1.6 KiB
CSS

@keyframes rotate-gradient {
from {
transform: rotate(0deg) scale(2);
}
to {
transform: rotate(360deg) scale(2);
}
}
@keyframes pulsing {
0% {
background: #54867e;
}
100% {
background: #268678;
}
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
div.input-wrapper {
position: relative;
overflow: hidden;
background: #363a4f;
padding: 2px 3px;
border-radius: 0.5rem;
}
div.input-wrapper.loading {
cursor: wait !important;
position: relative;
animation: pulsing 1s ease-in-out infinite alternate;
}
div.input-wrapper.loading * {
pointer-events: none;
}
div.input-wrapper.loading::before {
content: "";
display: block;
z-index: -1;
position: absolute;
top: 1rem;
left: 1rem;
right: 1rem;
bottom: 1rem;
background-image: conic-gradient(from 0deg, #268678, #eed49f, #268678);
animation: rotate-gradient 1s linear infinite;
}
textarea {
width: 100%;
height: 300px;
font-size: 1.5rem;
padding: 1rem;
border-radius: 0.5rem;
background: #363a4f;
color: #eaedf7;
resize: none;
outline: none;
transition: border 0.1s ease-in-out;
min-height: 300px;
box-shadow: 0 0 40px 0 #181926;
}
button {
margin-top: 1rem;
padding: 0.8rem 1.5rem;
border-radius: 0.5rem;
background: #1c6e63;
font-size: 18px;
cursor: pointer;
transition: background 0.1s ease-in-out;
color: #eaedf7;
}
button:hover {
background: #268678;
}
button.loading {
cursor: wait;
animation: pulsing 1s ease-in-out infinite alternate;
}
i.ti.ti-loader-2 {
display: inline-block;
animation: rotate 1s linear infinite;
}/*# sourceMappingURL=input.css.map */