From 3928ebfb5d5af8333f98413f2d09e00e9f5258e5 Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Wed, 30 Aug 2017 12:14:59 +0200 Subject: [PATCH] Refactored color management in the figcaption styles to allow easier customization. --- theme/imagecaption/theme.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/theme/imagecaption/theme.scss b/theme/imagecaption/theme.scss index 68ec7841..f2365a90 100644 --- a/theme/imagecaption/theme.scss +++ b/theme/imagecaption/theme.scss @@ -5,12 +5,17 @@ @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_spacing.scss'; @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_fonts.scss'; +@include ck-color-add( ( + 'image-caption-background': $ck-color-foreground, + 'image-caption-text': $ck-color-text +) ); + .ck-editor__editable { .image > figcaption { - background-color: ck-color( 'foreground' ); + color: ck-color( 'image-caption-text' ); + background-color: ck-color( 'image-caption-background' ); padding: ck-spacing(); font-size: ck-font-size( -1 ); - color: ck-color( 'text', 40 ); outline-offset: -1px; } }