8
0

image.css 682 B

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