Explorar el Código

Moved component styles to own directories to avoid such migration in the future.

Aleksander Nowodzinski hace 8 años
padre
commit
0bdee50fde

+ 1 - 1
packages/ckeditor5-ui/src/button/buttonview.js

@@ -13,7 +13,7 @@ import TooltipView from '../tooltip/tooltipview';
 
 import { getEnvKeystrokeText } from '@ckeditor/ckeditor5-utils/src/keyboard';
 
-import '../../theme/components/button.css';
+import '../../theme/components/button/button.css';
 
 /**
  * The button view class.

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/dropdownview.js

@@ -11,7 +11,7 @@ import View from '../view';
 import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker';
 import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler';
 
-import '../../theme/components/dropdown.css';
+import '../../theme/components/dropdown/dropdown.css';
 
 /**
  * The dropdown view class.

+ 1 - 1
packages/ckeditor5-ui/src/editorui/editoruiview.js

@@ -12,7 +12,7 @@
 import View from '../view';
 import Template from '../template';
 
-import '../../theme/components/editorui.css';
+import '../../theme/components/editorui/editorui.css';
 
 /**
  * The editor UI view class. Base class for the editor main views.

+ 1 - 1
packages/ckeditor5-ui/src/icon/iconview.js

@@ -11,7 +11,7 @@
 
 import View from '../view';
 
-import '../../theme/components/icon.css';
+import '../../theme/components/icon/icon.css';
 
 /**
  * The icon view class.

+ 1 - 1
packages/ckeditor5-ui/src/inputtext/inputtextview.js

@@ -9,7 +9,7 @@
 
 import View from '../view';
 
-import '../../theme/components/inputtext.css';
+import '../../theme/components/inputtext/inputtext.css';
 
 /**
  * The text input view class.

+ 1 - 1
packages/ckeditor5-ui/src/label/labelview.js

@@ -9,7 +9,7 @@
 
 import View from '../view';
 
-import '../../theme/components/label.css';
+import '../../theme/components/label/label.css';
 
 /**
  * The label view class.

+ 1 - 1
packages/ckeditor5-ui/src/list/listview.js

@@ -12,7 +12,7 @@ import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker';
 import FocusCycler from '../focuscycler';
 import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler';
 
-import '../../theme/components/list.css';
+import '../../theme/components/list/list.css';
 
 /**
  * The list view class.

+ 2 - 2
packages/ckeditor5-ui/theme/components/button.css

@@ -3,8 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
-@import "../mixins/_unselectable.css";
-@import "./tooltip/mixins/_tooltip.css";
+@import "../../mixins/_unselectable.css";
+@import "../tooltip/mixins/_tooltip.css";
 
 .ck-button,
 a.ck-button {

packages/ckeditor5-ui/theme/components/dropdown.css → packages/ckeditor5-ui/theme/components/dropdown/dropdown.css


+ 0 - 4
packages/ckeditor5-ui/theme/components/editorui.css

@@ -1,4 +0,0 @@
-/*
- * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */

+ 10 - 0
packages/ckeditor5-ui/theme/components/editorui/editorui.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.
+ */

packages/ckeditor5-ui/theme/components/icon.css → packages/ckeditor5-ui/theme/components/icon/icon.css


+ 0 - 4
packages/ckeditor5-ui/theme/components/inputtext.css

@@ -1,4 +0,0 @@
-/*
- * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */

+ 10 - 0
packages/ckeditor5-ui/theme/components/inputtext/inputtext.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.
+ */

packages/ckeditor5-ui/theme/components/label.css → packages/ckeditor5-ui/theme/components/label/label.css


+ 1 - 1
packages/ckeditor5-ui/theme/components/list.css

@@ -3,7 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
-@import "../mixins/_unselectable.css";
+@import "../../mixins/_unselectable.css";
 
 .ck-list {
 	@mixin ck-unselectable;