1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 01:09:54 +00:00
Files
whiskr/static/css/chat.css

1095 lines
16 KiB
CSS
Raw Normal View History

2025-08-09 21:16:24 +02:00
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-Regular.ttf);
font-weight: normal;
}
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-Bold.ttf);
font-weight: 700;
}
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-Italic.ttf);
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-BoldItalic.ttf);
font-weight: 700;
font-style: italic;
}
2025-08-05 03:56:23 +02:00
* {
box-sizing: border-box;
}
2025-08-10 16:01:15 +02:00
:-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
2025-08-10 16:38:02 +02:00
background: transparent;
2025-08-10 16:01:15 +02:00
}
::-webkit-scrollbar-thumb {
background-color: #cad3f5;
2025-08-10 16:38:02 +02:00
border: none;
2025-08-10 16:01:15 +02:00
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #cad3f5;
}
* {
scrollbar-width: thin;
2025-08-10 16:38:02 +02:00
scrollbar-color: #cad3f5 transparent;
2025-08-10 16:01:15 +02:00
}
2025-08-05 03:56:23 +02:00
html,
body {
2025-08-09 22:14:35 +02:00
font-family: "Work Sans", sans-serif;
2025-08-05 03:56:23 +02:00
font-size: 15px;
background: #181926;
color: #cad3f5;
height: 100%;
width: 100%;
margin: 0;
}
body {
display: flex;
overflow: hidden;
}
2025-08-23 17:15:03 +02:00
body.resizing * {
user-select: none !important;
cursor: grabbing !important;
}
2025-08-11 01:38:16 +02:00
#version {
position: absolute;
font-size: 12px;
font-style: italic;
top: 3px;
right: 6px;
color: #a5adcb;
}
#version a {
color: #a5adcb;
text-decoration: none;
}
body.loading #version {
font-size: 0;
animation: rotating 1.2s linear infinite;
background-image: url(icons/spinner.svg);
width: 16px;
height: 16px;
top: 6px;
}
2025-08-19 17:12:36 +02:00
#loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 50;
backdrop-filter: blur(10px);
transition: opacity 250ms;
}
#loading .inner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
gap: 10px;
align-items: center;
font-weight: 500;
font-size: 22px;
line-height: 22px;
}
#loading img {
width: 50px;
animation: wiggling 750ms ease-in-out infinite;
}
body:not(.loading) #loading {
opacity: 0;
pointer-events: none;
}
2025-08-05 03:56:23 +02:00
#page {
display: flex;
flex-direction: column;
2025-08-10 18:26:49 +02:00
gap: 5px;
2025-08-05 03:56:23 +02:00
background: #1e2030;
margin: auto;
margin-top: 30px;
width: 100%;
2025-08-10 15:53:30 +02:00
max-width: 1200px;
2025-08-05 03:56:23 +02:00
height: calc(100% - 30px);
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.hidden {
opacity: 0 !important;
pointer-events: none !important;
}
2025-08-10 22:32:40 +02:00
.none {
display: none !important;
}
2025-08-05 03:56:23 +02:00
#messages {
display: flex;
flex-direction: column;
2025-08-05 04:05:35 +02:00
gap: 40px;
2025-08-05 03:56:23 +02:00
height: 100%;
overflow-y: auto;
padding: 14px 12px;
2025-08-18 03:47:37 +02:00
padding-bottom: 20px;
2025-08-05 03:56:23 +02:00
}
#messages:empty::before {
2025-08-15 03:47:40 +02:00
content: "whiskr - no messages";
2025-08-05 03:56:23 +02:00
color: #a5adcb;
font-style: italic;
align-self: center;
2025-08-15 03:47:40 +02:00
margin-top: 5px;
2025-08-05 03:56:23 +02:00
}
#message,
.message {
border: none;
border-radius: 6px;
background: #24273a;
font: inherit;
color: inherit;
}
.message {
position: relative;
max-width: 700px;
2025-08-11 01:16:52 +02:00
min-width: 280px;
2025-08-05 03:56:23 +02:00
width: max-content;
2025-08-09 21:16:24 +02:00
padding-top: 28px;
background: #363a4f;
flex-shrink: 0;
2025-08-05 03:56:23 +02:00
}
2025-08-16 14:32:57 +02:00
.message::after {
content: "";
position: absolute;
pointer-events: none;
background: rgba(237, 135, 150, 0.2);
opacity: 0;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: opacity 150ms;
border-radius: 6px;
}
.message.marked::after {
opacity: 1;
}
2025-08-05 03:56:23 +02:00
.message.user {
align-self: end;
}
.message.system {
align-self: center;
}
.message .role {
position: absolute;
2025-08-11 00:15:58 +02:00
display: flex;
gap: 4px;
align-items: center;
2025-08-09 21:16:24 +02:00
font-family: "Comic Code", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Ubuntu Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
2025-08-05 03:56:23 +02:00
font-size: 12px;
2025-08-09 21:16:24 +02:00
line-height: 12px;
2025-08-11 00:15:58 +02:00
top: 6px;
left: 6px;
2025-08-05 03:56:23 +02:00
}
2025-08-11 15:43:00 +02:00
.statistics .provider::after,
.statistics .ttft::after,
.statistics .tps::after,
2025-08-23 16:17:01 +02:00
.statistics .tokens::after,
2025-08-11 00:15:58 +02:00
.message .tags::before {
2025-08-05 03:56:23 +02:00
content: "";
position: absolute;
2025-08-11 00:15:58 +02:00
top: 7px;
left: -10px;
height: 2px;
2025-08-11 15:43:00 +02:00
width: 6px;
2025-08-11 00:15:58 +02:00
background: #939ab7;
}
.message .tags {
display: flex;
gap: 4px;
position: relative;
margin-left: 12px;
}
.message:not(.has-tags) .tags {
display: none;
}
2025-08-14 03:53:14 +02:00
.message .tag-json {
2025-08-11 00:15:58 +02:00
background-image: url(icons/json-mode.svg);
}
2025-08-14 03:53:14 +02:00
.message .tag-search {
2025-08-11 00:15:58 +02:00
background-image: url(icons/search-tool.svg);
2025-08-05 03:56:23 +02:00
}
.message.user .role::before {
background-image: url(icons/user.svg);
}
.message.system .role::before {
background-image: url(icons/system.svg);
}
.message.assistant .role::before {
background-image: url(icons/assistant.svg);
}
2025-08-09 21:16:24 +02:00
.message.assistant {
max-width: 800px;
}
.message .reasoning,
2025-08-14 03:53:14 +02:00
.message .tool,
2025-08-05 03:56:23 +02:00
.message .text {
display: block;
background: transparent;
2025-08-09 21:16:24 +02:00
padding: 10px 12px;
2025-08-05 03:56:23 +02:00
width: 100%;
}
.message .reasoning {
padding-top: 14px;
2025-08-07 22:14:41 +02:00
}
2025-08-05 03:56:23 +02:00
.message:not(.editing) textarea.text,
.message.editing div.text {
display: none;
}
2025-08-14 03:53:14 +02:00
.message .reasoning,
.message .tool,
.message div.text {
2025-08-09 21:16:24 +02:00
background: #24273a;
}
2025-08-14 03:53:14 +02:00
.message textarea.text {
2025-08-09 21:16:24 +02:00
background: #181926;
2025-08-16 13:53:55 +02:00
min-width: 480px;
2025-08-15 03:00:59 +02:00
min-height: 100px;
2025-08-09 21:16:24 +02:00
}
2025-08-11 00:15:58 +02:00
.message .text .error {
color: #ed8796;
}
.message.errored {
border: 2px solid #ed8796;
}
.reasoning-text pre {
background: #1b1d2a;
}
2025-08-14 03:53:14 +02:00
.message .tool .result,
2025-08-09 21:16:24 +02:00
.message .reasoning-text {
background: #1e2030;
border-radius: 6px;
padding: 10px 12px;
}
2025-08-11 01:45:40 +02:00
.message .reasoning-wrapper {
--height: auto;
height: calc(var(--height) + 20px);
overflow: hidden;
2025-08-11 01:45:40 +02:00
transition: 150ms;
}
.message:not(.expanded) .reasoning-wrapper {
height: 0;
}
.message.expanded .reasoning-text {
margin-top: 10px;
}
2025-08-14 17:08:45 +02:00
.message.has-reasoning:not(.has-text):not(.errored) div.text,
.message.has-tool:not(.has-text):not(.errored) div.text,
2025-08-18 04:46:17 +02:00
.message.has-files:not(.has-text):not(.errored) div.text,
2025-08-14 03:53:14 +02:00
.message:not(.has-tool) .tool,
.message:not(.has-reasoning) .reasoning {
display: none;
}
2025-08-18 03:47:37 +02:00
.message .body {
2025-08-11 15:43:00 +02:00
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
2025-08-18 03:47:37 +02:00
overflow: hidden;
2025-08-11 15:43:00 +02:00
}
.message.has-reasoning .text {
padding-top: 4px;
}
2025-08-14 03:53:14 +02:00
.tool .call,
.reasoning .toggle {
position: relative;
2025-08-10 14:54:14 +02:00
padding: 0 22px;
padding-left: 26px;
font-weight: 600;
font-size: 14px;
}
2025-08-14 03:53:14 +02:00
.tool .call .name::after,
.tool .call::before,
.reasoning .toggle::after,
.reasoning .toggle::before {
content: "";
background-image: url(icons/reasoning.svg);
position: absolute;
top: -2px;
left: -2px;
width: 20px;
height: 20px;
}
2025-08-14 03:53:14 +02:00
.tool .call .name::after,
.reasoning .toggle::after {
background-image: url(icons/chevron.svg);
left: unset;
right: -2px;
transition: 150ms;
}
.message.expanded .reasoning .toggle::after {
transform: rotate(180deg);
}
2025-08-14 03:53:14 +02:00
.message.has-tool .text {
padding-bottom: 4px;
}
.message .tool {
--height: 0px;
overflow: hidden;
transition: 150ms;
height: calc(90px + var(--height));
}
.message .tool:not(.expanded) {
height: 62px;
}
.tool .call {
display: flex;
flex-direction: column;
width: 100%;
cursor: pointer;
font-family: "Comic Code", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Ubuntu Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
font-size: 13px;
}
.tool .call .arguments {
font-style: italic;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tool .call .name::after,
.tool .call::before {
top: 50%;
transform: translateY(-50%);
}
.tool .call .name::after {
right: -22px;
}
.tool.expanded .call .name::after {
transform: translateY(-50%) rotate(180deg);
}
.tool .call::before {
background-image: url(icons/tool.svg);
}
.tool .call .name {
position: relative;
width: max-content;
}
.message .tool .result {
margin-top: 16px;
}
2025-08-05 03:56:23 +02:00
.message .options {
display: flex;
gap: 4px;
position: absolute;
top: 4px;
2025-08-09 21:16:24 +02:00
right: 6px;
2025-08-05 03:56:23 +02:00
opacity: 0;
pointer-events: none;
transition: 150ms;
}
.message:hover .options {
opacity: 1;
pointer-events: all;
}
2025-08-16 14:07:45 +02:00
.message.errored .options .copy,
.message.errored .options .edit,
.message.errored .options .retry,
2025-08-05 03:56:23 +02:00
.message.waiting .options,
.message.reasoning .options,
2025-08-16 14:07:45 +02:00
.message.tooling .options,
2025-08-05 03:56:23 +02:00
.message.receiving .options {
display: none;
}
.message.reasoning .reasoning button.toggle::before {
2025-08-10 14:54:14 +02:00
animation: rotating 1.2s linear infinite;
background-image: url(icons/spinner.svg);
top: -1px;
width: 18px;
height: 18px;
}
2025-08-14 03:53:14 +02:00
.message.tooling .tool .call::before {
animation: rotating-y 1.2s linear infinite;
background-image: url(icons/spinner.svg);
width: 18px;
height: 18px;
}
2025-08-05 03:56:23 +02:00
.message .text::before {
font-style: italic;
}
.message:empty.receiving .text::before,
2025-08-05 03:56:23 +02:00
.message.waiting .text::before {
content: ". . .";
2025-08-05 03:56:23 +02:00
}
2025-08-11 15:43:00 +02:00
.statistics {
position: absolute;
transition: 150ms;
top: calc(100% + 5px);
left: 8px;
display: flex;
align-items: center;
gap: 20px;
white-space: nowrap;
font-size: 13px;
line-height: 13px;
pointer-events: none;
}
.statistics .provider,
.statistics .ttft,
.statistics .tps,
2025-08-23 16:17:01 +02:00
.statistics .cost,
2025-08-11 15:43:00 +02:00
.statistics .tokens {
position: relative;
display: flex;
align-items: center;
gap: 3px;
}
.statistics .provider::after,
.statistics .ttft::after,
2025-08-23 16:17:01 +02:00
.statistics .tps::after,
.statistics .tokens::after {
2025-08-11 15:43:00 +02:00
left: unset;
right: -14px;
}
.statistics .provider::before {
background-image: url(icons/provider.svg);
}
.statistics .ttft::before {
2025-08-23 15:19:43 +02:00
background-image: url(icons/time.svg);
2025-08-11 15:43:00 +02:00
}
.statistics .tps::before {
background-image: url(icons/tps.svg);
}
.statistics .tokens::before {
2025-08-23 16:17:01 +02:00
background-image: url(icons/tokens.svg);
}
.statistics .cost::before {
background-image: url(icons/money.svg);
2025-08-11 15:43:00 +02:00
}
.message:not(:hover) .statistics {
opacity: 0;
}
.message:not(.has-statistics) .statistics {
display: none;
}
2025-08-09 21:16:24 +02:00
#chat {
display: flex;
position: relative;
justify-content: center;
padding: 0 12px;
2025-08-15 03:00:59 +02:00
height: 320px;
padding-bottom: 36px;
2025-08-23 17:15:03 +02:00
flex-shrink: 0;
2025-08-09 21:16:24 +02:00
}
#chat::after {
content: "";
position: absolute;
bottom: 0;
left: 12px;
right: 12px;
height: 36px;
background: #24273a;
}
2025-08-18 03:47:37 +02:00
#chat:has(.has-files) {
padding-top: 50px;
}
2025-08-23 17:15:03 +02:00
#resize-bar {
position: absolute;
top: -4px;
left: 0;
right: 0;
height: 8px;
cursor: n-resize;
}
2025-08-18 03:47:37 +02:00
#attachments {
position: absolute;
top: 2px;
left: 12px;
}
.files {
display: flex;
gap: 6px;
}
.files:not(.has-files) {
display: none;
}
.message .files {
background: #181926;
padding: 10px 12px;
}
.files .file {
position: relative;
display: flex;
gap: 4px;
align-items: center;
background: #24273a;
box-shadow: 0px 0px 10px 6px rgba(0, 0, 0, 0.1);
padding: 8px 10px;
padding-right: 14px;
border-radius: 6px;
border: 1px solid #363a4f;
}
.files .file::before {
content: "";
background-image: url(icons/file.svg);
}
.files .file button.remove {
content: "";
position: absolute;
background-image: url(icons/remove.svg);
width: 16px;
height: 16px;
top: 1px;
right: 1px;
opacity: 0;
transition: 150ms;
}
.files .file:hover button.remove {
opacity: 1;
}
2025-08-09 21:16:24 +02:00
#message {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
width: 100%;
height: 100%;
padding: 14px 16px;
2025-08-15 03:00:59 +02:00
padding-bottom: 8px;
2025-08-09 21:16:24 +02:00
}
2025-08-09 22:14:35 +02:00
.dropdown,
2025-08-09 21:16:24 +02:00
textarea,
button,
input,
select {
border: none;
font: inherit;
color: inherit;
outline: none;
2025-08-09 21:16:24 +02:00
margin: 0;
}
textarea {
resize: none;
font-size: 15px;
line-height: 23px;
2025-08-05 03:56:23 +02:00
}
button {
background: transparent;
cursor: pointer;
}
input,
select {
background: #363a4f;
2025-08-09 22:14:35 +02:00
padding: 2px 5px;
font-size: 14px;
}
#chat button {
position: absolute;
2025-08-05 03:56:23 +02:00
}
#chat .options {
position: absolute;
2025-08-09 21:16:24 +02:00
bottom: 6px;
left: 20px;
2025-08-05 03:56:23 +02:00
width: max-content;
display: flex;
align-items: center;
gap: 12px;
2025-08-09 21:16:24 +02:00
z-index: 10;
2025-08-05 03:56:23 +02:00
}
#chat .option {
display: flex;
align-items: center;
gap: 4px;
}
#chat .option+.option::before {
content: "";
display: block;
width: 2px;
height: 12px;
background: #5b6078;
margin-right: 4px;
}
2025-08-11 01:38:16 +02:00
body.loading #version,
2025-08-19 17:12:36 +02:00
#loading .inner::after,
2025-08-16 17:18:48 +02:00
.modal.loading .content::after,
.reasoning .toggle::before,
.reasoning .toggle::after,
2025-08-05 03:56:23 +02:00
#bottom,
2025-08-18 03:47:37 +02:00
.files .file::before,
.files .file .remove,
2025-08-14 03:53:14 +02:00
.message .role::before,
.message .tag-json,
.message .tag-search,
.message .copy,
.message .edit,
2025-08-16 14:07:45 +02:00
.message .retry,
2025-08-14 03:53:14 +02:00
.message .delete,
2025-08-11 15:43:00 +02:00
.pre-copy,
2025-08-14 03:53:14 +02:00
.tool .call .name::after,
.tool .call::before,
2025-08-11 15:43:00 +02:00
.message .statistics .provider::before,
.message .statistics .ttft::before,
.message .statistics .tps::before,
.message .statistics .tokens::before,
2025-08-23 16:17:01 +02:00
.message .statistics .cost::before,
2025-08-11 00:15:58 +02:00
#json,
#search,
2025-08-09 21:16:24 +02:00
#scrolling,
2025-08-16 14:54:27 +02:00
#import,
#export,
2025-08-05 03:56:23 +02:00
#clear,
2025-08-18 03:47:37 +02:00
#upload,
2025-08-05 03:56:23 +02:00
#add,
#send,
#chat .option label {
display: block;
width: 20px;
height: 20px;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
2025-08-11 15:43:00 +02:00
.message .statistics .provider::before,
.message .statistics .ttft::before,
.message .statistics .tps::before,
.message .statistics .tokens::before,
2025-08-23 16:17:01 +02:00
.message .statistics .cost::before,
2025-08-14 03:53:14 +02:00
.message .tag-json,
.message .tag-search,
.message .role::before {
2025-08-11 00:15:58 +02:00
content: "";
width: 16px;
height: 16px;
}
input.invalid {
border: 1px solid #ed8796;
}
2025-08-09 21:16:24 +02:00
.pre-copy,
2025-08-14 03:53:14 +02:00
.message .copy {
background-image: url(icons/copy.svg);
}
2025-08-09 21:16:24 +02:00
.pre-copy.copied,
.message .copy.copied {
background-image: url(icons/check.svg);
}
2025-08-16 14:07:45 +02:00
.message .retry {
background-image: url(icons/retry.svg);
}
2025-08-14 03:53:14 +02:00
.message .edit {
2025-08-05 03:56:23 +02:00
background-image: url(icons/edit.svg);
}
2025-08-14 03:53:14 +02:00
.message.editing .edit {
2025-08-05 03:56:23 +02:00
background-image: url(icons/save.svg);
}
2025-08-14 03:53:14 +02:00
.message .delete {
2025-08-05 03:56:23 +02:00
background-image: url(icons/delete.svg);
}
#chat .option label {
background-size: 18px;
}
#model {
width: 180px;
padding: 2px 4px;
}
2025-08-10 22:32:40 +02:00
#reasoning-tokens,
2025-08-23 15:19:43 +02:00
#temperature,
#iterations {
2025-08-05 03:56:23 +02:00
appearance: textfield;
2025-08-10 22:32:40 +02:00
width: 48px;
2025-08-05 03:56:23 +02:00
padding: 2px 4px;
text-align: right;
}
2025-08-23 15:19:43 +02:00
#iterations {
width: 30px;
}
2025-08-05 03:56:23 +02:00
label[for="role"] {
background-image: url(icons/user.svg);
}
label[for="model"] {
background-image: url(icons/model.svg);
}
label[for="prompt"] {
background-image: url(icons/prompt.svg);
}
2025-08-05 03:56:23 +02:00
label[for="temperature"] {
background-image: url(icons/temperature.svg);
}
2025-08-23 15:19:43 +02:00
label[for="iterations"] {
2025-08-23 16:17:01 +02:00
background-image: url(icons/iterations.svg);
2025-08-23 15:19:43 +02:00
}
2025-08-10 22:32:40 +02:00
label[for="reasoning-effort"] {
background-image: url(icons/reasoning.svg);
}
label[for="reasoning-tokens"] {
background-image: url(icons/amount.svg);
}
2025-08-05 03:56:23 +02:00
#bottom {
top: -38px;
2025-08-18 03:47:37 +02:00
right: 20px;
2025-08-05 03:56:23 +02:00
width: 28px;
height: 28px;
background-image: url(icons/down.svg);
transition: 150ms;
}
2025-08-18 03:47:37 +02:00
#upload,
2025-08-05 03:56:23 +02:00
#add,
#send {
bottom: 4px;
right: 20px;
2025-08-05 03:56:23 +02:00
width: 28px;
height: 28px;
background-image: url(icons/send.svg);
2025-08-09 21:16:24 +02:00
z-index: 10;
2025-08-05 03:56:23 +02:00
}
#add {
right: 52px;
2025-08-05 03:56:23 +02:00
background-image: url(icons/add.svg);
}
2025-08-18 03:47:37 +02:00
#upload {
right: 84px;
background-image: url(icons/attach.svg);
}
2025-08-11 00:15:58 +02:00
#json,
#search,
#scrolling,
2025-08-16 14:54:27 +02:00
#import,
#export,
2025-08-11 00:15:58 +02:00
#clear {
2025-08-09 21:16:24 +02:00
position: unset !important;
2025-08-11 00:15:58 +02:00
}
#scrolling {
2025-08-09 21:16:24 +02:00
background-image: url(icons/screen-slash.svg);
}
#scrolling.on {
background-image: url(icons/screen.svg);
}
2025-08-11 00:15:58 +02:00
#json {
background-image: url(icons/json-off.svg);
}
#json.on {
background-image: url(icons/json-on.svg);
}
#search {
background-image: url(icons/search-off.svg);
}
#search.on {
background-image: url(icons/search-on.svg);
}
2025-08-16 14:54:27 +02:00
#import {
background-image: url(icons/import.svg);
}
#export {
background-image: url(icons/export.svg);
}
2025-08-05 03:56:23 +02:00
#clear {
background-image: url(icons/trash.svg);
}
2025-08-18 03:47:37 +02:00
.completing #upload,
2025-08-05 03:56:23 +02:00
.completing #add {
display: none;
}
.completing #send {
background-image: url(icons/stop.svg);
}
2025-08-16 17:18:48 +02:00
.modal .background,
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
}
.modal:not(.open) {
display: none;
}
.modal .background {
background: rgba(24, 25, 38, 0.25);
backdrop-filter: blur(10px);
}
.modal .content,
.modal .body {
display: flex;
flex-direction: column;
gap: 6px;
overflow: hidden;
}
.modal .content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
gap: 14px;
background: #24273a;
padding: 18px 20px;
border-radius: 6px;
box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.1);
z-index: 30;
}
.modal .header {
background: #363a4f;
height: 42px;
margin: -18px -20px;
padding: 10px 20px;
margin-bottom: 0;
font-weight: 500;
font-size: 18px;
}
.modal.loading .content::after,
.modal.loading .content::before {
content: "";
position: absolute;
top: 42px;
left: 0;
z-index: 10;
}
.modal.loading .content::before {
right: 0;
bottom: 0;
backdrop-filter: blur(4px);
}
.modal.loading .content::after {
top: 85px;
left: 50%;
transform: translateX(-50%);
animation: rotating 1.2s linear infinite;
background-image: url(icons/spinner.svg);
}
.modal .error {
background: #ed8796;
font-weight: 500;
font-style: italic;
margin-bottom: 6px;
font-size: 14px;
color: #11111b;
padding: 5px 10px;
border-radius: 2px;
}
.modal:not(.errored) .error {
display: none;
}
.modal.errored input {
border: 1px solid #ed8796;
}
.modal .form-group {
display: flex;
gap: 6px;
}
.modal .form-group label {
width: 80px;
}
.modal .form-group input {
padding: 4px 6px;
}
.modal .buttons {
display: flex;
justify-content: end;
}
#login {
background: #a6da95;
color: #11111b;
padding: 4px 10px;
border-radius: 2px;
font-weight: 500;
transition: 150ms;
}
#login:hover {
background: #89bb77;
}
2025-08-19 17:12:36 +02:00
@keyframes wiggling {
0% {
transform: translate(0px);
}
50% {
transform: translate(-10px, 0px);
}
100% {
transform: translate(0px);
}
}
@keyframes rotating {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
2025-08-14 03:53:14 +02:00
}
@keyframes rotating-y {
from {
transform: translateY(-50%) rotate(0deg);
}
to {
transform: translateY(-50%) rotate(360deg);
}
2025-08-05 03:56:23 +02:00
}