Rather than styling media caption vertical spacing at the plugin level, the spacing should be defined at the theme level, since this is a content item that appears in flow with other block-level semantic elements.

The .caption class should be targeted. Additionally .caption.align-left, .caption.align-right and .caption.align-center maybe targeted if needed.

Create a caption by placing an image into an article body and selecting the caption checkbox in the image configuration dialog.

Comments

bohart’s picture

Version: 9.x-dev » 8.x-dev

Seems that this novice bug exists on D8 too.
Lets fix this at 8.x first.

internetdevels’s picture

Status: Active » Needs review
StatusFileSize
new490 bytes
new71.46 KB

Hi, this is done, spacing added. :)

Status: Needs review » Needs work

The last submitted patch, 2: bartik-caption-space-2183005-2.patch, failed testing.

bohart’s picture

bohart’s picture

Status: Needs work » Needs review

Yep, retest is green now for this CSS patch ;)
Looks good for me, RTBC +1.

jessebeach’s picture

Screenshots please :)

outi’s picture

StatusFileSize
new232.97 KB
new229.96 KB

Looks good for me, too. RTBC +1. I made two screenshots, with your patch and without. Much better with!

outi’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

I would also like to be a cream puff! ;)

Committed and pushed to 8.x. Thanks!

webchick’s picture

Title: Style inlined .caption elements (figure) » Style inlined .caption elements (figure) - Bartik

  • Commit 9097639 on 8.x by webchick:
    Issue #2183005 by InternetDevels, Outi, jessebeach: Style inlined ....

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.