Skip to content

Commit 21b0ef9

Browse files
committed
style/note cards: improve style, remove no longer unused CSS variables
1 parent 2f3be96 commit 21b0ef9

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

apps/client/src/stylesheets/theme-next-dark.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@
230230
--code-block-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
231231

232232
--card-background-color: #ffffff12;
233-
--card-background-hover-color: #3c3c3c;
234-
--card-background-press-color: #464646;
233+
--card-background-hover-color: #ffffff20;
235234
--card-border-color: transparent;
236235
--card-box-shadow: none;
237236

apps/client/src/stylesheets/theme-next-light.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@
229229
--code-block-box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.2);
230230

231231
--card-background-color: #0000000d;
232-
--card-background-hover-color: #f9f9f9;
233-
--card-background-press-color: #efefef;
232+
--card-background-hover-color: #0000001c;
234233
--card-border-color: transparent;
235234
--card-shadow-color: rgba(0, 0, 0, 0.1);
236235
--card-box-shadow: none;

apps/client/src/stylesheets/theme-next/base.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,15 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
494494
margin: 5px 10px 5px 0;
495495
}
496496

497+
:root .note-list .note-book-card:hover {
498+
background-color: var(--card-background-hover-color);
499+
transition: background-color 200ms ease-out;
500+
}
501+
502+
:root .note-list .note-book-card:active {
503+
transform: scale(.98);
504+
}
505+
497506
.note-list.list-view .note-book-card {
498507
box-shadow: 0 0 3px var(--card-shadow-color);
499508
}
@@ -502,10 +511,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
502511
vertical-align: middle;
503512
}
504513

505-
.note-list-wrapper .note-book-card:active {
506-
background-color: var(--card-background-press-color);
507-
}
508-
509514
.note-list-wrapper .note-book-card a {
510515
color: inherit !important;
511516
}
@@ -587,7 +592,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
587592
}
588593

589594
.note-list.grid-view .note-book-card:hover {
590-
background: var(--card-background-color) !important;
591595
filter: contrast(105%);
592596
}
593597

apps/client/src/stylesheets/theme-next/pages.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
.sql-table-schemas-widget .sql-table-schemas button:hover,
102102
.sql-table-schemas-widget .sql-table-schemas button:active,
103103
.sql-table-schemas-widget .sql-table-schemas button:focus-visible {
104-
--background: var(--card-background-press-color);
104+
--background: var(--card-background-hover-color);
105105
--color: var(--main-text-color);
106106
}
107107

0 commit comments

Comments
 (0)