/* ========================================= Special Views for Todos and Notes ========================================= */ /* --- Layout Wrapper (injected by JS) --- */ .special-view-wrapper { display: flex; flex-direction: row; width: 100%; min-height: calc(100vh - 60px); /* Adjust for header */ } /* --- TODO VIEW --- */ body.view-todo .content-container { max-width: 100%; padding: 0; margin: 0; } body.view-todo #linklist { display: none; /* Hide default list when wrapper is active */ } /* Sidebar */ .todo-sidebar { width: 280px; background-color: var(--bg-sidebar); border-right: 1px solid var(--border); padding: 1rem; display: flex; flex-direction: column; flex-shrink: 0; } [data-theme="dark"] .todo-sidebar { background-color: #1e293b; border-color: #334155; } .create-task-btn { width: 100%; padding: 0.75rem 1rem; background-color: var(--primary-color, #2563eb); color: white; border: none; border-radius: 2rem; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: transform 0.2s, background-color 0.2s; margin-bottom: 1.5rem; } .create-task-btn:hover { background-color: var(--primary-dark, #1d4ed8); transform: translateY(-1px); } .todo-list-item { padding: 0.75rem 1rem; margin-bottom: 0.25rem; border-radius: 0.5rem; cursor: pointer; color: var(--text-color, #334155); display: flex; align-items: center; gap: 0.75rem; transition: background-color 0.2s; } [data-theme="dark"] .todo-list-item { color: #cbd5e1; } .todo-list-item:hover { background-color: rgba(0, 0, 0, 0.05); } [data-theme="dark"] .todo-list-item:hover { background-color: rgba(255, 255, 255, 0.05); } .todo-list-item.active { background-color: rgba(37, 99, 235, 0.1); color: var(--primary-color, #2563eb); font-weight: 600; } /* Main Task Area */ .todo-main { flex: 1; padding: 2rem; overflow-y: auto; background-color: var(--bg-body); } [data-theme="dark"] .todo-main { background-color: #0f172a; } .todo-main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .todo-main-header h2 { font-size: 1.5rem; font-weight: 600; margin: 0; } /* Todo Item */ .todo-item { padding: 1rem; border-bottom: 1px solid var(--border-color, #e2e8f0); display: flex; align-items: center; /* keep aligned */ gap: 1rem; transition: background-color 0.2s; } [data-theme="dark"] .todo-item { border-bottom-color: #334155; } .todo-item:hover { background-color: rgba(0, 0, 0, 0.02); } .todo-checkbox { width: 20px; height: 20px; border: 2px solid var(--text-light, #94a3b8); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .todo-checkbox.checked { background-color: var(--primary-color, #2563eb); border-color: var(--primary-color, #2563eb); color: white; } .todo-content { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } .todo-title { font-size: 1rem; color: var(--text-color, #0f172a); font-weight: 400; } [data-theme="dark"] .todo-title { color: #f1f5f9; } .todo-item.completed .todo-title { text-decoration: line-through; color: var(--text-light, #94a3b8); } .todo-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-light, #64748b); } .todo-badge { padding: 0.125rem 0.5rem; border-radius: 1rem; background-color: rgba(0, 0, 0, 0.05); font-size: 0.7rem; } [data-theme="dark"] .todo-badge { background-color: rgba(255, 255, 255, 0.1); } .due-date { display: flex; align-items: center; gap: 0.25rem; } .due-date.overdue { color: var(--danger-color, #ef4444); } /* --- NOTES VIEW --- */ /* Wrapper */ body.view-notes .content-container { padding: 2rem; background-color: var(--bg-body); min-height: 100vh; } [data-theme="dark"] body.view-notes .content-container { background-color: var(--bg-body); } /* Tool Bar / Input Area */ .notes-top-bar { display: flex; justify-content: center; align-items: flex-start; margin-bottom: 2rem; position: relative; padding-right: 60px; /* Space for toggle */ } .note-input-container { width: 600px; max-width: 100%; background-color: var(--background-secondary, #ffffff); border-radius: 8px; box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15); transition: box-shadow 0.2s; overflow: hidden; } [data-theme="dark"] .note-input-container { background-color: var(--bg-sidebar); border: 1px solid var(--border); box-shadow: none; } .note-input-collapsed { display: flex; align-items: center; padding: 12px 16px; cursor: text; color: var(--text-light, #80868b); font-weight: 500; font-size: 1rem; } .note-input-placeholder { flex: 1; } .note-input-actions { display: flex; gap: 16px; } .note-input-actions button { background: none; border: none; cursor: pointer; color: var(--text-light, #80868b); padding: 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, color 0.2s; } .note-input-actions button:hover { background-color: rgba(136, 136, 136, 0.1); color: var(--text-color); } /* Tools (View Toggle) */ .notes-tools { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 0.5rem; } .icon-btn { background: none; border: none; cursor: pointer; color: var(--text-light, #5f6368); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; } .icon-btn:hover { background-color: rgba(136, 136, 136, 0.1); } .icon-btn.active { color: var(--primary-color, #202124); /* or specific active color */ background-color: rgba(136, 136, 136, 0.1); /* Keep highlight style */ } [data-theme="dark"] .icon-btn { color: #9aa0a6; } [data-theme="dark"] .icon-btn.active { color: #e8eaed; } /* --- LOGIC: Masonry vs List --- */ /* Masonry Grid */ .notes-masonry { column-count: 4; column-gap: 16px; width: 100%; } @media (max-width: 1200px) { .notes-masonry { column-count: 3; } } @media (max-width: 800px) { .notes-masonry { column-count: 2; } } @media (max-width: 500px) { .notes-masonry { column-count: 1; } } /* List View */ .notes-list-view { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 600px; max-width: 100%; margin: 0 auto; } .notes-list-view .note-card { width: 100%; } /* --- CARD STYLING --- */ .note-card { background-color: var(--background-secondary, #ffffff); border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 16px; /* spacing for masonry */ break-inside: avoid; /* Prevent split */ position: relative; transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s; overflow: hidden; /* for cover image */ } /* Dark Mode Card */ [data-theme="dark"] .note-card { background-color: #202124; border: 1px solid #5f6368; color: #e8eaed; } .note-card:hover { box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15); } [data-theme="dark"] .note-card:hover { background-color: #202124; /* Keep lightens on hover? usually same but controls appear */ } /* Cover Image */ .note-cover img { width: 100%; height: auto; display: block; object-fit: cover; } /* Inner Content */ .note-inner { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; } /* Title */ .note-title { font-size: 1rem; font-weight: 500; margin: 0; line-height: 1.5rem; color: var(--text-color, #202124); } [data-theme="dark"] .note-title { color: #e8eaed; } /* Body (Truncated) */ .note-body { font-size: 0.875rem; line-height: 1.25rem; color: var(--text-color, #202124); word-wrap: break-word; /* Limit to ~12 lines */ display: -webkit-box; -webkit-line-clamp: 12; line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; max-height: 300px; /* Fallback */ } [data-theme="dark"] .note-body { color: #e8eaed; } /* Tags */ .note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .note-tag { background: rgba(0, 0, 0, 0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; color: var(--text-light); } [data-theme="dark"] .note-tag { background: rgba(255, 255, 255, 0.1); } /* Hover Actions */ .note-hover-actions { display: flex; align-items: center; gap: 0px; /* evenly spaced */ margin-top: 8px; margin-left: -8px; /* Alignment fix */ opacity: 0; /* Hidden by default */ transition: opacity 0.2s; position: relative; /* For palette popup */ } /* Show actions on hover */ .note-card:hover .note-hover-actions { opacity: 1; } /* Always show actions on touch devices? (Can't detect easily here, but opacity 1 is safer for UX if no hover) */ @media (hover: none) { .note-hover-actions { opacity: 1; } } .note-hover-actions button, .note-hover-actions a { background: none; border: none; width: 34px; /* Touch target */ height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light, #5f6368); cursor: pointer; font-size: 1.1rem; transition: background-color 0.2s, color 0.2s; text-decoration: none; } [data-theme="dark"] .note-hover-actions button, [data-theme="dark"] .note-hover-actions a { color: #9aa0a6; } .note-hover-actions button:hover, .note-hover-actions a:hover { background-color: rgba(136, 136, 136, 0.2); color: var(--text-color); } [data-theme="dark"] .note-hover-actions button:hover, [data-theme="dark"] .note-hover-actions a:hover { color: #e8eaed; } .spacer { flex: 1; } /* Pushes action buttons to left/right if needed, currently all left? Keep aligns left mostly. */ .note-body img { max-width: 100%; height: auto; border-radius: 4px; margin-top: 4px; /* If we extracted cover, hide first img? */ } /* --- COLORS --- */ /* Reference: Keep Colors */ /* Default */ .note-card.note-color-default { background-color: var(--background-secondary, #ffffff); } [data-theme="dark"] .note-card.note-color-default { background-color: #202124; border-color: #5f6368; } /* Red */ .note-card.note-color-red { background-color: #f28b82; border-color: transparent; } [data-theme="dark"] .note-card.note-color-red { background-color: #5c2b29; border-color: #5c2b29; } /* Orange */ .note-card.note-color-orange { background-color: #fbbc04; border-color: transparent; } [data-theme="dark"] .note-card.note-color-orange { background-color: #614a19; border-color: #614a19; } /* Yellow */ .note-card.note-color-yellow { background-color: #fff475; border-color: transparent; } [data-theme="dark"] .note-card.note-color-yellow { background-color: #635d19; border-color: #635d19; } /* Green */ .note-card.note-color-green { background-color: #ccff90; border-color: transparent; } [data-theme="dark"] .note-card.note-color-green { background-color: #345920; border-color: #345920; } /* Teal */ .note-card.note-color-teal { background-color: #a7ffeb; border-color: transparent; } [data-theme="dark"] .note-card.note-color-teal { background-color: #16504b; border-color: #16504b; } /* Blue */ .note-card.note-color-blue { background-color: #cbf0f8; border-color: transparent; } [data-theme="dark"] .note-card.note-color-blue { background-color: #2d555e; border-color: #2d555e; } /* Dark Blue */ .note-card.note-color-darkblue { background-color: #aecbfa; border-color: transparent; } [data-theme="dark"] .note-card.note-color-darkblue { background-color: #1e3a5f; border-color: #1e3a5f; } /* Purple */ .note-card.note-color-purple { background-color: #d7aefb; border-color: transparent; } [data-theme="dark"] .note-card.note-color-purple { background-color: #42275e; border-color: #42275e; } /* Pink */ .note-card.note-color-pink { background-color: #fdcfe8; border-color: transparent; } [data-theme="dark"] .note-card.note-color-pink { background-color: #5b2245; border-color: #5b2245; } /* Brown */ .note-card.note-color-brown { background-color: #e6c9a8; border-color: transparent; } [data-theme="dark"] .note-card.note-color-brown { background-color: #442f19; border-color: #442f19; } /* Grey */ .note-card.note-color-grey { background-color: #e8eaed; border-color: transparent; } [data-theme="dark"] .note-card.note-color-grey { background-color: #3c3f43; border-color: #3c3f43; } /* --- PALETTE POPUP --- */ .palette-popup { position: absolute; bottom: 100%; left: 0; width: 320px; background: white; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); border-radius: 4px; padding: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 100; display: none; /* JS toggles this */ } [data-theme="dark"] .palette-popup { background: #202124; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); border: 1px solid #5f6368; } .palette-popup.open { display: flex; } .palette-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.1); cursor: pointer; position: relative; } .palette-btn:hover { border-color: #999; } [data-theme="dark"] .palette-btn { border-color: rgba(255, 255, 255, 0.2); } /* --- MODAL FOR NOTE VIEW --- */ .note-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.2s; } .note-modal-overlay.open { opacity: 1; pointer-events: auto; } .note-modal { background: var(--background-secondary, #fff); width: 600px; max-width: 90%; max-height: 90vh; border-radius: 8px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); padding: 24px; position: relative; } [data-theme="dark"] .note-modal { background: var(--bg-card); border: 1px solid var(--border); } .note-modal .note-title { font-size: 1.3rem; line-height: 1.5; margin-bottom: 16px; } .note-modal .note-body { font-size: 1rem; line-height: 1.5; -webkit-line-clamp: unset; line-clamp: unset; max-height: none; overflow: visible; } /* Modal actions at bottom? */ .note-modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; }