- Install CM6 packages (state, view, lang-markdown, theme-one-dark, commands, language) - Replace Editor placeholder with real CodeMirror 6 instance - Add realistic markdown content to all mock entries in mock-tauri.ts - Wire up note selection: clicking a note in NoteList loads its content in the editor - Dark theme matching app colors, line numbers, active line highlighting, line wrapping - Update NoteList with selected state styling - Update Playwright screenshot test to capture editor with note selected Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
142 lines
2.1 KiB
CSS
142 lines
2.1 KiB
CSS
.note-list {
|
|
background: #16162a;
|
|
color: #e0e0e0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
border-right: 1px solid #2a2a4a;
|
|
}
|
|
|
|
.note-list__header {
|
|
padding: 16px;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.note-list__header h3 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.note-list__count {
|
|
font-size: 12px;
|
|
color: #888;
|
|
background: #2a2a4a;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Search */
|
|
.note-list__search {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
}
|
|
|
|
.note-list__search-input {
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
background: #1e1e3a;
|
|
border: 1px solid #2a2a4a;
|
|
border-radius: 6px;
|
|
color: #e0e0e0;
|
|
font-size: 13px;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.note-list__search-input::placeholder {
|
|
color: #666;
|
|
}
|
|
|
|
.note-list__search-input:focus {
|
|
border-color: #4a4a7a;
|
|
}
|
|
|
|
/* Type filter pills */
|
|
.note-list__pills {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.note-list__pill {
|
|
padding: 3px 10px;
|
|
font-size: 11px;
|
|
border: 1px solid #2a2a4a;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
color: #888;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.note-list__pill:hover {
|
|
background: #2a2a4a;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.note-list__pill--active {
|
|
background: #3a3a5a;
|
|
color: #ffffff;
|
|
border-color: #4a4a7a;
|
|
}
|
|
|
|
.note-list__items {
|
|
flex: 1;
|
|
}
|
|
|
|
.note-list__empty {
|
|
padding: 24px 16px;
|
|
color: #666;
|
|
font-size: 13px;
|
|
text-align: center;
|
|
}
|
|
|
|
.note-list__item {
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid #1e1e3a;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.note-list__item:hover {
|
|
background: #1e1e3a;
|
|
}
|
|
|
|
.note-list__title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.note-list__meta {
|
|
display: flex;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
|
|
.note-list__type {
|
|
background: #2a2a4a;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.note-list__status {
|
|
color: #6a6;
|
|
}
|
|
|
|
.note-list__item--selected {
|
|
background: #2a2a4a;
|
|
}
|
|
|
|
.note-list__item--pinned {
|
|
background: #1e1e3a;
|
|
border-left: 3px solid #6a6;
|
|
padding-left: 13px;
|
|
}
|