From 812020f1317b48a3bcfb380976e1ce5a5a66a41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Fri, 18 Nov 2022 10:35:58 +0100 Subject: [PATCH] IBX-3973: Nontranslatable and disabled fields are not greyed out in content editing UI (#57) --- src/bundle/Resources/public/scss/_general.scss | 14 ++++++++++++++ .../Resources/public/scss/variables/colors.scss | 2 ++ 2 files changed, 16 insertions(+) diff --git a/src/bundle/Resources/public/scss/_general.scss b/src/bundle/Resources/public/scss/_general.scss index bc66fd7e..e6ae9e9a 100644 --- a/src/bundle/Resources/public/scss/_general.scss +++ b/src/bundle/Resources/public/scss/_general.scss @@ -202,6 +202,20 @@ } } +.ibexa-field-edit--ezrichtext.ibexa-field-edit--nontranslatable .ibexa-data-source { + .ibexa-data-source__richtext { + color: $ibexa-color-dark-300; + background-color: $ibexa-color-light-300; + pointer-events: none; + } + + .ibexa-richtext-tools { + color: $ibexa-color-dark-400; + background-color: $ibexa-color-light-400; + pointer-events: none; + } +} + .ck { &.ck-editor__editable_inline { border: none; diff --git a/src/bundle/Resources/public/scss/variables/colors.scss b/src/bundle/Resources/public/scss/variables/colors.scss index 563d5961..4779326f 100644 --- a/src/bundle/Resources/public/scss/variables/colors.scss +++ b/src/bundle/Resources/public/scss/variables/colors.scss @@ -6,11 +6,13 @@ $ibexa-color-primary: #ae1164 !default; $ibexa-color-primary-200: #eecfe0 !default; $ibexa-color-light: #e0e0e8 !default; +$ibexa-color-light-400: #ececf1 !default; $ibexa-color-light-300: #f3f3f6 !default; $ibexa-color-light-100: #fbfbfc !default; $ibexa-color-dark: #131c26 !default; $ibexa-color-dark-400: #71767c !default; +$ibexa-color-dark-300: #a0a4a8 !default; $ibexa-color-dark-200: #cfd1d3 !default; $ibexa-color-danger: #db0032 !default;