Files
tolaria/src/components/NoteList.css

273 lines
4.4 KiB
CSS
Raw Normal View History

.note-list {
background: #16162a;
color: #e0e0e0;
display: flex;
flex-direction: column;
overflow-y: auto;
border-right: 1px solid #2a2a4a;
}
.note-list__header {
padding: 14px 16px;
border-bottom: 1px solid #2a2a4a;
display: flex;
align-items: center;
justify-content: space-between;
-webkit-app-region: drag;
app-region: drag;
}
.note-list__header button {
-webkit-app-region: no-drag;
app-region: no-drag;
}
.note-list__header h3 {
margin: 0;
font-size: 14px;
font-weight: 600;
}
.note-list__header-right {
display: flex;
align-items: center;
gap: 8px;
}
.note-list__count {
font-size: 11px;
color: #777;
background: #2a2a4a;
padding: 2px 8px;
border-radius: 10px;
}
.note-list__add-btn {
width: 24px;
height: 24px;
border: none;
border-radius: 6px;
background: #2a2a4a;
color: #888;
font-size: 16px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
transition: all 0.15s;
}
.note-list__add-btn:hover {
background: #4a9eff;
color: #fff;
}
/* Search */
.note-list__search {
padding: 8px 12px;
border-bottom: 1px solid #2a2a4a;
}
.note-list__search-input {
width: 100%;
padding: 7px 10px;
background: #1e1e3a;
border: 1px solid #2a2a4a;
border-radius: 6px;
color: #e0e0e0;
font-size: 13px;
outline: none;
box-sizing: border-box;
transition: border-color 0.15s;
}
.note-list__search-input::placeholder {
color: #555;
}
.note-list__search-input:focus {
border-color: #4a9eff;
}
/* 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: #777;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
}
.note-list__pill:hover {
background: #2a2a4a;
color: #ccc;
}
.note-list__pill-count {
font-size: 10px;
opacity: 0.6;
margin-left: 2px;
}
.note-list__pill--active {
background: #4a9eff22;
color: #4a9eff;
border-color: #4a9eff44;
}
.note-list__pill--active .note-list__pill-count {
opacity: 0.8;
}
.note-list__items {
flex: 1;
overflow-y: auto;
}
.note-list__empty {
padding: 32px 16px;
color: #555;
font-size: 13px;
text-align: center;
}
/* Note items */
.note-list__item {
padding: 10px 16px;
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: 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: 6px;
font-size: 11px;
color: #888;
margin-top: 5px;
}
/* Type badges with distinct colors */
.note-list__type {
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: #4caf50;
font-size: 10px;
}
/* Selected & pinned states */
.note-list__item--selected {
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 #4caf50;
padding-left: 13px;
}