Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/CK editor forms: tweak the appearance of some buttons

Adorian Dorancaf48bca804f
diff --git a/apps/client/src/stylesheets/theme-next/buttons.css b/apps/client/src/stylesheets/theme-next/buttons.css
index c8b00c8c39..7f157d4e80 100644
--- a/apps/client/src/stylesheets/theme-next/buttons.css
+++ b/apps/client/src/stylesheets/theme-next/buttons.css
@@ -8,6 +8,7 @@ button.btn.btn-sm:not(.select-button),
button.btn.btn-success,
button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel, .ck-button-replaceall, .ck-button-replace).ck-button_with-text,
.ck-ai-assistant-form__actions > button.ck.ck-button.ck-button_with-text,
+.ck-table-form__action-row > button.ck.ck-button.ck-button_with-text,
button.ck.ck-button.ck-ai-assistant-form__icon-action {
display: inline-flex;
align-items: center;
@@ -31,6 +32,7 @@ button.btn.btn-sm:not(.select-button):hover,
button.btn.btn-success:hover,
button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel, .ck-button-replaceall, .ck-button-replace).ck-button_with-text:not(.ck-disabled):hover,
.ck-ai-assistant-form__actions > button.ck.ck-button.ck-button_with-text:not(.ck-disabled):hover,
+.ck-table-form__action-row > button.ck.ck-button.ck-button_with-text:not(.ck-disabled):hover,
button.ck.ck-button.ck-ai-assistant-form__icon-action:not(.ck-disabled):hover {
background: var(--cmd-button-hover-background-color);
color: var(--cmd-button-hover-text-color);
@@ -42,6 +44,7 @@ button.btn.btn-sm:not(.select-button):active,
button.btn.btn-success:active,
button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel, .ck-button-replaceall, .ck-button-replace).ck-button_with-text:not(.ck-disabled):active,
.ck-ai-assistant-form__actions > button.ck.ck-button.ck-button_with-text:not(.ck-disabled):active,
+.ck-table-form__action-row > button.ck.ck-button.ck-button_with-text:not(.ck-disabled):active,
button.ck.ck-button.ck-ai-assistant-form__icon-action:not(.ck-disabled):active {
opacity: 0.85;
box-shadow: unset;
@@ -56,6 +59,7 @@ button.btn.btn-sm:not(.select-button):disabled,
button.btn.btn-success:disabled,
button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel, .ck-button-replaceall, .ck-button-replace).ck-button_with-text.ck-disabled,
.ck-ai-assistant-form__actions > button.ck.ck-button.ck-button_with-text.ck-disabled,
+.ck-table-form__action-row > button.ck.ck-button.ck-button_with-text.ck-disabled,
button.ck.ck-button.ck-ai-assistant-form__icon-action.ck-disabled {
opacity: var(--cmd-button-disabled-opacity);
}
@@ -66,6 +70,7 @@ button.btn.btn-sm:not(.select-button):focus-visible,
button.btn.btn-success:focus-visible,
button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel, .ck-button-replaceall, .ck-button-replace).ck-button_with-text:not(.ck-disabled):focus-visible,
.ck-ai-assistant-form__actions > button.ck.ck-button.ck-button_with-text:not(.ck-disabled):focus-visible,
+.ck-table-form__action-row > button.ck.ck-button.ck-button_with-text:not(.ck-disabled):focus-visible,
button.ck.ck-button.ck-ai-assistant-form__icon-action:not(.ck-disabled):focus-visible,
.tn-focusable-button: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 d1e8d791ce..a6ab7199de 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -699,7 +699,8 @@ div.ck-template-form .ck-search__info span:nth-child(2) {
* Buttons
*/
-button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel).ck-button_with-text {
+button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel).ck-button_with-text,
+.ck-table-form__action-row > button.ck.ck-button.ck-button_with-text {
--ck-color-text: var(--cmd-button-text-color);
min-width: 60px;