theme.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_colors.scss';
  4. @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_shadow.scss';
  5. @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_states.scss';
  6. @import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_spacing.scss';
  7. @include ck-color-add( (
  8. 'widget-blurred': #ddd,
  9. 'widget-hover': yellow
  10. ) );
  11. $widget-outline-thickness: 2px;
  12. .ck-widget {
  13. margin: ck-spacing() 0;
  14. padding: 0;
  15. &.ck-widget_selected, &.ck-widget_selected:hover {
  16. outline: $widget-outline-thickness solid ck-color( 'focus' );
  17. }
  18. .ck-editor__editable.ck-blurred &.ck-widget_selected {
  19. outline: $widget-outline-thickness solid ck-color( 'widget-blurred' );
  20. }
  21. &:hover {
  22. outline: $widget-outline-thickness solid ck-color( 'widget-hover' );
  23. }
  24. .ck-editable {
  25. // The `:focus` style is applied before `.ck-editable_focused` class is rendered in the view.
  26. // These styles show a different border for a blink of an eye, so `:focus` need to have same styles applied.
  27. &.ck-editable_focused, &:focus {
  28. @include ck-focus-ring( 'outline' );
  29. @include ck-box-shadow( $ck-inner-shadow );
  30. background-color: ck-color( 'background' );
  31. }
  32. }
  33. }