Răsfoiți Sursa

Merge pull request #60 from ckeditor/t/ckeditor5-ui/144

Other: Migrated package styles to PostCSS. Moved the visual styles to ckeditor5-theme-lark (see ckeditor/ckeditor5-ui#144).
Aleksander Nowodzinski 8 ani în urmă
părinte
comite
98faf9af4b

+ 1 - 1
packages/ckeditor5-basic-styles/src/code.js

@@ -12,7 +12,7 @@ import CodeEngine from './codeengine';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
 import codeIcon from '../theme/icons/code.svg';
 
-import '../theme/code.scss';
+import '../theme/code.css';
 
 /**
  * The code feature. It introduces the Code button.

+ 10 - 0
packages/ckeditor5-basic-styles/theme/code.css

@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+/*
+ * Note: This file should contain the wireframe styles only. But since there are no such styles,
+ * it acts as a message to the builder telling that it should look for the corresponding styles
+ * **in the theme** when compiling the editor.
+ */

+ 0 - 14
packages/ckeditor5-basic-styles/theme/code.scss

@@ -1,14 +0,0 @@
-// Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
-// For licensing, see LICENSE.md or http://ckeditor.com/license
-
-@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_colors.scss';
-@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_rounded.scss';
-@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_spacing.scss';
-
-@include ck-color-add( ( 'code': rgba( 200, 200, 200, 0.3 ) ) );
-
-code {
-	background-color: ck-color( 'code' );
-	padding: ck-spacing( 'tiny' );
-	border-radius: $ck-border-radius;
-}