image-widget.css 933 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @file
  3. * Image upload widget.
  4. *
  5. * This CSS file is not used in this theme (Classy). It was intended to be used,
  6. * but due to a bug, Drupal 8 shipped with it not being used. To not break
  7. * backwards compatibility, we continue to not load it in Classy. Every
  8. * subtheme of Classy is encouraged to use it, by attaching the
  9. * classy/image-widget asset library in their image-widget.html.twig file.
  10. *
  11. * @see core/themes/seven/templates/content-edit/image-widget.html.twig.
  12. *
  13. * @todo In Drupal 9, let core/themes/classy/templates/content-edit/image-widget.html.twig
  14. * attach the classy/image-widget asset library.
  15. */
  16. .image-preview {
  17. float: left; /* LTR */
  18. padding: 0 10px 10px 0; /* LTR */
  19. }
  20. [dir="rtl"] .image-preview {
  21. float: right;
  22. padding: 0 0 10px 10px;
  23. }
  24. .image-widget-data {
  25. float: left; /* LTR */
  26. }
  27. [dir="rtl"] .image-widget-data {
  28. float: right;
  29. }
  30. .image-widget-data .text-field {
  31. width: auto;
  32. }