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

Import SASS files straight to JS.

Piotrek Koszuliński 9 лет назад
Родитель
Сommit
4c78a3e8f9

+ 2 - 0
packages/ckeditor5-link/src/link.js

@@ -23,6 +23,8 @@ import LinkFormView from './ui/linkformview';
 import linkIcon from '../theme/icons/link.svg';
 import unlinkIcon from '../theme/icons/unlink.svg';
 
+import '../theme/theme.scss';
+
 /**
  * The link feature. It introduces the Link and Unlink buttons and the <kbd>Ctrl+K</kbd> keystroke.
  *

+ 2 - 0
packages/ckeditor5-link/theme/components/linkform.scss

@@ -1,6 +1,8 @@
 // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 
+@import '~ckeditor5-theme-lark/theme/helpers/_spacing';
+
 .ck-link {
 	&-form {
 		padding: ck-spacing( 'large' );

+ 1 - 1
packages/ckeditor5-link/theme/theme.scss

@@ -1,4 +1,4 @@
 // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 
-@import 'components/linkform';
+@import './components/linkform';