8
0

image.css 587 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. .ck-content .image {
  6. clear: both;
  7. text-align: center;
  8. /* Make sure there is some space between the content and the image. */
  9. margin: 1em 0;
  10. & > img {
  11. /* Prevent unnecessary margins caused by line-height (see #44). */
  12. display: block;
  13. /* Center the image if its width is smaller than the content's width. */
  14. margin: 0 auto;
  15. /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
  16. max-width: 100%;
  17. }
  18. }