Unify item tree & v-table style on Windows & Linux

This commit is contained in:
windingwind 2023-11-29 10:44:08 +08:00 committed by Dan Stillman
parent f5be1b26f4
commit 82a9aee21c
9 changed files with 29 additions and 112 deletions

View file

@ -14,11 +14,11 @@
.virtualized-table {
.row {
&.odd:not(.selected) {
background-color: -moz-oddtreerow;
background-color: var(--material-background);
}
&.even:not(.selected) {
background-color: -moz-eventreerow;
background-color: var(--material-sidepane);
}
&.selected {

View file

@ -130,8 +130,8 @@
}
&.selected:not(.highlighted) {
background-color: SelectedItem;
color: SelectedItemText;
background-color: var(--accent-blue);
color: #fff;
@include state(".virtualized-table:not(:focus)") {
color: var(--fill-primary);
@ -194,6 +194,27 @@
width: 2px;
background-color: #ccc;
}
.twisty {
width: 19px;
svg {
fill: #888;
width: 16px;
}
}
.selected:not(.highlighted) .twisty svg {
fill: #fff;
}
.spacer-twisty {
min-width: 19px;
}
.spacer-header {
min-width: 6px;
}
}
.virtualized-table-header {
@ -342,3 +363,7 @@
transform: rotate(90deg);
}
}
.virtualized-table, .drag-image-container {
}

View file

@ -1,5 +0,0 @@
#zotero-items-tree {
.cell.hasAttachment, .cell.numNotes {
padding: 0 8px;
}
}

View file

@ -1,42 +0,0 @@
.virtualized-table {
border: 1px solid ThreeDShadow;
}
.virtualized-table, .drag-image-container {
.twisty {
padding-inline-end: 3px;
svg {
width: 10px;
}
}
}
.virtualized-table-header {
background-image: linear-gradient(-moz-field, -moz-dialog 120%);
border-bottom: 1px solid ThreeDShadow;
border-inline-end: 1px solid ThreeDShadow;
.cell {
&:hover {
background: -moz-field;
}
&.dragging {
background: -moz-dialog;
}
.resizer {
background: linear-gradient(ThreeDShadow, ThreeDShadow) no-repeat center/1px 80%;
}
.sort-indicator {
transform: scale(1.25);
&.ascending {
transform: scale(1.25) rotate(180deg);
}
}
}
}
.twisty svg {
fill: WindowText;
}

View file

@ -1,22 +0,0 @@
.virtualized-table, .drag-image-container {
.twisty {
width: 19px;
svg {
fill: #888;
width: 16px;
}
}
.selected:not(.highlighted) .twisty svg {
fill: #fff;
}
.spacer-twisty {
min-width: 19px;
}
.spacer-header {
min-width: 6px;
}
}

View file

@ -1,34 +0,0 @@
#zotero-items-tree .virtualized-table {
.row {
padding-inline-end: 1px;
&.selected {
background-color: #e5f3ff;
color: inherit;
padding-inline-start: 2px;
padding-inline-end: 0;
}
&:hover {
background-color: #e5f3ff;
}
}
}
#zotero-items-tree .virtualized-table:not(:focus) {
.row {
&.selected {
color: inherit;
background: #f0f0f0;
border: none;
}
&.selected:hover {
background-color: #e5f3ff;
padding-inline-start: 2px;
padding-inline-end: 0;
}
}
}
.virtualized-table.multi-select:focus .row.focused {
padding-inline-start: 2px;
width: calc(100% - 5px);
}

View file

@ -11,7 +11,6 @@
@import "mac/search";
@import "mac/tabBar";
@import "mac/tag-selector";
@import "mac/virtualized-table";
// Elements

View file

@ -9,14 +9,12 @@
@import "linux/editable";
@import "linux/errorReport";
@import "linux/feedSettings";
@import "linux/item-tree";
@import "linux/menupopup";
@import "linux/search";
@import "linux/tabBar";
@import "linux/titleBar";
@import "linux/tagsBox";
@import "linux/tagSelector";
@import "linux/virtualized-table";
// Elements

View file

@ -10,8 +10,6 @@
@import "win/titleBar";
@import "win/menupopup";
@import "win/tag-selector";
@import "win/item-tree";
@import "win/virtualized-table";
// Elements