filter.caption.css
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/css/media/filter.caption.css
- 9 core/themes/stable9/css/filter/filter.caption.css
- 9 core/themes/stable/css/media/filter.caption.css
- 9 core/themes/stable/css/filter/filter.caption.css
- 9 core/modules/media/css/filter.caption.css
- 9 core/modules/filter/css/filter.caption.css
- 8.9.x core/themes/stable/css/media/filter.caption.css
- 8.9.x core/themes/stable/css/filter/filter.caption.css
- 8.9.x core/modules/media/css/filter.caption.css
- 8.9.x core/modules/filter/css/filter.caption.css
- 10 core/themes/stable9/css/media/filter.caption.css
- 10 core/themes/stable9/css/filter/filter.caption.css
- 10 core/modules/media/css/filter.caption.css
- 10 core/modules/filter/css/filter.caption.css
Caption filter: default styling for displaying image captions.
File
-
core/
themes/ stable9/ css/ filter/ filter.caption.css
View source
- /**
- * @file
- * Caption filter: default styling for displaying image captions.
- */
-
- /**
- * Essentials, based on http://stackoverflow.com/a/13363408.
- */
- .caption {
- display: table;
- }
- .caption > * {
- display: block;
- max-width: 100%;
- }
- .caption > figcaption {
- display: table-caption;
- max-width: none;
- caption-side: bottom;
- }
-
- /**
- * While editing and whenever the caption is empty, show a placeholder.
- *
- * Based on http://codepen.io/flesler/pen/AEIFc.
- */
- .caption > figcaption[contenteditable="true"]:empty::before {
- content: attr(data-placeholder);
- font-style: italic;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.