diff --git a/src/widget.js b/src/widget.js index 311b83ac..1001baa2 100644 --- a/src/widget.js +++ b/src/widget.js @@ -17,7 +17,7 @@ import RootEditableElement from '@ckeditor/ckeditor5-engine/src/view/rooteditabl import { isWidget, WIDGET_SELECTED_CLASS_NAME, getLabel } from './utils'; import { keyCodes, getCode, parseKeystroke } from '@ckeditor/ckeditor5-utils/src/keyboard'; -import '../theme/theme.scss'; +import '../theme/widget.css'; const selectAllKeystrokeCode = parseKeystroke( 'Ctrl+A' ); diff --git a/theme/theme.scss b/theme/theme.scss deleted file mode 100644 index 9c7f3616..00000000 --- a/theme/theme.scss +++ /dev/null @@ -1,45 +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'; -@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/shadow'; -@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/states'; -@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/spacing'; - -$widget-outline-thickness: 3px; - -@include ck-color-add( ( - 'widget-border-blurred': #ddd, - 'widget-border-hover': #FFD25C, - 'widget-editable-focused-background': $ck-color-background, -) ); - -.ck-widget { - margin: ck-spacing() 0; - padding: 0; - - &.ck-widget_selected, &.ck-widget_selected:hover { - outline: $widget-outline-thickness solid ck-color( 'border-focus' ); - } - - .ck-editor__editable.ck-blurred &.ck-widget_selected { - outline: $widget-outline-thickness solid ck-color( 'widget-border-blurred' ); - } - - &:hover { - outline: $widget-outline-thickness solid ck-color( 'widget-border-hover' ); - } - - .ck-editable { - border: 1px solid transparent; - - // The `:focus` style is applied before `.ck-editable_focused` class is rendered in the view. - // These styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. - &.ck-editable_focused, &:focus { - @include ck-focus-ring(); - @include ck-box-shadow( $ck-inner-shadow ); - - background-color: ck-color( 'widget-editable-focused-background' ); - } - } -} diff --git a/theme/widget.css b/theme/widget.css new file mode 100644 index 00000000..3ebbb9b1 --- /dev/null +++ b/theme/widget.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. + */