Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Update CSS class prefixes across multiple files

LearningCircuitd30d36cd552c
diff --git a/.pre-commit-hooks/check-css-class-prefix.py b/.pre-commit-hooks/check-css-class-prefix.py
index 61ded90228..90ce4273fd 100755
--- a/.pre-commit-hooks/check-css-class-prefix.py
+++ b/.pre-commit-hooks/check-css-class-prefix.py
@@ -104,6 +104,10 @@ def check_css_file(file_path: Path) -> List[Tuple[int, str, str]]:
if "/*" in line or "*/" in line or line.strip().startswith("//"):
continue
+ # Skip @import statements
+ if "@import" in line:
+ continue
+
matches = class_pattern.findall(line)
for class_name in matches:
if not is_allowed_class(class_name):
diff --git a/src/local_deep_research/web/static/css/custom_dropdown.css b/src/local_deep_research/web/static/css/custom_dropdown.css
index 871e10939d..efae746c27 100644
--- a/src/local_deep_research/web/static/css/custom_dropdown.css
+++ b/src/local_deep_research/web/static/css/custom_dropdown.css
@@ -118,18 +118,18 @@ body.dropdown-active {
}
/* Custom dropdown with refresh button */
-.custom-dropdown-with-refresh {
+.ldr-custom-dropdown-with-refresh {
display: flex;
align-items: center; /* Center items vertically */
gap: 8px;
width: 100%;
}
-.custom-dropdown-with-refresh .ldr-custom-dropdown {
+.ldr-custom-dropdown-with-refresh .ldr-custom-dropdown {
flex: 1;
}
-.custom-dropdown-refresh-btn {
+.ldr-custom-dropdown-refresh-btn {
display: flex;
align-items: center;
justify-content: center;
@@ -144,13 +144,13 @@ body.dropdown-active {
flex-shrink: 0; /* Prevent button from shrinking */
}
-.custom-dropdown-refresh-btn:hover {
+.ldr-custom-dropdown-refresh-btn:hover {
background-color: var(--bg-secondary, #1e1e2d);
color: var(--accent-primary, #6e4ff6);
border-color: var(--accent-primary, #6e4ff6);
}
-.custom-dropdown-refresh-btn.loading {
+.ldr-custom-dropdown-refresh-btn.loading {
pointer-events: none;
}
@@ -160,11 +160,11 @@ body.dropdown-active {
}
/* Only show loader inside button when needed */
-.custom-dropdown-refresh-btn.loading i {
+.ldr-custom-dropdown-refresh-btn.loading i {
display: none;
}
-.custom-dropdown-refresh-btn.loading:before {
+.ldr-custom-dropdown-refresh-btn.loading:before {
content: "";
width: 16px;
height: 16px;
@@ -330,11 +330,11 @@ body.dropdown-active {
}
/* Legacy keyboard hint styling for other components */
-.keyboard-hint {
+.ldr-keyboard-hint {
margin-top: 6px;
}
-.keyboard-hint .ldr-hint-text {
+.ldr-keyboard-hint .ldr-hint-text {
font-size: 0.8rem;
color: var(--text-secondary, #c0c0cc);
font-style: italic;
@@ -404,7 +404,7 @@ legend {
}
/* Keyboard shortcut hint styling */
-.keyboard-shortcut-hint {
+.ldr-keyboard-shortcut-hint {
display: flex;
justify-content: center;
align-items: center;
@@ -413,12 +413,12 @@ legend {
animation: fadeIn 0.5s ease-in;
}
-.keyboard-shortcut-hint .ldr-hint-text {
+.ldr-keyboard-shortcut-hint .ldr-hint-text {
font-size: 0.9rem;
color: var(--text-secondary, #c0c0cc);
}
-.keyboard-shortcut-hint kbd {
+.ldr-keyboard-shortcut-hint kbd {
display: inline-block;
padding: 0.2rem 0.4rem;
font-size: 0.875rem;
@@ -444,14 +444,14 @@ legend {
}
/* Results page keyboard hint */
-.results-keyboard-hint {
+.ldr-results-keyboard-hint {
text-align: right;
margin-top: 0.5rem;
padding: 0.25rem 0;
animation: fadeIn 0.5s ease-in;
}
-.results-keyboard-hint .ldr-hint-text {
+.ldr-results-keyboard-hint .ldr-hint-text {
font-size: 0.85rem;
color: var(--text-muted, #8a8aa0);
}
diff --git a/src/local_deep_research/web/static/js/components/fallback/ui.js b/src/local_deep_research/web/static/js/components/fallback/ui.js
index 02acc4866b..5d47d21478 100644
--- a/src/local_deep_research/web/static/js/components/fallback/ui.js
+++ b/src/local_deep_research/web/static/js/components/fallback/ui.js
@@ -48,29 +48,29 @@
// Create a notification element
const notification = document.createElement('div');
- notification.className = 'notification error';
+ notification.className = 'ldr-notification error';
notification.innerHTML = `
<i class="fas fa-exclamation-circle"></i>
<span>${message}</span>
- <button class="close-notification"><i class="fas fa-times"></i></button>
+ <button class="ldr-close-notification"><i class="fas fa-times"></i></button>
`;
// Add to the page if a notification container exists, otherwise use alert
- const container = document.querySelector('.notifications-container');
+ const container = document.querySelector('.ldr-notifications-container');
if (container) {
container.appendChild(notification);
// Remove after a delay
setTimeout(() => {
- notification.classList.add('removing');
+ notification.classList.add('ldr-removing');
setTimeout(() => notification.remove(), 500);
}, 5000);
// Set up close button
- const closeBtn = notification.querySelector('.close-notification');
+ const closeBtn = notification.querySelector('.ldr-close-notification');
if (closeBtn) {
closeBtn.addEventListener('click', () => {
- notification.classList.add('removing');
+ notification.classList.add('ldr-removing');
setTimeout(() => notification.remove(), 500);
});
}
@@ -89,29 +89,29 @@
// Create a notification element
const notification = document.createElement('div');
- notification.className = 'notification success';
+ notification.className = 'ldr-notification success';
notification.innerHTML = `
<i class="fas fa-check-circle"></i>
<span>${message}</span>
- <button class="close-notification"><i class="fas fa-times"></i></button>
+ <button class="ldr-close-notification"><i class="fas fa-times"></i></button>
`;
// Add to the page if a notification container exists, otherwise use alert
- const container = document.querySelector('.notifications-container');
+ const container = document.querySelector('.ldr-notifications-container');
if (container) {
container.appendChild(notification);
// Remove after a delay
setTimeout(() => {
- notification.classList.add('removing');
+ notification.classList.add('ldr-removing');
setTimeout(() => notification.remove(), 500);
}, 5000);
// Set up close button
- const closeBtn = notification.querySelector('.close-notification');
+ const closeBtn = notification.querySelector('.ldr-close-notification');
if (closeBtn) {
closeBtn.addEventListener('click', () => {
- notification.classList.add('removing');
+ notification.classList.add('ldr-removing');
setTimeout(() => notification.remove(), 500);
});
}
diff --git a/src/local_deep_research/web/static/js/components/history.js b/src/local_deep_research/web/static/js/components/history.js
index 5f2094e0b4..54f191047c 100644
--- a/src/local_deep_research/web/static/js/components/history.js
+++ b/src/local_deep_research/web/static/js/components/history.js
@@ -356,7 +356,7 @@
`;
// Add event listeners
- const viewBtn = itemEl.querySelector('.view-btn');
+ const viewBtn = itemEl.querySelector('.ldr-view-btn');
if (viewBtn) {
viewBtn.addEventListener('click', (e) => {
e.stopPropagation(); // Prevent item click
@@ -372,7 +372,7 @@
});
}
- const deleteBtn = itemEl.querySelector('.delete-item-btn');
+ const deleteBtn = itemEl.querySelector('.ldr-delete-item-btn');
if (deleteBtn) {
deleteBtn.addEventListener('click', (e) => {
e.stopPropagation(); // Prevent item click
diff --git a/src/local_deep_research/web/static/js/components/progress.js b/src/local_deep_research/web/static/js/components/progress.js
index ae4eaaf0b9..e7da340355 100644
--- a/src/local_deep_research/web/static/js/components/progress.js
+++ b/src/local_deep_research/web/static/js/components/progress.js
@@ -116,7 +116,7 @@
*/
function setupSafeNavigationHandling() {
// Find all navigation links
- const navLinks = document.querySelectorAll('a, .sidebar-nav li, .mobile-tab-bar li');
+ const navLinks = document.querySelectorAll('a, .ldr-sidebar-nav li, .ldr-mobile-tab-bar li');
navLinks.forEach(link => {
// Don't override existing click handlers, add our handler
diff --git a/src/local_deep_research/web/templates/auth/register.html b/src/local_deep_research/web/templates/auth/register.html
index 1226b805cb..ca93cef8bb 100644
--- a/src/local_deep_research/web/templates/auth/register.html
+++ b/src/local_deep_research/web/templates/auth/register.html
@@ -363,7 +363,7 @@
</div>
</div>
{% else %}
- <div class="danger-alert">
+ <div class="ldr-danger-alert">
<i class="fas fa-shield-alt"></i>
<strong>Security Alert: No Encryption Available</strong>
SQLCipher is not installed. Your database will be created WITHOUT encryption.
@@ -404,7 +404,7 @@
<small>Letters, numbers, underscores, and hyphens only</small>
</div>
- <div class="form-group password-field">
+ <div class="form-group ldr-password-field">
<label for="password">Password</label>
<input type="password"
class="form-control"
@@ -418,7 +418,7 @@
<div id="password-strength" class="ldr-password-strength" style="display: none;"></div>
</div>
- <div class="password-requirements">
+ <div class="ldr-password-requirements">
<strong>Password Requirements:</strong>
<ul>
<li>At least 8 characters long</li>
@@ -461,7 +461,7 @@
<div class="ldr-auth-links">
<p>Already have an account? <a href="{{ url_for('auth.login') }}">Login here</a></p>
- <div class="browser-hint">
+ <div class="ldr-browser-hint">
<i class="fas fa-info-circle"></i>
<span>Your browser will offer to save your password</span>
</div>