mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 08:29:00 +01:00
style/zen mode: disable translucency for the title bar when backdrop effects are turned off
This commit is contained in:
parent
55f7a26634
commit
3ae7bd59ec
@ -2117,7 +2117,7 @@ body.zen .note-split.type-text {
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
||||
body.zen .note-split.type-text .title-row {
|
||||
body.zen:not(.backdrop-effects-disabled) .note-split.type-text .title-row {
|
||||
--start-color: var(--main-background-color);
|
||||
|
||||
position: absolute;
|
||||
@ -2133,13 +2133,17 @@ body.zen .note-split.type-text .title-row {
|
||||
}
|
||||
|
||||
body.zen .note-split.type-text .scrolling-container {
|
||||
--padding-top: 50px; /* Should be enough to cover the title row */
|
||||
--padding-bottom: 130px; /* Should be enough to avoid caret being hidden by the formatting toolbar */
|
||||
|
||||
/* (Usually) keeps the caret above the fixed toolbar */
|
||||
scroll-padding-bottom: var(--padding-bottom);
|
||||
}
|
||||
|
||||
body.zen:not(.backdrop-effects-disabled) .note-split.type-text .scrolling-container {
|
||||
--padding-top: 50px; /* Should be enough to cover the title row */
|
||||
|
||||
padding-top: var(--padding-top);
|
||||
scroll-padding-top: var(--padding-top);
|
||||
scroll-padding-bottom: var(--padding-bottom);
|
||||
}
|
||||
|
||||
/* Fixed formatting toolbar */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user