theme.scss 596 B

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