From c40398df5d9e9ff03385b9d15e77f9319aab8f7a Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 3 Sep 2025 04:29:02 +0300 Subject: [PATCH] style/text editor/forms: tweak text boxes --- apps/client/src/stylesheets/theme-next/forms.css | 12 ++++++------ .../client/src/stylesheets/theme-next/notes/text.css | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next/forms.css b/apps/client/src/stylesheets/theme-next/forms.css index 8fda98233..bb2eec953 100644 --- a/apps/client/src/stylesheets/theme-next/forms.css +++ b/apps/client/src/stylesheets/theme-next/forms.css @@ -154,8 +154,8 @@ input[type="password"], input[type="date"], input[type="time"], input[type="datetime-local"], -input.ck.ck-input-text, -input.ck.ck-input-number, +:root input.ck.ck-input-text, +:root input.ck.ck-input-number, textarea.form-control, textarea, .tn-input-field { @@ -174,8 +174,8 @@ input[type="password"]:hover, input[type="date"]:hover, input[type="time"]:hover, input[type="datetime-local"]:hover, -input.ck.ck-input-text:hover, -input.ck.ck-input-number:hover, +:root input.ck.ck-input-text:not([readonly="true"]):hover, +:root input.ck.ck-input-number:not([readonly="true"]):hover, textarea.form-control:hover, textarea:hover, .tn-input-field:hover { @@ -190,8 +190,8 @@ input[type="password"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="datetime-local"]:focus, -input.ck.ck-input-text:focus, -input.ck.ck-input-number:focus, +:root input.ck.ck-input-text:focus, +:root input.ck.ck-input-number:focus, textarea.form-control:focus, textarea:focus, .tn-input-field:focus, diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css index 64cf8fdd8..6499fa0b4 100644 --- a/apps/client/src/stylesheets/theme-next/notes/text.css +++ b/apps/client/src/stylesheets/theme-next/notes/text.css @@ -498,6 +498,11 @@ button.ck.ck-button:is(.ck-button-action, .ck-button-save, .ck-button-cancel).ck font-weight: 600; } +:root input.ck.ck-input-text[readonly="true"] { + cursor: not-allowed; + background: var(--input-background-color); +} + /* Forms */ :root .ck.ck-form__row.ck-form__row_with-submit > :not(:first-child) {