[wp-trac] [WordPress Trac] #27502: Twenty Thirteen and Fourteen: Add support for HTML5 gallery and caption
WordPress Trac
noreply at wordpress.org
Mon Mar 24 19:23:35 UTC 2014
#27502: Twenty Thirteen and Fourteen: Add support for HTML5 gallery and caption
---------------------------+--------------------
Reporter: obenland | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+--------------------
Comment (by obenland):
The only (front-end) CSS change necessary for galleries is an added bottom
margin for gallery captions in Twenty Thirteen. It used to rely on the `p`
element to add that.
For captions we need some more work since we have to make up for the lost
10px in width. It can mostly be achieved with overriding the selector that
defines the margins on aligned caption images.
While working on it I discovered and fixed a visual bug in both themes,
where images within right aligned captions were still left aligned within
the caption. I added styles to either add a padding left or float it
right, so the margin to the text is corrected. See before and after:
https://cloudup.com/cBVsdJYVprT
For editor styles I had to reset the padding we added for HTML5 captions
both times. So removing caption styles for HTML5 entirely, as azaozz
brought up in #26642, might not be the worst idea.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27502#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list