Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit ed6e1cf

Browse files
authored
Merge pull request #158 from ckeditor/t/ckeditor5-ui/144
Other: Migrated package styles to PostCSS. Moved visual styles to ckeditor5-theme-lark (see ckeditor/ckeditor5-ui#144).
2 parents ef2712c + b46b8d6 commit ed6e1cf

File tree

12 files changed

+50
-114
lines changed

12 files changed

+50
-114
lines changed

src/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Widget from '@ckeditor/ckeditor5-widget/src/widget';
1313
import ImageTextAlternative from './imagetextalternative';
1414
import { isImageWidgetSelected } from './image/utils';
1515

16-
import '../theme/theme.scss';
16+
import '../theme/image.css';
1717

1818
/**
1919
* The image plugin.

src/imagecaption.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
1111
import ImageCaptionEngine from './imagecaption/imagecaptionengine';
12-
import '../theme/imagecaption/theme.scss';
12+
13+
import '../theme/imagecaption.css';
1314

1415
/**
1516
* The image caption plugin.

src/imagestyle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
1111
import ImageStyleEngine from './imagestyle/imagestyleengine';
1212
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
1313

14+
import '../theme/imagestyle.css';
15+
1416
/**
1517
* The image style plugin.
1618
*

src/imagetextalternative.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import textAlternativeIcon from '@ckeditor/ckeditor5-core/theme/icons/low-vision
1717
import { repositionContextualBalloon, getBalloonPositionData } from './image/ui/utils';
1818
import { isImageWidgetSelected } from './image/utils';
1919

20-
import '../theme/imagetextalternative/theme.scss';
21-
2220
/**
2321
* The image text alternative plugin.
2422
*

src/imagetextalternative/ui/textalternativeformview.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler';
1919
import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker';
2020
import FocusCycler from '@ckeditor/ckeditor5-ui/src/focuscycler';
2121

22+
import '../../../theme/textalternativeform.css';
23+
2224
/**
2325
* The TextAlternativeFormView class.
2426
*

theme/image.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3+
* For licensing, see LICENSE.md.
4+
*/
5+
6+
.ck-editor__editable {
7+
& .image {
8+
clear: both;
9+
10+
& > img {
11+
/* Prevent unnecessary margins caused by line-height (see #44). */
12+
display: block;
13+
}
14+
}
15+
}

theme/imagecaption.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3+
* For licensing, see LICENSE.md.
4+
*/

theme/imagecaption/theme.scss

Lines changed: 0 additions & 21 deletions
This file was deleted.

theme/imagestyle.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3+
* For licensing, see LICENSE.md.
4+
*/

theme/imagetextalternative/theme.scss

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)