Move some CSS vars to ckeditor, align variable overload in portal and backoffice

This commit is contained in:
Stephen Abello
2026-04-23 14:15:39 +02:00
parent 008eb7ae5b
commit 51531a3ced
6 changed files with 17 additions and 17 deletions

View File

@@ -38,13 +38,9 @@ $ibo-vendors-ckeditor--ck-mentions--item--padding-y: $ibo-spacing-200 !default;
--ck-text-small-font-size: #{$ibo-vendors-ckeditor--ck-text-small-font-size}; --ck-text-small-font-size: #{$ibo-vendors-ckeditor--ck-text-small-font-size};
--ck-text-big-font-size: #{$ibo-vendors-ckeditor--ck-text-big-font-size}; --ck-text-big-font-size: #{$ibo-vendors-ckeditor--ck-text-big-font-size};
--ck-text-huge-font-size: #{$ibo-vendors-ckeditor--ck-text-huge-font-size}; --ck-text-huge-font-size: #{$ibo-vendors-ckeditor--ck-text-huge-font-size};
--ck-content-font-size: #{$ibo-font-size-100} !important; /* Important to overload the CKE native rule */
--ck-content-font-family: #{$ibo-font-family-base}, #{$ibo-font-family-fallbacks}; --ck-content-font-family: #{$ibo-font-family-base}, #{$ibo-font-family-fallbacks};
--ck-color-image-caption-text: #{$ibo-vendors-ckeditor--ck-color-image-caption-text}; --ck-color-image-caption-text: #{$ibo-vendors-ckeditor--ck-color-image-caption-text};
--ck-icon-size: 1.3rem;
--ck-ui-component-min-height: 1rem;
} }
/* Base style */ /* Base style */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -18,7 +18,6 @@
@import 'common/main.scss'; @import 'common/main.scss';
@import 'variables.scss'; @import 'variables.scss';
@import "utils/all"; @import "utils/all";
@import '../node_modules/ckeditor5-itop-build/build/styles/compiled-theme';
/*! /*!
* Combodo portal template v1.0.0 * Combodo portal template v1.0.0
@@ -541,11 +540,6 @@ table .group-actions a.glyphicon-menu-hamburger{
/*********/ /*********/
/* Forms */ /* Forms */
/*********/ /*********/
/* - Ensure HTML contents are displayed like in CKEditor */
.ipb-is-html-content {
@extend .ck-content;
}
/* Note: We don't put the .form_field selector as it must work for read-only */ /* Note: We don't put the .form_field selector as it must work for read-only */
.form-control-static img{ .form-control-static img{

View File

@@ -1 +1,2 @@
@import "datatables"; @import "datatables";
@import "ckeditor";

View File

@@ -0,0 +1,9 @@
@import '../node_modules/ckeditor5-itop-build/build/styles/compiled-theme';
:root {
--ck-content-font-family: #{$common-font-family-base}, #{$common-font-family-fallbacks};
}
.ipb-is-html-content {
@extend .ck-content;
}