Skip to content

Commit 7fc9f08

Browse files
committed
Merge remote-tracking branch 'origin/main' into react/type_widgets
2 parents e28794d + 521152e commit 7fc9f08

File tree

18 files changed

+72
-35
lines changed

18 files changed

+72
-35
lines changed

apps/client/src/stylesheets/style.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,6 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
11041104

11051105
.card {
11061106
color: inherit !important;
1107-
background-color: inherit !important;
11081107
border-color: var(--main-border-color) !important;
11091108
}
11101109

@@ -1759,10 +1758,10 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
17591758
flex-direction: column;
17601759
margin-inline-start: 10px;
17611760
margin-inline-end: 5px;
1761+
background: transparent;
17621762
}
17631763

17641764
#right-pane .card-header {
1765-
background: inherit;
17661765
padding: 6px 0 3px 0;
17671766
width: 99%; /* to give minimal right margin */
17681767
background-color: var(--button-background-color);
@@ -2516,7 +2515,7 @@ footer.webview-footer button {
25162515
transform: rotate(180deg);
25172516
}
25182517

2519-
/* CK Edito */
2518+
/* CK Editor */
25202519

25212520
/* Insert text snippet: limit the width of the listed items to avoid overly long names */
25222521
:root body.desktop div.ck-template-form li.ck-list__item .ck-template-form__text-part > span {
@@ -2546,4 +2545,18 @@ iframe.print-iframe {
25462545

25472546
.excalidraw.theme--dark canvas {
25482547
--theme-filter: invert(100%) hue-rotate(180deg);
2548+
}
2549+
2550+
/* Scrolling container */
2551+
2552+
.scrolling-container:has(> :is(.note-detail.full-height, .note-list-widget.full-height)) {
2553+
display: flex;
2554+
flex-direction: column;
2555+
}
2556+
2557+
.scrolling-container > .note-detail.full-height,
2558+
.scrolling-container > .note-list-widget {
2559+
position: relative;
2560+
flex-grow: 1;
2561+
width: 100%;
25492562
}

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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@
211211
--new-tab-button-hover-color: black;
212212

213213
--right-pane-background-color: var(--main-background-color);
214-
--right-pane-background-color-bgfx: var(--center-pane-vert-layout-background-color-bgfx); /* Only for the vertical layout */
215-
--right-pane-item-hover-background: #ececec;
214+
--right-pane-background-color-bgfx: #ffffff9e; /* Only for the vertical layout */
215+
--right-pane-item-hover-background: #00000013;
216216
--right-pane-item-hover-color: inherit;
217217

218218
--scrollbar-thumb-color: #0000005c;
@@ -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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,21 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
487487
--note-list-vertical-padding: 15px;
488488
background-color: var(--card-background-color);
489489
border: 1px solid var(--card-border-color) !important;
490-
box-shadow: 2px 3px 4px var(--card-shadow-color);
491490
border-radius: 12px;
492491
user-select: none;
493492
padding: 0;
494493
margin: 5px 10px 5px 0;
495494
}
496495

496+
:root .note-list .note-book-card:hover {
497+
background-color: var(--card-background-hover-color);
498+
transition: background-color 200ms ease-out;
499+
}
500+
501+
:root .note-list .note-book-card:active {
502+
transform: scale(.98);
503+
}
504+
497505
.note-list.list-view .note-book-card {
498506
box-shadow: 0 0 3px var(--card-shadow-color);
499507
}
@@ -502,10 +510,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
502510
vertical-align: middle;
503511
}
504512

505-
.note-list-wrapper .note-book-card:active {
506-
background-color: var(--card-background-press-color);
507-
}
508-
509513
.note-list-wrapper .note-book-card a {
510514
color: inherit !important;
511515
}
@@ -592,7 +596,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
592596
}
593597

594598
.note-list.grid-view .note-book-card:hover {
595-
background: var(--card-background-color) !important;
596599
filter: contrast(105%);
597600
}
598601

apps/client/src/stylesheets/theme-next/notes/text.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,4 +674,17 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
674674

675675
.ck-content a.reference-link > span {
676676
text-decoration: underline;
677+
}
678+
679+
/*
680+
* Read-only text content
681+
*/
682+
683+
.note-detail-readonly-text:focus-visible {
684+
outline: 2px solid var(--input-focus-outline-color);
685+
border-radius: 4px;
686+
}
687+
688+
.note-list-widget {
689+
outline: 0 !important;
677690
}

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ body.background-effects.theme-supports-background-effects.platform-win32.layout-
6464

6565
body.background-effects.theme-supports-background-effects.platform-win32.layout-horizontal {
6666
--center-pane-background-color-bgfx: var(--center-pane-horiz-layout-background-color-bgfx);
67+
--gutter-color: var(--left-pane-background-color);
6768
}
6869

6970
body.background-effects.theme-supports-background-effects.platform-win32,

apps/client/src/widgets/NoteDetail.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ body.prefers-centered-content .note-detail {
1010
margin-inline: auto;
1111
}
1212

13-
.note-detail.full-height {
14-
height: 100%;
15-
}
16-
1713
.note-detail > * {
1814
contain: none;
1915
}

apps/client/src/widgets/ReadOnlyNoteInfoBar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body.zen div.read-only-note-info-bar-widget {
33
max-width: var(--max-content-width);
44
border-radius: 8px;
55
border: unset;
6-
margin: 0 auto;
6+
margin: 0 auto 10px auto;
77
}
88

99
.read-only-note-info-bar-widget-content {

apps/client/src/widgets/collections/NoteList.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
contain: none !important;
77
}
88

9-
body.prefers-centered-content .note-list-widget {
9+
body.prefers-centered-content .note-list-widget:not(.full-height) {
1010
/* Horizontally center the widget in its parent when the "Keep content centered" option is on */
1111
margin-inline: auto;
1212
}

0 commit comments

Comments
 (0)