Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/CK editor forms: tweak the back button appearance

Adorian Doran826d6dcd541b
diff --git a/apps/client/src/stylesheets/theme-next/buttons.css b/apps/client/src/stylesheets/theme-next/buttons.css
index cd83a45461..57e2677850 100644
--- a/apps/client/src/stylesheets/theme-next/buttons.css
+++ b/apps/client/src/stylesheets/theme-next/buttons.css
@@ -132,7 +132,8 @@ button.tn-low-profile:hover {
:root .icon-action:not(.global-menu-button),
:root .tn-tool-button,
:root .btn-group .tn-tool-button:not(:last-child),
-:root .btn-group .tn-tool-button:last-child {
+:root .btn-group .tn-tool-button:last-child,
+:root button.ck.ck-button.ck-button-back {
width: var(--icon-button-size);
height: var(--icon-button-size);
border: unset !important;
@@ -180,7 +181,8 @@ button.tn-low-profile:hover {
:root .icon-action:not(.global-menu-button):hover,
:root .icon-action:not(.global-menu-button).show,
:root .tn-tool-button:hover,
-:root .tn-tool-button.show {
+:root .tn-tool-button.show,
+:root button.ck.ck-button.ck-button-back:hover {
background: var(--icon-button-hover-background);
color: var(--icon-button-hover-color);
}
@@ -191,7 +193,8 @@ button.tn-low-profile:hover {
}
:root .icon-action:not(.global-menu-button):focus-visible,
-:root .tn-tool-button:focus-visible {
+:root .tn-tool-button:focus-visible,
+:root button.ck.ck-button.ck-button-back:focus-visible {
outline: 2px solid var(--input-focus-outline-color);
}
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 17ba6df8f1..f375f6559c 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -756,6 +756,14 @@ button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel).ck
border-bottom: none;
}
+/* Back button, drawn as an icon button (buttons.css) */
+:root button.ck.ck-button.ck-button-back {
+ --ck-icon-size: calc(var(--icon-button-size) * var(--icon-button-icon-ratio));
+
+ box-shadow: none;
+ background: transparent;
+}
+
/*
* Multistate checkboxes
*/