Merge lab into refactor/split-style-css

This commit is contained in:
Alexandre Teixeira
2026-10-01 00:48:58 +01:00
96 changed files with 2210 additions and 389 deletions
+49 -62
View File
@@ -1328,7 +1328,7 @@ body.bg-pattern-ascii-fireflies {
0% { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
100% { opacity: 0; transform: translateY(6px) translateX(-3px) scale(0.94); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.row { display:flex; gap:6px; align-items:center; }
.list-item:hover,
.models-row:hover {
@@ -2407,7 +2407,7 @@ body.bg-pattern-ascii-fireflies {
min-height: 20px;
min-width: 80px;
}
/* Ensure code block headers are only slightly larger than regular text */
pre h1, pre h2, pre h3, pre h4, pre h5, pre h6 {
font-size: 1.1em;
@@ -3944,11 +3944,11 @@ body.bg-pattern-ascii-fireflies {
.attach-strip:empty {
display: none;
}
.attach-strip {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 6px 0 0;
.attach-strip {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 6px 0 0;
min-height: 32px;
padding: 2px;
}
@@ -4991,10 +4991,10 @@ body.bg-pattern-ascii-fireflies {
display:flex; align-items:center; gap:6px; border:1px solid var(--border); padding:4px; margin:4px 0; border-radius: 4px;
}
.models-row .grow,
.models-row select {
flex:1;
display:flex;
align-items:center;
.models-row select {
flex:1;
display:flex;
align-items:center;
font-size: 9.75px;
}
.model-fav-btn {
@@ -5967,9 +5967,7 @@ body.bg-pattern-ascii-fireflies {
#mobile-backdrop, #mobile-menu-btn { display:none !important; }
#sidebar-backdrop { display:none !important; }
/* ----- Loading spinner ----- */
@keyframes spin {
to { transform: rotate(360deg); }
}
.spinner {
width: 24px;
height: 24px;
@@ -5997,7 +5995,7 @@ body.bg-pattern-ascii-fireflies {
padding: 4px;
border-left: 2px solid var(--red);
background: color-mix(in srgb, var(--red) 5%, transparent);
}
}
/* Loading indicator for messages */
.loading-indicator {
display: flex;
@@ -6088,14 +6086,7 @@ body.bg-pattern-ascii-fireflies {
.session-skeleton-bubble.is-user { width: 72%; }
.session-skeleton-line { height: 9px; margin-top: 7px; }
}
@keyframes loading-bounce {
0%, 80%, 100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
/* Modal styling */
.modal {
position:fixed;
@@ -6689,7 +6680,7 @@ body.bg-pattern-ascii-fireflies {
opacity: 0.6;
cursor: not-allowed;
}
/* ── Drag & Drop ── */
/* ---------- Color palette (dark / light) ---------- */
@@ -6699,28 +6690,28 @@ body.bg-pattern-ascii-fireflies {
background: color-mix(in srgb, var(--red) 10%, transparent) !important;
border-color: var(--red) !important;
}
.section[dnd-over="true"] {
background: color-mix(in srgb, var(--red) 20%, transparent) !important;
border-color: var(--red) !important;
transform: scale(1.02);
}
.drag-handle {
cursor: grab;
opacity: 0.5;
padding: 0 6px;
user-select: none;
}
.drag-handle:hover {
opacity: 0.8;
}
.drag-handle:active {
cursor: grabbing;
}
/* ── UI Controls (Radio, Presets, Toolbar, Settings) ── */
@@ -6736,12 +6727,12 @@ body.bg-pattern-ascii-fireflies {
cursor: pointer;
transition: all 0.2s ease;
}
.radio-option:hover {
background: color-mix(in srgb, var(--fg) 9%, transparent);
border-color: var(--fg);
}
.radio-option input[type="radio"] {
appearance: none;
-webkit-appearance: none;
@@ -6756,22 +6747,22 @@ body.bg-pattern-ascii-fireflies {
position: relative;
flex-shrink: 0;
}
.radio-option input[type="radio"]:checked {
border-color: var(--red);
background: var(--red);
}
.radio-option input[type="radio"]:focus {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 30%, transparent);
}
.radio-label {
color: var(--fg);
font-size: 14px;
user-select: none;
}
/* Preset buttons */
.preset-btn {
height: 27.2px; /* 15% smaller than 32px */
@@ -6786,29 +6777,29 @@ body.bg-pattern-ascii-fireflies {
cursor: pointer;
transition: all 0.2s ease;
}
.preset-btn:hover {
background: var(--panel);
border-color: var(--fg);
}
.preset-btn.active {
background: var(--panel);
border-color: var(--fg);
box-shadow: 0 0 0 1px var(--fg), 0 0 8px color-mix(in srgb, var(--fg) 16%, transparent);
font-weight: 600;
}
/* All preset buttons use the same blue color */
.preset-btn {
border-color: var(--red); /* Blue color */
}
.preset-btn.active {
border-color: var(--red); /* Blue color when active */
box-shadow: 0 0 0 1px var(--red), 0 0 8px color-mix(in srgb, var(--red) 30%, transparent);
}
/* Custom preset modal: the base .preset-modal-content sets overflow:hidden
(for desktop rounded-corner clipping), which on the mobile sheet clipped
the footer (Start/Cancel) off the bottom with no way to reach it. Let the
@@ -7366,7 +7357,7 @@ body.bg-pattern-ascii-fireflies {
background: var(--border);
margin: 4px 8px;
}
/* Search toggle styles */
.search-toggle {
display: flex;
@@ -7376,7 +7367,7 @@ body.bg-pattern-ascii-fireflies {
border-bottom: 1px solid var(--border);
margin-bottom: 8px;
}
.search-provider-label {
font-size: 14px;
color: var(--fg);
@@ -7391,24 +7382,20 @@ body.bg-pattern-ascii-fireflies {
border-radius: 4px;
transition: all 0.2s ease;
}
#mic-btn:hover {
background: color-mix(in srgb, var(--fg) 6%, transparent);
border-color: var(--fg);
}
#mic-btn.recording {
background: var(--color-recording);
border-color: var(--color-recording);
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.7; }
100% { opacity: 1; }
}
#recording-indicator {
position: fixed;
top: 10px;
@@ -7426,29 +7413,29 @@ body.bg-pattern-ascii-fireflies {
justify-content: space-between;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#recording-indicator.hidden {
display: none !important;
}
.recording-content {
display: flex;
align-items: center;
gap: 12px;
color: white;
}
.recording-icon {
color: var(--color-recording);
font-size: 20px;
animation: pulse 1.5s infinite;
}
.recording-text {
font-size: 16px;
font-weight: 500;
}
#stop-recording {
background: var(--color-recording);
color: white;
@@ -7460,32 +7447,32 @@ body.bg-pattern-ascii-fireflies {
cursor: pointer;
transition: background 0.2s ease;
}
#stop-recording:hover {
background: var(--color-recording-hover);
}
/* Error state for recording */
#recording-indicator.error {
background: rgba(173, 26, 26, 0.9);
}
.recording-error {
color: var(--color-recording);
font-size: 14px;
margin-top: 4px;
}
@media (max-width: 768px) {
#recording-indicator {
margin: 8px;
padding: 10px;
}
.recording-text {
font-size: 14px;
}
#stop-recording {
padding: 6px 10px;
font-size: 12px;