image.css 494 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2003-2018, 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. & > img {
  9. /* Prevent unnecessary margins caused by line-height (see #44). */
  10. display: block;
  11. /* Center the image if its width is smaller than content's width. */
  12. margin: 0 auto;
  13. /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
  14. max-width: 100%;
  15. }
  16. }