mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 16:08:58 +01:00
style/quick edit dialog: refactor
This commit is contained in:
parent
535b960b76
commit
b4dd40e128
@ -425,7 +425,7 @@ div.tn-tool-dialog {
|
||||
|
||||
/* QUICK EDIT DIALOG */
|
||||
|
||||
.quick-edit-dialog-wrapper.tinted-dialog {
|
||||
.tinted-quick-edit-dialog {
|
||||
--modal-background-color: hsl(var(--custom-color-hue), 56%, 96%);
|
||||
--modal-border-color: hsl(var(--custom-color-hue), 33%, 41%);
|
||||
--promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 40%, 88%);
|
||||
|
||||
@ -128,7 +128,7 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
|
||||
const customHue = getComputedStyle(wrapperElement).getPropertyValue("--custom-color-hue");
|
||||
if (customHue) {
|
||||
/* Apply the tinted-dialog class only if the custom color CSS class specifies a hue */
|
||||
wrapperElement.classList.add("tinted-dialog");
|
||||
wrapperElement.classList.add("tinted-quick-edit-dialog");
|
||||
}
|
||||
|
||||
const activeEl = document.activeElement;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user