theme.scss 784 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. // Common styles applied to all widgets.
  4. .ck-widget {
  5. margin: 10px 0;
  6. padding: 0;
  7. &.ck-widget_selected, &.ck-widget_selected:hover {
  8. outline: 2px solid #ace;
  9. }
  10. .ck-editor__editable.ck-blurred &.ck-widget_selected {
  11. outline: 2px solid #ddd;
  12. }
  13. &:hover {
  14. outline: 2px solid yellow;
  15. }
  16. }
  17. // Image widget's styles.
  18. .image {
  19. text-align: center;
  20. clear: both;
  21. &.image-style-side {
  22. float: right;
  23. margin-left: 0.8em;
  24. max-width: 50%;
  25. }
  26. }
  27. .image > img {
  28. // Prevent unnecessary margins caused by line-height (see #44).
  29. display: block;
  30. // Center the image if its width is smaller than content's width.
  31. margin: 0 auto;
  32. }