/* Google Font */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); /** * Shaarli Professional Theme - Bookmarkify Style * Modern Sidebar Layout + Light/Dark Mode */ /* ===== CSS Variables ===== */ :root { /* Light Mode */ --primary: #3b82f6; --primary-hover: #2563eb; --primary-light: rgba(59, 130, 246, 0.1); --bg-body: #f8fafc; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-card-hover: #f9fafb; --text-main: #111827; --text-secondary: #6b7280; --text-muted: #9ca3af; --border: #e5e7eb; --border-light: #f3f4f6; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --header-bg: #3b82f6; --header-text: #ffffff; --sidebar-width: 230px; --sidebar-collapsed: 60px; --header-height: 56px; --tag-bg: #e0e7ff; --tag-text: #4338ca; --tag-green-bg: #d1fae5; --tag-green-text: #065f46; --tag-red-bg: #fee2e2; --tag-red-text: #991b1b; --tag-yellow-bg: #fef3c7; --tag-yellow-text: #92400e; --success: #10b981; --danger: #ef4444; --warning: #f59e0b; --info: #3b82f6; --overlay-bg: rgba(0, 0, 0, 0.5); --selection-bg: rgba(239, 68, 68, 0.15); --selection-border: #ef4444; } [data-theme="dark"] { /* Dark Mode */ --primary: #60a5fa; --primary-hover: #3b82f6; --primary-light: rgba(96, 165, 250, 0.15); --bg-body: #0f172a; --bg-sidebar: #1e293b; --bg-card: #1e293b; --bg-card-hover: #334155; --text-main: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b; --border: #334155; --border-light: #1e293b; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5); --header-bg: #1e293b; --header-text: #f1f5f9; --tag-bg: #312e81; --tag-text: #a5b4fc; --tag-green-bg: #064e3b; --tag-green-text: #6ee7b7; --tag-red-bg: #7f1d1d; --tag-red-text: #fca5a5; --tag-yellow-bg: #78350f; --tag-yellow-text: #fcd34d; --success: #10b981; --danger: #ef4444; --warning: #f59e0b; --info: #60a5fa; --overlay-bg: rgba(0, 0, 0, 0.7); --selection-bg: rgba(239, 68, 68, 0.25); } /* ===== Reset & Base ===== */ *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; font-size: 14.5px; /* Decrease global scale */ } body { background-color: var(--bg-body); color: var(--text-main); font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; padding: 0; line-height: 1.6; transition: background-color 0.3s ease, color 0.3s ease; min-height: 100vh; } a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; } a:hover { color: var(--primary-hover); } /* Accessible Focus */ :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; } /* ===== App Layout (Sidebar + Main) ===== */ .app-layout { display: flex; min-height: 100vh; } /* ===== Sidebar ===== */ .sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; display: flex; flex-direction: column; transition: transform 0.3s ease, width 0.3s ease; overflow-y: auto; overflow-x: hidden; } .sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; } .sidebar-logo { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; } .sidebar-brand { font-size: 1.25rem; font-weight: 700; color: var(--text-main); line-height: 1.3; word-break: break-word; } .sidebar-brand:hover { color: var(--text-main); } .sidebar-nav { flex: 1; padding: 1rem 0; } .sidebar-section { padding: 0 0.75rem; margin-bottom: 1.5rem; } .sidebar-section-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0 0.75rem; margin-bottom: 0.5rem; } .sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; transition: all 0.2s ease; margin-bottom: 0.125rem; width: 100%; } .sidebar-search-trigger { border: none; background: transparent; text-align: left; cursor: pointer; } .sidebar-link:hover { background: var(--primary-light); color: var(--primary); } .sidebar-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; } .sidebar-link i { font-size: 1.25rem; width: 1.5rem; text-align: center; } .sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); } .sidebar-add-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem 1rem; background: var(--primary); color: white; border: none; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s ease; text-decoration: none; } .sidebar-add-btn:hover { background: var(--primary-hover); color: white; } /* Theme toggle in sidebar */ .theme-toggle-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; margin-top: 0.75rem; background: var(--border-light); border-radius: 0.5rem; } .theme-toggle-label { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; } .theme-switch { position: relative; width: 44px; height: 24px; } .theme-switch input { opacity: 0; width: 0; height: 0; } .theme-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); transition: 0.3s; border-radius: 24px; } .theme-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: 0.3s; border-radius: 50%; } input:checked+.theme-slider { background: var(--primary); } input:checked+.theme-slider:before { transform: translateX(20px); } /* ===== Main Content Area ===== */ .main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; } /* ===== Top Header Bar ===== */ .header-main { background: var(--header-bg); color: var(--header-text); height: var(--header-height); position: sticky; top: 0; z-index: 100; display: flex; align-items: center; padding: 0 1.5rem; box-shadow: var(--shadow-sm); } .header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; } .header-left { display: flex; align-items: center; gap: 1rem; } .mobile-menu-btn { display: none; background: none; border: none; color: var(--header-text); font-size: 1.5rem; cursor: pointer; padding: 0.25rem; } .header-brand { font-size: 1.25rem; font-weight: 700; color: var(--header-text); } .header-brand:hover { color: var(--header-text); opacity: 0.9; } /* Header Navigation */ .header-nav { display: flex; align-items: center; gap: 0.25rem; } .header-nav-link { display: flex; align-items: center; justify-content: center; gap: 0; width: 38px; height: 38px; padding: 0; color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 0.9rem; border-radius: 0.375rem; transition: all 0.2s ease; white-space: nowrap; background: transparent; border: none; cursor: pointer; font-family: inherit; } .header-nav-link-tag:hover { background: var(--primary); color: white; } .header-nav-link span { display: none; } .header-nav-link i { font-size: 1.125rem; } /* Header Actions */ .header-actions { display: flex; align-items: center; gap: 0.5rem; } .header-action-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255, 255, 255, 0.1); border: none; border-radius: 0.5rem; color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; cursor: pointer; transition: all 0.2s ease; text-decoration: none; } .header-action-btn:hover { background: rgba(255, 255, 255, 0.2); color: white; } .header-action-btn.active { background: rgba(255, 255, 255, 0.25); } /* ===== Filter Panel Dropdown ===== */ .filter-dropdown { position: relative; } .filter-panel { position: absolute; top: calc(100% + 0.5rem); right: 0; width: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: var(--shadow-xl); z-index: 300; display: none; animation: slideDown 0.2s ease; } .filter-panel.show { display: block; } @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } .filter-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); } .filter-title { font-weight: 600; font-size: 1rem; color: var(--text-main); } .filter-close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; padding: 0.25rem; line-height: 1; } .filter-close:hover { color: var(--text-main); } .filter-body { padding: 1rem 1.25rem; } .filter-section { margin-bottom: 1.25rem; } .filter-section:last-child { margin-bottom: 0; } .filter-section-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; } .filter-option { display: block; padding: 0.5rem 0.75rem; border-radius: 0.375rem; color: var(--text-main); font-size: 0.9rem; cursor: pointer; transition: background 0.15s ease; } .filter-option:hover { background: var(--primary-light); color: var(--primary); } .filter-option.active { background: var(--primary-light); color: var(--primary); font-weight: 500; } /* Filter Toggle */ .filter-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 0; } .filter-toggle-label { font-size: 0.9rem; color: var(--text-main); } .toggle-switch { position: relative; width: 44px; height: 24px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); transition: 0.3s; border-radius: 24px; } .toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: 0.3s; border-radius: 50%; } .toggle-switch input:checked+.toggle-slider { background: var(--primary); } .toggle-switch input:checked+.toggle-slider:before { transform: translateX(20px); } /* Custom Input */ .filter-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg-body); color: var(--text-main); font-size: 0.9rem; } .filter-input:focus { outline: none; border-color: var(--primary); } /* ===== Search Overlay (Spotlight Style) ===== */ .search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); z-index: 500; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; animation: fadeIn 0.2s ease; backdrop-filter: blur(4px); } .search-overlay.show { display: flex; } .modal-overlay, .qrcode-modal-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(6, 10, 22, 0.65); z-index: 520; } .modal-overlay.show, .qrcode-modal-overlay.show { display: flex; } .modal-content, .qrcode-modal-content { position: relative; width: min(900px, 92vw); max-height: 85vh; overflow: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); padding: 1rem; } .modal-close, .qrcode-modal-close { position: absolute; top: 0.5rem; right: 0.5rem; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg-card); color: var(--text-secondary); font-size: 1.1rem; line-height: 1; cursor: pointer; } .modal-close:hover, .qrcode-modal-close:hover { background: var(--primary-light); color: var(--primary); } .modal-body, #qrcode-modal-body { margin-top: 1.75rem; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .search-modal { width: 90%; max-width: 580px; background: #ffffff; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05); overflow: hidden; animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1); } [data-theme="dark"] .search-modal { background: var(--bg-card); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); } @keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Search Header (Input Zone) */ .search-modal-header { display: flex; align-items: center; padding: 1rem 1.25rem; gap: 0.75rem; } .search-modal-input { flex: 1; border: none; background: transparent; font-size: 1rem; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #111827; outline: none; caret-color: var(--primary); } [data-theme="dark"] .search-modal-input { color: var(--text-main); } .search-modal-input::placeholder { color: #9ca3af; } [data-theme="dark"] .search-modal-input::placeholder { color: var(--text-muted); } /* Pill Buttons */ .search-modal-actions { display: flex; gap: 0.5rem; } .search-pill-btn { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; border-radius: 9999px; border: none; font-size: 0.8125rem; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.15s ease; } .search-pill-btn i { font-size: 0.9rem; } .search-pill-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .search-pill-btn span { white-space: nowrap; } /* Notes pill */ .search-pill-notes { background: #E5E7EB; color: #374151; } .search-pill-notes:hover { background: #D1D5DB; } .search-pill-notes.active { background: #3B82F6; color: #ffffff; } [data-theme="dark"] .search-pill-notes { background: #374151; color: #D1D5DB; } [data-theme="dark"] .search-pill-notes:hover { background: #4B5563; } [data-theme="dark"] .search-pill-notes.active { background: #3B82F6; color: #ffffff; } /* Tags pill - Gray style */ .search-pill-tags { background: #E5E7EB; color: #374151; } .search-pill-tags:hover { background: #D1D5DB; } .search-pill-tags.active { background: #3B82F6; color: #ffffff; } [data-theme="dark"] .search-pill-tags { background: #374151; color: #D1D5DB; } [data-theme="dark"] .search-pill-tags:hover { background: #4B5563; } [data-theme="dark"] .search-pill-tags.active { background: #3B82F6; color: #ffffff; } /* Search pill - Blue style */ .search-pill-search { background: #E5E7EB; color: #374151; } .search-pill-search:hover { background: #D1D5DB; } .search-pill-search.active { background: #3B82F6; color: #ffffff; } [data-theme="dark"] .search-pill-search { background: #374151; color: #D1D5DB; } [data-theme="dark"] .search-pill-search:hover { background: #4B5563; } [data-theme="dark"] .search-pill-search.active { background: #3B82F6; color: #ffffff; } /* Separator */ .search-separator { height: 1px; background: #E5E7EB; margin: 0; } [data-theme="dark"] .search-separator { background: var(--border); } /* Results List */ .search-results { max-height: 320px; overflow-y: auto; padding: 0.5rem 0; } .search-results-empty { padding: 1.5rem 1.25rem; text-align: center; } .search-results-hint { color: #9ca3af; font-size: 0.875rem; } [data-theme="dark"] .search-results-hint { color: var(--text-muted); } /* Result Item */ .search-result-item { display: block; padding: 0.625rem 1.25rem; color: #374151; font-size: 0.9375rem; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: background 0.1s ease; text-decoration: none; line-height: 1.5; } .search-result-item:hover, .search-result-item.selected { background: #F3F4F6; color: #111827; } [data-theme="dark"] .search-result-item { color: var(--text-secondary); } [data-theme="dark"] .search-result-item:hover, [data-theme="dark"] .search-result-item.selected { background: var(--bg-card-hover); color: var(--text-main); } /* Highlight (Fuzzy Matching) */ .search-result-item mark, .search-highlight { background-color: #FFFF00; color: #000000; padding: 0 2px; border-radius: 2px; } [data-theme="dark"] .search-result-item mark, [data-theme="dark"] .search-highlight { background-color: #FDE047; color: #000000; } /* No Results */ .search-no-results { padding: 1.5rem 1.25rem; text-align: center; color: #9ca3af; font-size: 0.875rem; } [data-theme="dark"] .search-no-results { color: var(--text-muted); } /* Footer */ .search-footer { padding: 0.625rem 1.25rem; background: #F9FAFB; border-top: 1px solid #E5E7EB; } [data-theme="dark"] .search-footer { background: var(--bg-body); border-top-color: var(--border); } .search-footer-hint { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: #9ca3af; font-size: 0.75rem; } [data-theme="dark"] .search-footer-hint { color: var(--text-muted); } .search-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; padding: 0.125rem 0.375rem; background: #ffffff; border: 1px solid #D1D5DB; border-radius: 4px; font-family: 'Inter', system-ui, sans-serif; font-size: 0.6875rem; font-weight: 500; color: #6B7280; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } [data-theme="dark"] .search-kbd { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); } /* Loading state */ .search-loading { display: flex; align-items: center; justify-content: center; padding: 2rem; color: #9ca3af; } .search-loading::after { content: ''; width: 20px; height: 20px; border: 2px solid #E5E7EB; border-top-color: #3B82F6; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Result item with icon */ .search-result-item-content { display: flex; align-items: center; gap: 0.625rem; } .search-result-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 0.875rem; } [data-theme="dark"] .search-result-icon { color: var(--text-muted); } .search-result-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .search-result-main { min-width: 0; display: flex; align-items: center; gap: 0.5rem; width: 100%; } .search-result-kind { flex-shrink: 0; font-size: 0.6875rem; line-height: 1; padding: 0.2rem 0.4rem; border-radius: 999px; background: #E5E7EB; color: #4B5563; text-transform: uppercase; letter-spacing: 0.04em; } [data-theme="dark"] .search-result-kind { background: #334155; color: #cbd5e1; } .search-result-sub { margin: 0.25rem 0 0; padding-left: 1.9rem; font-size: 0.78rem; color: #6B7280; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } [data-theme="dark"] .search-result-sub { color: #94a3b8; } .search-result-tags { margin-top: 0.35rem; padding-left: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.3rem; } .search-result-tag { display: inline-flex; align-items: center; border: 1px solid #dbeafe; background: #eff6ff; color: #1e40af; border-radius: 999px; font-size: 0.72rem; line-height: 1; padding: 0.2rem 0.45rem; } [data-theme="dark"] .search-result-tag { border-color: #334155; background: #0f172a; color: #93c5fd; } .search-results-header { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; } .search-tag-chip { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid #f59e0b; background: #fef3c7; color: #78350f; border-radius: 999px; font-size: 0.78rem; font-weight: 600; padding: 0.26rem 0.6rem; } .search-tag-close { color: inherit; display: inline-flex; align-items: center; justify-content: center; } [data-theme="dark"] .search-tag-chip { border-color: #fbbf24; background: rgba(251, 191, 36, 0.2); color: #fde68a; } /* Mobile styles */ @media (max-width: 768px) { .search-modal-header { flex-wrap: wrap; } .search-modal-actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .search-pill-btn { width: 100%; justify-content: center; padding: 0.55rem 0.45rem; } .search-footer-hint { flex-wrap: wrap; justify-content: center; row-gap: 0.35rem; column-gap: 0.5rem; } .search-result-sub, .search-result-tags { padding-left: 0; margin-left: 1.9rem; } .link-outer { padding: 3.1rem 0.9rem 0.95rem; border-radius: 0.7rem; } .link-title { padding-right: 2.2rem; font-size: 0.97rem; } .link-description { margin: 0.55rem 0; font-size: 0.86rem; } .link-footer, .view-grid .link-footer { margin-top: 0.7rem; padding-top: 0.65rem; align-items: stretch; } .view-grid .link-tag-list, .link-tag-list { justify-content: flex-start; } .link-actions, .view-grid .link-actions { justify-content: flex-start; margin-left: 0; width: 100%; } .link-actions a, .link-actions button { width: 34px; height: 34px; } .view-list .link-outer { display: block; padding: 2.9rem 0.9rem 0.95rem; margin-bottom: 0.75rem; } .view-list .link-thumbnail { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 42%; mask-image: linear-gradient(to bottom, black 35%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%); } .view-list .link-select-checkbox, .view-list .link-visibility-badge, .view-list .link-readlater-badge { top: 0.65rem; } .view-list .link-select-checkbox { left: 0.65rem; } .view-list .link-visibility-badge { right: 0.65rem; } .view-list .link-readlater-badge { right: 3rem; } .modal-overlay, .qrcode-modal-overlay { padding: 0.65rem; } .modal-content, .qrcode-modal-content { width: 100%; max-height: 90vh; border-radius: 0.65rem; } .card-header, .card-body, .card-footer { padding-left: 1rem; padding-right: 1rem; } .card-footer { flex-wrap: wrap; justify-content: stretch; } .card-footer .btn { width: 100%; } .list-group-item { padding: 0.85rem 0.9rem; align-items: flex-start; gap: 0.65rem; } .list-sortable-handle { padding: 0.2rem; } .key-value-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; } .key-value-data { text-align: left; } .bookmarklet-actions, .third-party-links { display: flex; flex-direction: column; gap: 0.65rem; } .bookmarklet-actions .btn, .third-party-links .btn { width: 100%; } .daily { padding-top: 1rem; } .daily-nav-unified { gap: 0.9rem; border-radius: 14px; padding: 0.85rem; } .daily-nav-center { width: 100%; } .daily-nav-btn, .daily-date-pill, .daily-calendar-btn { min-height: 38px; } .daily-calendar-panel { position: fixed; inset: 0; z-index: 600; padding: 0.9rem; background: rgba(15, 23, 42, 0.58); display: none; align-items: center; justify-content: center; } .daily-calendar-panel.is-open { display: flex; } .daily-calendar-shell { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 14px; } .daily-calendar-sidebar, .daily-calendar-main { width: 100%; padding: 1rem; } .daily-calendar-sidebar { border-right: 0; border-bottom: 1px solid var(--border-light); } .daily-calendar-day { width: 36px; height: 36px; font-size: 0.85rem; } .media-player-inner { grid-template-columns: auto minmax(0, 1fr) auto; } .media-player-title { font-size: 0.8rem; } .media-player-time { min-width: auto; font-size: 0.74rem; } table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .row { margin-left: 0; margin-right: 0; } .row > [class*="col-"] { width: 100%; max-width: 100%; float: none; padding-left: 0; padding-right: 0; } } @media (max-width: 640px) { .content-container { padding: 0.75rem; } .header-actions a[aria-label="Flux RSS"], .header-actions a[aria-label="Outils"] { display: none; } .toolbar-left, .toolbar-right, .view-toggle { width: 100%; } .view-toggle { justify-content: space-between; } .view-toggle-btn { flex: 1; width: auto; } .bulk-btn { flex: 1 1 100%; } .paging { padding: 0.6rem; } .daily-tab { font-size: 0.72rem; padding-inline: 0.8rem; } .picwall-size-controls { width: 100%; justify-content: center; } .picwall-size-slider { width: 100%; max-width: 180px; } } @media (max-width: 480px) { .sidebar { width: 92vw; } .header-main { padding: 0 0.65rem; } .header-action-btn, .mobile-menu-btn { width: 32px; height: 32px; border-radius: 0.4rem; } .link-tag { font-size: 0.7rem; } } .key-value-data { text-align: left; } .bookmarklet-actions, .third-party-links { display: flex; flex-direction: column; gap: 0.65rem; } .bookmarklet-actions .btn, .third-party-links .btn { width: 100%; } .daily { padding-top: 1rem; } .daily-nav-unified { gap: 0.9rem; border-radius: 14px; padding: 0.85rem; } .daily-nav-center { width: 100%; } .daily-nav-btn, .daily-date-pill, .daily-calendar-btn { min-height: 38px; } .daily-calendar-panel { position: fixed; inset: 0; z-index: 600; padding: 0.9rem; background: rgba(15, 23, 42, 0.58); display: none; align-items: center; justify-content: center; } .daily-calendar-panel.is-open { display: flex; } .daily-calendar-shell { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 14px; } .daily-calendar-sidebar, .daily-calendar-main { width: 100%; padding: 1rem; } .daily-calendar-sidebar { border-right: 0; border-bottom: 1px solid var(--border-light); } .daily-calendar-day { width: 36px; height: 36px; font-size: 0.85rem; } .media-player-inner { grid-template-columns: auto minmax(0, 1fr) auto; } .media-player-title { font-size: 0.8rem; } .media-player-time { min-width: auto; font-size: 0.74rem; } table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .pinned-section-head, .normal-section-head { display: none; grid-column: 1 / -1; align-items: center; padding: 0.55rem 0.9rem; margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; } .links-list.has-pinned .pinned-section-head { display: flex; color: #fff; background: var(--primary); border-radius: 0.7rem; margin-bottom: 0.45rem; } .links-list.has-normal .normal-section-head { display: flex; color: var(--text-muted); background: var(--bg-body); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 0.65rem; } .links-list:not(.has-pinned) .pinned-section-head, .links-list:not(.has-normal) .normal-section-head, .links-list:not(.has-normal) .compact-table-head { display: none !important; } .view-compact .compact-table-head { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr) minmax(120px, 0.75fr) auto; gap: 0.85rem; align-items: center; padding: 0.8rem 1rem; background: var(--bg-body); border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.79rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; } .view-compact .link-outer { margin: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--border-light); padding: 0; box-shadow: none; background: transparent; } .view-compact .link-outer:last-child { border-bottom: 0; } .view-compact .link-outer:hover { border-color: var(--border-light); box-shadow: none; background: var(--bg-card-hover); } .view-compact .link-actions { opacity: 0; transition: opacity 0.15s ease; } .view-compact .link-outer:hover .link-actions { opacity: 1; } .view-compact .link-thumbnail, .view-compact .link-description, .view-compact .link-readlater-badge { display: none !important; } .view-compact .link-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr) minmax(120px, 0.75fr) auto; gap: 0.85rem; align-items: center; padding: 0.85rem 1rem 0.85rem 2.8rem; padding-right: 3.2rem; } .view-compact .link-header { display: contents; margin: 0; } .view-compact .link-title { grid-column: 1; grid-row: 1; padding-right: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .view-compact .link-url { grid-column: 1; grid-row: 2; } .view-compact .link-meta { grid-column: 3; grid-row: 1 / span 2; margin: 0; gap: 0.5rem; align-self: center; } .view-compact .link-date { font-size: 0.95rem; } .view-compact .link-permalink { display: none; } .view-compact .link-footer { display: contents; margin: 0; padding: 0; border: 0; } .view-compact .link-tag-list { grid-column: 2; grid-row: 1 / span 2; gap: 0.35rem; align-self: center; overflow: visible; } .view-compact .link-tag, .view-compact .link-tag.is-tech-tag { display: inline-flex; } .link-tag.is-search-match { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; } .link-tag.is-search-match .tag-remove-btn { background: rgba(120, 53, 15, 0.14); } [data-theme="dark"] .link-tag.is-search-match { background: rgba(251, 191, 36, 0.18); border-color: #fbbf24; color: #fde68a; } .view-compact .link-actions { grid-column: 4; grid-row: 1 / span 2; margin-left: 0; justify-content: flex-start; align-self: center; flex-wrap: nowrap; } .view-compact .link-actions a, .view-compact .link-actions button, .view-compact .link-actions .readitlater-toggle-btn { width: 32px; height: 32px; } .view-compact .link-select-checkbox { top: 50%; right: 0.75rem; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 0.45rem; } .view-compact .link-visibility-badge { top: 50%; right: auto; left: 0.85rem; transform: translateY(-50%); width: 24px; height: 24px; } @media (max-width: 768px) { .view-compact .compact-table-head { display: none; } .links-list.view-compact { border-radius: 0.7rem; } .pinned-section-head, .normal-section-head { padding: 0.5rem 0.75rem; font-size: 0.7rem; } .view-compact .link-content { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; padding: 0.8rem 0.85rem 0.8rem 2.65rem; } .view-compact .link-title, .view-compact .link-url, .view-compact .link-meta, .view-compact .link-tag-list, .view-compact .link-actions { grid-column: 1; grid-row: auto; } .view-compact .link-meta { justify-content: flex-start; } .view-compact .link-actions { width: 100%; flex-wrap: wrap; row-gap: 0.3rem; opacity: 1; } .view-compact .link-select-checkbox, .view-compact .link-visibility-badge { top: 0.7rem; transform: none; } .view-compact .link-visibility-badge { left: 0.7rem; } .view-compact .link-select-checkbox { right: 0.7rem; } }