Files

470 lines
8.6 KiB
CSS
Raw Permalink Normal View History

:root {
--bg-primary: #0f0f14;
--bg-secondary: #1a1a24;
--bg-tertiary: #252533;
--bg-hover: #2f2f40;
--text-primary: #ffffff;
--text-secondary: #a0a0b0;
--text-muted: #6b6b80;
--accent: #8b5cf6;
--accent-hover: #7c3aed;
--border: #2f2f40;
--success: #10b981;
--danger: #ef4444;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
}
.braindump-container {
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
}
.sidebar {
width: 400px;
min-width: 300px;
max-width: 500px;
background: var(--bg-secondary);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
}
.sidebar-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border);
background: var(--bg-tertiary);
}
.app-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1rem;
background: linear-gradient(135deg, var(--accent), #a78bfa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.search-container {
width: 100%;
}
.search-input {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg-primary);
color: var(--text-primary);
font-size: 0.9rem;
outline: none;
transition: all 0.2s;
}
.search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.tags-section {
padding: 1rem 1.5rem 0.5rem;
border-bottom: 1px solid var(--border);
}
.tags-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 0.5rem;
font-weight: 600;
}
.tags-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tag {
padding: 0.4rem 0.75rem;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 20px;
font-size: 0.8rem;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
}
.tag:hover {
background: var(--bg-hover);
border-color: var(--accent);
}
.tag.active {
background: var(--accent);
color: white;
border-color: var(--accent);
}
.tag-filter {
padding: 0.75rem 1.5rem;
background: var(--accent);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.85rem;
}
.clear-filter {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
transition: all 0.2s;
}
.clear-filter:hover {
background: rgba(255, 255, 255, 0.3);
}
.notes-list {
flex: 1;
overflow-y: auto;
padding: 0.75rem;
}
.note-card {
padding: 1rem;
background: var(--bg-tertiary);
border: 1px solid transparent;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
margin-bottom: 0.5rem;
}
.note-card:hover {
background: var(--bg-hover);
transform: translateX(2px);
}
.note-card.selected {
border-color: var(--accent);
background: rgba(139, 92, 246, 0.1);
}
.note-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.5rem;
}
.note-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
flex: 1;
}
.pin-indicator {
font-size: 0.9rem;
margin-left: 0.5rem;
}
.note-preview {
font-size: 0.85rem;
color: var(--text-secondary);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 0.5rem;
line-height: 1.5;
}
.note-meta {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.note-date {
font-size: 0.75rem;
color: var(--text-muted);
}
.note-tags {
display: flex;
gap: 0.25rem;
}
.mini-tag {
padding: 0.2rem 0.5rem;
background: var(--bg-hover);
border-radius: 4px;
font-size: 0.7rem;
color: var(--text-muted);
}
.main-content {
flex: 1;
overflow-y: auto;
background: var(--bg-primary);
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
text-align: center;
padding: 2rem;
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
}
.empty-state h2 {
font-size: 1.75rem;
margin-bottom: 0.75rem;
}
.empty-state p {
color: var(--text-secondary);
margin-bottom: 2rem;
max-width: 400px;
}
.primary-button {
padding: 0.875rem 2rem;
background: linear-gradient(135deg, var(--accent), #a78bfa);
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
box-shadow: var(--shadow);
}
.primary-button:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.note-editor {
display: flex;
flex-direction: column;
height: 100%;
overflow-y: auto;
}
.editor-header {
padding: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
background: var(--bg-secondary);
}
.back-button {
padding: 0.5rem 1rem;
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
font-size: 0.9rem;
}
.back-button:hover {
background: var(--bg-hover);
border-color: var(--accent);
}
.editor-actions {
display: flex;
gap: 0.5rem;
}
.icon-button {
width: 36px;
height: 36px;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 6px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.icon-button:hover {
background: var(--bg-hover);
border-color: var(--accent);
}
.delete-button {
width: 36px;
height: 36px;
background: var(--danger);
border: none;
border-radius: 6px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.2s;
}
.delete-button:hover {
background: #dc2626;
}
.note-title-input {
padding: 1.5rem;
font-size: 2rem;
font-weight: 700;
background: transparent;
border: none;
color: var(--text-primary);
outline: none;
border-bottom: 1px solid var(--border);
}
.note-title-input::placeholder {
color: var(--text-muted);
}
.tags-input {
padding: 1rem 1.5rem;
font-size: 0.9rem;
background: transparent;
border: none;
color: var(--text-secondary);
outline: none;
border-bottom: 1px solid var(--border);
}
.tags-input::placeholder {
color: var(--text-muted);
}
.note-content-input {
flex: 1;
padding: 1.5rem;
font-size: 1.1rem;
background: transparent;
border: none;
color: var(--text-primary);
outline: none;
resize: none;
line-height: 1.8;
font-family: 'Consolas', 'Monaco', monospace;
}
.note-content-input::placeholder {
color: var(--text-muted);
}
.editor-footer {
padding: 1rem 1.5rem;
border-top: 1px solid var(--border);
background: var(--bg-secondary);
display: flex;
justify-content: space-between;
align-items: center;
}
.save-hint {
font-size: 0.85rem;
color: var(--text-muted);
}
.save-button {
padding: 0.5rem 1.5rem;
background: var(--accent);
color: white;
border: none;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.save-button:hover {
background: var(--accent-hover);
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
@media (max-width: 768px) {
.sidebar {
width: 100%;
max-width: none;
}
.main-content {
display: none;
}
.main-content:has(.note-editor) {
display: block;
}
.sidebar:has(.main-content .note-editor) {
display: none;
}
}