8
0
Просмотр исходного кода

Use data classes to style the content. Removed invalid comment.

Piotrek Koszuliński 8 лет назад
Родитель
Сommit
136a4abd32

+ 5 - 7
packages/ckeditor5-image/theme/imagecaption/theme.scss

@@ -6,12 +6,10 @@
 @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_fonts.scss';
 
 .ck-editor__editable {
-	.image {
-		.ck-editable {
-			background-color: ck-color( 'foreground' );
-			padding: ck-spacing();
-			font-size: ck-font-size( -1 );
-			color: ck-color( 'text', 40 );
-		}
+	.image > figcaption {
+		background-color: ck-color( 'foreground' );
+		padding: ck-spacing();
+		font-size: ck-font-size( -1 );
+		color: ck-color( 'text', 40 );
 	}
 }

+ 0 - 1
packages/ckeditor5-image/theme/theme.scss

@@ -1,7 +1,6 @@
 // Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 
-// Image widget's styles.
 .ck-editor__editable {
 	.image {
 		text-align: center;