feat: add theme toggle, mobile sidebar, and spotlight-style live search functionality for tags and bookmarks.
This commit is contained in:
parent
59b78ab0b7
commit
f3072c3eb6
@ -1186,7 +1186,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const theme = isDark ? 'dark' : 'light';
|
||||
var lines = [];
|
||||
lines.push('<!DOCTYPE html>');
|
||||
lines.push('<html>');
|
||||
lines.push('<html data-theme="' + theme + '">');
|
||||
lines.push('<head>');
|
||||
lines.push('<meta charset="utf-8">');
|
||||
lines.push('<meta name="viewport" content="width=device-width, initial-scale=1.0">');
|
||||
@ -1206,7 +1206,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
lines.push(' --danger: #ef4444;');
|
||||
lines.push(' --shadow: 0 1px 3px rgba(0,0,0,0.1);');
|
||||
lines.push('}');
|
||||
lines.push('[data-theme="' + theme + '"] {');
|
||||
lines.push('[data-theme="dark"] {');
|
||||
lines.push(' --primary: #3b82f6;');
|
||||
lines.push(' --primary-hover: #60a5fa;');
|
||||
lines.push(' --primary-light: rgba(59,130,246,0.12);');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user