mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 23:04:24 +01:00
Tweak the classic formatting toolbar (#8123)
This commit is contained in:
commit
4f20ffe933
@ -170,6 +170,9 @@
|
||||
--protected-session-active-icon-color: #8edd8e;
|
||||
--sync-status-error-pulse-color: #f47871;
|
||||
|
||||
--classic-toolbar-vert-layout-background-color: var(--main-background-color);
|
||||
--classic-toolbar-horiz-layout-background-color: var(--main-background-color);
|
||||
|
||||
--center-pane-vert-layout-background-color-bgfx: #0c0c0c69;
|
||||
--center-pane-horiz-layout-background-color-bgfx: #1e1e1ec7;
|
||||
|
||||
|
||||
@ -162,6 +162,9 @@
|
||||
--protected-session-active-icon-color: #16b516;
|
||||
--sync-status-error-pulse-color: #ff5528;
|
||||
|
||||
--classic-toolbar-vert-layout-background-color: var(--main-background-color);
|
||||
--classic-toolbar-horiz-layout-background-color: var(--main-background-color);
|
||||
|
||||
--center-pane-vert-layout-background-color-bgfx: #ffffff75;
|
||||
--center-pane-horiz-layout-background-color-bgfx: #ffffffd6;
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
|
||||
--tab-bar-height: 50px;
|
||||
--tab-height: 36px;
|
||||
--tab-first-item-horiz-offset: 1px;
|
||||
--tab-first-item-horiz-offset: 0;
|
||||
--new-tab-button-size: 24px;
|
||||
|
||||
--center-pane-border-radius: 10px;
|
||||
|
||||
@ -1029,7 +1029,7 @@ body.layout-vertical.electron.platform-darwin .tab-row-container {
|
||||
}
|
||||
|
||||
body.layout-horizontal .tab-row-container {
|
||||
padding-top: calc((var(--tab-bar-height) - var(--tab-height)));
|
||||
padding-top: calc(var(--tab-bar-height) - var(--tab-height));
|
||||
}
|
||||
|
||||
/* Define extra drag areas for Electron windows */
|
||||
@ -1069,8 +1069,9 @@ body.desktop:not(.background-effects.platform-win32) #root-widget.horizontal-lay
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
.tab-row-widget .note-tab .note-tab-wrapper {
|
||||
:root div.tab-row-widget div.note-tab div.note-tab-wrapper {
|
||||
height: var(--tab-height) !important;
|
||||
border-radius: 8px;
|
||||
transition:
|
||||
background 75ms ease-in,
|
||||
box-shadow 75ms ease-in;
|
||||
@ -1221,13 +1222,35 @@ body.layout-vertical .tab-row-widget-is-sorting .note-tab.note-tab-is-dragging .
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* CLASSIC FORMATTING TOOLBAR
|
||||
*/
|
||||
|
||||
#rest-pane > .classic-toolbar-widget {
|
||||
margin-bottom: 2px;
|
||||
border-start-start-radius: var(--center-pane-border-radius);
|
||||
}
|
||||
|
||||
body.layout-vertical #rest-pane > .classic-toolbar-widget {
|
||||
background: var(--classic-toolbar-vert-layout-background-color);
|
||||
}
|
||||
|
||||
body.layout-horizontal #rest-pane > .classic-toolbar-widget {
|
||||
background: var(--classic-toolbar-horiz-layout-background-color);
|
||||
}
|
||||
|
||||
.classic-toolbar-widget:not(.hidden-ext) + #vertical-main-container {
|
||||
/* Remove the center panel border radius when the toolbar is visible */
|
||||
--center-pane-border-radius: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* CENTER PANE
|
||||
*/
|
||||
|
||||
/* The first visible note split */
|
||||
.vertical-layout #center-pane .note-split:not(.visible ~ .visible) {
|
||||
border-radius: var(--center-pane-border-radius) 0 0 0;
|
||||
border-start-start-radius: var(--center-pane-border-radius);
|
||||
}
|
||||
|
||||
#center-pane .note-split {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user