theme.scss 622 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. // Image widget's styles.
  4. .ck-editor__editable {
  5. .image {
  6. text-align: center;
  7. clear: both;
  8. &.image-style-side {
  9. float: right;
  10. margin-left: 0.8em;
  11. max-width: 50%;
  12. }
  13. }
  14. .image > img {
  15. // Prevent unnecessary margins caused by line-height (see #44).
  16. display: block;
  17. // Center the image if its width is smaller than content's width.
  18. margin: 0 auto;
  19. // Make sure the image never exceeds the size of the parent container (#67).
  20. max-width: 100%;
  21. }
  22. }