Add visual polish: snippets, dates, colored badges, improved states (M5 Task 4)
Note list items now show preview snippets and relative dates. Type badges have distinct colors (blue=Project, purple=Responsibility, etc.). Selected state uses a blue left border. Active pill uses blue highlight. Hover effects improved across sidebar and note list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
}
|
||||
|
||||
.note-list__header {
|
||||
padding: 16px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid #2a2a4a;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -28,8 +28,8 @@
|
||||
}
|
||||
|
||||
.note-list__count {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
font-size: 11px;
|
||||
color: #777;
|
||||
background: #2a2a4a;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
.note-list__search-input {
|
||||
width: 100%;
|
||||
padding: 6px 10px;
|
||||
padding: 7px 10px;
|
||||
background: #1e1e3a;
|
||||
border: 1px solid #2a2a4a;
|
||||
border-radius: 6px;
|
||||
@@ -73,14 +73,15 @@
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
|
||||
.note-list__search-input::placeholder {
|
||||
color: #666;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.note-list__search-input:focus {
|
||||
border-color: #4a4a7a;
|
||||
border-color: #4a9eff;
|
||||
}
|
||||
|
||||
/* Type filter pills */
|
||||
@@ -98,72 +99,157 @@
|
||||
border: 1px solid #2a2a4a;
|
||||
border-radius: 12px;
|
||||
background: transparent;
|
||||
color: #888;
|
||||
color: #777;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.note-list__pill:hover {
|
||||
background: #2a2a4a;
|
||||
color: #e0e0e0;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.note-list__pill--active {
|
||||
background: #3a3a5a;
|
||||
background: #4a9eff;
|
||||
color: #ffffff;
|
||||
border-color: #4a4a7a;
|
||||
border-color: #4a9eff;
|
||||
}
|
||||
|
||||
.note-list__items {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.note-list__empty {
|
||||
padding: 24px 16px;
|
||||
color: #666;
|
||||
padding: 32px 16px;
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Note items */
|
||||
.note-list__item {
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid #1e1e3a;
|
||||
border-bottom: 1px solid rgba(42, 42, 74, 0.5);
|
||||
cursor: pointer;
|
||||
transition: background 0.1s;
|
||||
}
|
||||
|
||||
.note-list__item:hover {
|
||||
background: #1e1e3a;
|
||||
}
|
||||
|
||||
.note-list__item-top {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.note-list__title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 4px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #e0e0e0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.note-list__date {
|
||||
font-size: 11px;
|
||||
color: #555;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.note-list__snippet {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin-top: 3px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.note-list__meta {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
font-size: 11px;
|
||||
color: #888;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* Type badges with distinct colors */
|
||||
.note-list__type {
|
||||
background: #2a2a4a;
|
||||
padding: 1px 6px;
|
||||
padding: 1px 7px;
|
||||
border-radius: 3px;
|
||||
font-weight: 500;
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.note-list__type--project {
|
||||
background: rgba(74, 158, 255, 0.15);
|
||||
color: #4a9eff;
|
||||
}
|
||||
|
||||
.note-list__type--responsibility {
|
||||
background: rgba(156, 114, 255, 0.15);
|
||||
color: #9c72ff;
|
||||
}
|
||||
|
||||
.note-list__type--procedure {
|
||||
background: rgba(255, 152, 0, 0.15);
|
||||
color: #ff9800;
|
||||
}
|
||||
|
||||
.note-list__type--experiment {
|
||||
background: rgba(0, 200, 150, 0.15);
|
||||
color: #00c896;
|
||||
}
|
||||
|
||||
.note-list__type--note {
|
||||
background: rgba(200, 200, 200, 0.1);
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.note-list__type--person {
|
||||
background: rgba(255, 100, 130, 0.15);
|
||||
color: #ff6482;
|
||||
}
|
||||
|
||||
.note-list__type--event {
|
||||
background: rgba(255, 200, 50, 0.15);
|
||||
color: #e6b800;
|
||||
}
|
||||
|
||||
.note-list__type--topic {
|
||||
background: rgba(100, 220, 200, 0.15);
|
||||
color: #64dcc8;
|
||||
}
|
||||
|
||||
.note-list__status {
|
||||
color: #6a6;
|
||||
color: #4caf50;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Selected & pinned states */
|
||||
.note-list__item--selected {
|
||||
background: #2a2a4a;
|
||||
background: #24244a;
|
||||
border-left: 3px solid #4a9eff;
|
||||
padding-left: 13px;
|
||||
}
|
||||
|
||||
.note-list__item--selected:hover {
|
||||
background: #28284e;
|
||||
}
|
||||
|
||||
.note-list__item--pinned {
|
||||
background: #1e1e3a;
|
||||
border-left: 3px solid #6a6;
|
||||
border-left: 3px solid #4caf50;
|
||||
padding-left: 13px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user