8
0

theme.scss 580 B

12345678910111213141516171819202122232425
  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. .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. }