Przeglądaj źródła

Import SASS files straight to JS.

Piotrek Koszuliński 9 lat temu
rodzic
commit
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 linkIcon from '../theme/icons/link.svg';
 import unlinkIcon from '../theme/icons/unlink.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.
  * 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.
 // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 
 
+@import '~ckeditor5-theme-lark/theme/helpers/_spacing';
+
 .ck-link {
 .ck-link {
 	&-form {
 	&-form {
 		padding: ck-spacing( 'large' );
 		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.
 // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 // For licensing, see LICENSE.md or http://ckeditor.com/license
 
 
-@import 'components/linkform';
+@import './components/linkform';