code formatting, delete old files

This commit is contained in:
Matteo Rosati
2026-02-18 18:09:45 +01:00
parent a9e23d94b1
commit 21975c557b
7 changed files with 257 additions and 987 deletions

View File

@@ -1,233 +1,232 @@
:root {
color-scheme: light;
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
color-scheme: light;
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
}
* {
box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
height: 100%;
height: 100%;
}
body {
margin: 0;
padding: 0;
background: #f7f8fa;
color: #1f2937;
margin: 0;
padding: 0;
background: #f7f8fa;
color: #1f2937;
}
.app {
display: flex;
width: 100vw;
height: 100vh;
overflow: hidden;
display: flex;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.chat {
flex: 1;
height: 100%;
margin: 0;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 0;
display: flex;
flex-direction: column;
flex: 1;
height: 100%;
margin: 0;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 0;
display: flex;
flex-direction: column;
}
.chat__header {
padding: 16px 20px;
border-bottom: 1px solid #e5e7eb;
font-weight: 600;
background: #f9fafb;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 20px;
border-bottom: 1px solid #e5e7eb;
font-weight: 600;
background: #f9fafb;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.chat__messages {
flex: 1;
padding: 16px 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
flex: 1;
padding: 16px 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
}
.message {
max-width: 70%;
padding: 10px 12px;
border-radius: 12px;
line-height: 1.4;
font-size: 14px;
word-wrap: break-word;
white-space: pre-wrap;
max-width: 70%;
padding: 10px 12px;
border-radius: 12px;
line-height: 1.4;
font-size: 14px;
word-wrap: break-word;
white-space: pre-wrap;
}
.message--out {
align-self: flex-end;
background: #2563eb;
color: #ffffff;
align-self: flex-end;
background: #2563eb;
color: #ffffff;
}
.message--in {
align-self: flex-start;
background: #f3f4f6;
color: #111827;
align-self: flex-start;
background: #f3f4f6;
color: #111827;
}
/* Typing / loading indicator */
.message--loading {
display: flex;
align-items: center;
gap: 5px;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 5px;
padding: 12px 16px;
}
.typing-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #9ca3af;
animation: typing-bounce 1.2s infinite ease-in-out;
width: 8px;
height: 8px;
border-radius: 50%;
background: #9ca3af;
animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(1) {
animation-delay: 0s;
animation-delay: 0s;
}
.typing-dot:nth-child(2) {
animation-delay: 0.2s;
animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
animation-delay: 0.4s;
animation-delay: 0.4s;
}
@keyframes typing-bounce {
0%,
60%,
100% {
transform: translateY(0);
background: #9ca3af;
}
0%,
60%,
100% {
transform: translateY(0);
background: #9ca3af;
}
30% {
transform: translateY(-6px);
background: #6b7280;
}
30% {
transform: translateY(-6px);
background: #6b7280;
}
}
.chat__footer {
padding: 16px 20px;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 12px;
background: #f9fafb;
padding: 16px 20px;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 12px;
background: #f9fafb;
}
.chat__input {
flex: 1;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid #d1d5db;
background: #ffffff;
color: #111827;
flex: 1;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid #d1d5db;
background: #ffffff;
color: #111827;
}
.chat__input::placeholder {
color: #9ca3af;
color: #9ca3af;
}
.chat__button {
padding: 10px 16px;
border-radius: 8px;
border: none;
background: #2563eb;
color: #ffffff;
font-weight: 600;
cursor: pointer;
padding: 10px 16px;
border-radius: 8px;
border: none;
background: #2563eb;
color: #ffffff;
font-weight: 600;
cursor: pointer;
}
.chat__button:disabled {
background: #cbd5f5;
color: #ffffff;
cursor: not-allowed;
opacity: 0.75;
background: #cbd5f5;
color: #ffffff;
cursor: not-allowed;
opacity: 0.75;
}
.chat__button--secondary {
background: #e5e7eb;
color: #1f2937;
background: #e5e7eb;
color: #1f2937;
}
.chat__button--secondary:hover {
background: #d1d5db;
background: #d1d5db;
}
.chat__status {
padding: 8px 20px 0;
font-size: 12px;
color: #6b7280;
padding: 8px 20px 0;
font-size: 12px;
color: #6b7280;
}
.drawer {
width: 320px;
max-width: 100%;
height: 100%;
border-left: 1px solid #e5e7eb;
background: #ffffff;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
width: 320px;
max-width: 100%;
height: 100%;
border-left: 1px solid #e5e7eb;
background: #ffffff;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.drawer__header {
display: flex;
align-items: center;
gap: 12px;
display: flex;
align-items: center;
gap: 12px;
}
.drawer__title {
margin: 0;
font-size: 18px;
margin: 0;
font-size: 18px;
}
.drawer__form {
display: flex;
flex-direction: column;
gap: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.drawer__field {
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
gap: 6px 12px;
align-items: center;
font-size: 13px;
color: #1f2937;
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
gap: 6px 12px;
align-items: center;
font-size: 13px;
color: #1f2937;
}
.drawer__label {
font-weight: 600;
font-weight: 600;
}
.drawer__range {
grid-column: 1 / -1;
width: 100%;
grid-column: 1 / -1;
width: 100%;
}
.drawer__value {
font-variant-numeric: tabular-nums;
font-variant-numeric: tabular-nums;
}