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;
+1 -1
View File
@@ -764,7 +764,7 @@
}
.compare-probe-start-anyway svg { color: currentColor; }
.compare-probe-start-anyway span { font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pane-shake {
0%, 100% { transform: translateX(0); }
15% { transform: translateX(-3px) rotate(-0.5deg); }
+2 -2
View File
@@ -2085,11 +2085,11 @@ body.fullwidth-chat .chat-history {
margin: 8px;
padding: 10px;
}
.recording-text {
font-size: 14px;
}
.stop-recording-btn {
padding: 6px 10px;
font-size: 12px;
@@ -1,22 +1,20 @@
/* Cookbook (including What Fits?), deep research, memory, settings and admin.
*
* Split out of style.css for maintainability, not for performance: this file
* is loaded eagerly from index.html immediately after style.css, so the rules
* land in the cascade in exactly the order they had inside the single file.
* Nothing here is lazy-loaded.
* This is an eagerly loaded tail segment of the app stylesheet cascade. The
* former static/style.css now lives in the numbered 00-17 fragments; these
* three pre-existing panel files follow those fragments without changing
* their relative order. Nothing here is lazy-loaded.
*
* LOAD ORDER IS PART OF THE CONTRACT. The <link> tags in static/index.html and
* the PRECACHE list in static/sw.js must both list the stylesheets in this
* order:
* 1. static/style.css
* LOAD ORDER IS PART OF THE CONTRACT. static/index.html and the PRECACHE list
* in static/sw.js must agree:
* 1. static/css/00-tokens.css through static/css/17-research.css,
* in numeric order
* 2. static/css/documents-gallery-editor.css
* 3. static/css/email-calendar-notes-tasks.css
* 4. static/css/cookbook-research-memory-settings.css
*
* Rules were moved verbatim. A rule stays in style.css when its selector group
* covers more than one panel, when the class is shared design language used by
* modules outside this panel, or when moving it would change which of two
* equally specific rules wins.
* Rules in this file retain their existing cascade position. Shared rules
* formerly kept in static/style.css now live in the numbered fragments.
*/
/* Cookbook already shows its own running/served-status dot
@@ -28,10 +26,6 @@
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.5); opacity: 0.7; }
}
@keyframes research-pulse {
0%, 100% { background: color-mix(in srgb, var(--red) 12%, transparent); }
50% { background: color-mix(in srgb, var(--red) 22%, transparent); }
}
#cookbook-gguf-delete-overlay {
background:rgba(0,0,0,0.5);
backdrop-filter:blur(4px);
+10 -12
View File
@@ -1,22 +1,20 @@
/* Document library and editor, image gallery, image editor.
*
* Split out of style.css for maintainability, not for performance: this file
* is loaded eagerly from index.html immediately after style.css, so the rules
* land in the cascade in exactly the order they had inside the single file.
* Nothing here is lazy-loaded.
* This is an eagerly loaded tail segment of the app stylesheet cascade. The
* former static/style.css now lives in the numbered 00-17 fragments; these
* three pre-existing panel files follow those fragments without changing
* their relative order. Nothing here is lazy-loaded.
*
* LOAD ORDER IS PART OF THE CONTRACT. The <link> tags in static/index.html and
* the PRECACHE list in static/sw.js must both list the stylesheets in this
* order:
* 1. static/style.css
* LOAD ORDER IS PART OF THE CONTRACT. static/index.html and the PRECACHE list
* in static/sw.js must agree:
* 1. static/css/00-tokens.css through static/css/17-research.css,
* in numeric order
* 2. static/css/documents-gallery-editor.css
* 3. static/css/email-calendar-notes-tasks.css
* 4. static/css/cookbook-research-memory-settings.css
*
* Rules were moved verbatim. A rule stays in style.css when its selector group
* covers more than one panel, when the class is shared design language used by
* modules outside this panel, or when moving it would change which of two
* equally specific rules wins.
* Rules in this file retain their existing cascade position. Shared rules
* formerly kept in static/style.css now live in the numbered fragments.
*/
/* Document library search-term highlight — clear, high-contrast. */
+10 -12
View File
@@ -1,22 +1,20 @@
/* Email, calendar, notes and tasks panels.
*
* Split out of style.css for maintainability, not for performance: this file
* is loaded eagerly from index.html immediately after style.css, so the rules
* land in the cascade in exactly the order they had inside the single file.
* Nothing here is lazy-loaded.
* This is an eagerly loaded tail segment of the app stylesheet cascade. The
* former static/style.css now lives in the numbered 00-17 fragments; these
* three pre-existing panel files follow those fragments without changing
* their relative order. Nothing here is lazy-loaded.
*
* LOAD ORDER IS PART OF THE CONTRACT. The <link> tags in static/index.html and
* the PRECACHE list in static/sw.js must both list the stylesheets in this
* order:
* 1. static/style.css
* LOAD ORDER IS PART OF THE CONTRACT. static/index.html and the PRECACHE list
* in static/sw.js must agree:
* 1. static/css/00-tokens.css through static/css/17-research.css,
* in numeric order
* 2. static/css/documents-gallery-editor.css
* 3. static/css/email-calendar-notes-tasks.css
* 4. static/css/cookbook-research-memory-settings.css
*
* Rules were moved verbatim. A rule stays in style.css when its selector group
* covers more than one panel, when the class is shared design language used by
* modules outside this panel, or when moving it would change which of two
* equally specific rules wins.
* Rules in this file retain their existing cascade position. Shared rules
* formerly kept in static/style.css now live in the numbered fragments.
*/
@keyframes email-notif-breathe {