Skip to content

Build your personal knowledge base with Trilium Notes

style/right pane: tweak

Adorian Doran1eb88939ddc8
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index 332d812074..3cdae700da 100644
--- a/apps/client/src/stylesheets/theme-next-dark.css
+++ b/apps/client/src/stylesheets/theme-next-dark.css
@@ -190,6 +190,10 @@
--center-pane-horiz-layout-background-color-bgfx: #1e1e1ec7;
--right-pane-heading-color: gray;
+ --right-pane-peek-background: #303030dc;
+
+ --peek-pane-backdrop-color: #00000032;
+ --peek-pane-shadow-color: #000000a8;
--root-background: var(--left-pane-background-color);
diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css
index 7e52a1ea08..35d13a9e7e 100644
--- a/apps/client/src/stylesheets/theme-next-light.css
+++ b/apps/client/src/stylesheets/theme-next-light.css
@@ -182,6 +182,10 @@
--center-pane-horiz-layout-background-color-bgfx: #ffffffd6;
--right-pane-heading-color: gray;
+ --right-pane-peek-background: #ffffffea;
+
+ --peek-pane-backdrop-color: #0000000a;
+ --peek-pane-shadow-color: #0000003a;
--root-background: var(--left-pane-background-color);
diff --git a/apps/client/src/widgets/sidebar/RightPanelContainer.css b/apps/client/src/widgets/sidebar/RightPanelContainer.css
index fe632199ed..474414eec1 100644
--- a/apps/client/src/widgets/sidebar/RightPanelContainer.css
+++ b/apps/client/src/widgets/sidebar/RightPanelContainer.css
@@ -1,10 +1,10 @@
:where(:root) {
- --peek-pane-backdrop-color: rgba(0, 0, 0, 0.05);
- --peek-pane-shadow-depth: 32px;
- --peek-pane-shadow-color: rgba(0, 0, 0, 0.167);
+ --peek-pane-backdrop-color: #0000000d;
+ --peek-pane-shadow-depth: 42px;
+ --peek-pane-shadow-color: #0000002b;
--right-pane-peek-border-radius: 8px 0 0 8px;
- --right-pane-peek-background: rgba(255, 255, 255, 0.904);
+ --right-pane-peek-background: #ffffffe7;
--right-pane-peek-backdrop-filter: blur(12px) saturate(1.5);
--right-pane-header-height: 30px;
}
@@ -49,7 +49,7 @@ body.experimental-feature-new-layout #right-pane-host.peek {
inset-inline-start: 0;
inset-inline-end: var(--right-pane-peek-button-gutter);
z-index: 15;
- animation: right-pane-peek-in 150ms ease;
+ animation: right-pane-peek-in 200ms ease-out;
background: var(--peek-pane-backdrop-color);
}
@@ -81,26 +81,24 @@ body.experimental-feature-new-layout #right-pane-host.peek > .right-pane-peek-sp
/* Pin/close controls, shown whenever the pane is open (pin only in peek mode). */
body.experimental-feature-new-layout #right-pane .right-pane-actions {
- --icon-button-size: 28px;
+ --icon-button-size: 24px;
position: absolute;
top: 0;
- left: 0;
right: 0;
+ width: 80px;
height: var(--right-pane-header-height);
z-index: 1;
display: flex;
gap: 2px;
align-items: center;
justify-content: flex-end;
- border-bottom: 1px solid var(--main-border-color);
}
body.experimental-feature-new-layout #right-pane {
position: relative;
display: flex;
flex-direction: column;
- padding-top: var(--right-pane-header-height);
&.right-pane-mode-peek {
background: var(--right-pane-peek-background);
@@ -147,6 +145,13 @@ body.experimental-feature-new-layout #right-pane {
}
}
+ .right-pane-actions + * {
+ /* TODO: Find a more elegant way to avoid the right-pane-actions overlapping the card-header. */
+ .card-header {
+ padding-inline-end: 80px;
+ }
+ }
+
.card.grow:not(.collapsed) {
flex: 1;
flex-shrink: 1;