You are here

editor_ckeditor.drupalimagecaption.css in Editor 7

Image Caption: overrides to make centered alignment work inside CKEditor.

File

modules/editor_ckeditor/css/plugins/drupalimagecaption/editor_ckeditor.drupalimagecaption.css
View source
  1. /**
  2. * @file
  3. * Image Caption: overrides to make centered alignment work inside CKEditor.
  4. */
  5. /**
  6. * Since .align-center is set on the non-captioned image's parent block element
  7. * in CKEditor, the image must be centered separately.
  8. */
  9. p[data-widget="image"].align-center {
  10. text-align: center;
  11. }
  12. /**
  13. * Since .align-center is set on captioned widget's wrapper element in CKEditor,
  14. * the alignment of internals must be set separately.
  15. */
  16. div[data-cke-widget-wrapper].align-center > figure[data-widget="image"] {
  17. margin-left: auto;
  18. margin-right: auto;
  19. }