diff --git a/web/themes/contrib/civictheme/assets/sass/ckeditor/_ckeditor.scss b/web/themes/contrib/civictheme/assets/sass/ckeditor/_ckeditor.scss new file mode 100644 index 0000000000..7a40972da6 --- /dev/null +++ b/web/themes/contrib/civictheme/assets/sass/ckeditor/_ckeditor.scss @@ -0,0 +1,15 @@ +// +// Drupal CK editor. +// + +.ct-figure { + &.align-left { + margin: ct-spacing(1) ct-spacing(6) ct-spacing(2) 0; + } + &.align-center { + text-align: center; + } + &.align-right { + margin: ct-spacing(1) 0 ct-spacing(2) ct-spacing(6); + } +} diff --git a/web/themes/contrib/civictheme/assets/sass/theme.scss b/web/themes/contrib/civictheme/assets/sass/theme.scss index b15ff323c1..56dfd08a41 100644 --- a/web/themes/contrib/civictheme/assets/sass/theme.scss +++ b/web/themes/contrib/civictheme/assets/sass/theme.scss @@ -7,3 +7,4 @@ // These overrides will not be visible in the Storybook. @import 'page/page'; @import 'header/header'; +@import 'ckeditor/ckeditor'; diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/ckeditor/_ckeditor.scss b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/ckeditor/_ckeditor.scss new file mode 100644 index 0000000000..7a40972da6 --- /dev/null +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/ckeditor/_ckeditor.scss @@ -0,0 +1,15 @@ +// +// Drupal CK editor. +// + +.ct-figure { + &.align-left { + margin: ct-spacing(1) ct-spacing(6) ct-spacing(2) 0; + } + &.align-center { + text-align: center; + } + &.align-right { + margin: ct-spacing(1) 0 ct-spacing(2) ct-spacing(6); + } +} diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss index 66ed0ed3c2..e7afe5d66c 100644 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss @@ -8,3 +8,4 @@ // @todo Refactor build to use direct import from the CivicTheme theme. @import 'page/page'; @import 'block/local-tasks'; +@import 'ckeditor/ckeditor';