LingoSynth/lingosynth/app/static/css/input.css

118 lines
2.2 KiB
CSS
Raw Normal View History

2023-05-11 21:48:16 +02:00
@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;
}
2023-05-13 14:29:15 +02:00
div.input-wrapper * {
border-color: #363a4f !important;
}
div.input-wrapper .CodeMirror {
background: #494d64;
}
div.input-wrapper .CodeMirror-wrap:first-child {
background: green !important;
}
div.input-wrapper *::selection {
background: #268678;
color: #eaedf7;
}
div.input-wrapper .CodeMirror-cursors {
filter: invert(1);
}
2023-05-11 21:48:16 +02:00
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;
2023-05-13 14:29:15 +02:00
background-image: conic-gradient(from 0deg, #2bafb9, #eed49f, #f5a97f);
2023-05-11 21:48:16 +02:00
animation: rotate-gradient 1s linear infinite;
}
textarea {
width: 100%;
2023-05-13 14:29:15 +02:00
height: 400px;
font-size: 16px;
line-height: 1.5;
2023-05-11 21:48:16 +02:00
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 {
2023-05-13 14:29:15 +02:00
cursor: progress;
2023-05-11 21:48:16 +02:00
animation: pulsing 1s ease-in-out infinite alternate;
}
2023-05-13 14:29:15 +02:00
button.secondary {
background: #5b6078;
}
button.secondary:hover {
background: #6e738d;
}
button.done {
background: #2c589f;
}
button.done:hover {
background: #3866b0;
}
2023-05-11 21:48:16 +02:00
i.ti.ti-loader-2 {
display: inline-block;
animation: rotate 1s linear infinite;
}/*# sourceMappingURL=input.css.map */