Opened 14 years ago
Closed 14 years ago
#21764 closed defect (bug) (fixed)
Twenty Twelve: Blockquotes have no bottom margin — touch paragraphs below them
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Bundled Theme | Keywords: | has-patch |
| Focuses: | Cc: |
Description
In Twenty Twelve, blockquotes have no bottom margin. Any content below them gets an unrequested lap dance.
I've applied a background color to blockquotes to illustrate the problem:
You don't see the issue without giving the blockquote a background color because the margin-bottom of the last paragraph in the blockquote provides the appropriate spacing. But as soon as blockquotes have any sort of background styling or a border, the odd spacing will manifest.
This is what I'm using in my child theme to fix it.
article .entry-content blockquote {
margin-bottom: 24px;
}
article .entry-content blockquote p:last-child {
margin-bottom: 0;
}
Normally p has a margin-bottom of 24. This gives that to the blockquote, and takes it away from the last paragraph in a blockquote (if that paragraph is the last child element of the blockquote).
Attachments (1)
Change History (7)
#1
@
14 years ago
- Component changed from Themes to Bundled Theme
- Milestone changed from Awaiting Review to 3.5
- Summary changed from Twenty Twelve Blockquotes have no bottom margin — touch paragraphs below them to Twenty Twelve: Blockquotes have no bottom margin — touch paragraphs below them
#3
@
14 years ago
- Cc drewstrojny added
- Keywords has-patch added
I agree with Mark. Styling blockquotes with a background color is not rare and we shoud expect Child Themes to do that. (Mark's) Patch addresses the issue without changing the visual appearance of blockquotes in Twenty Twelve.
For Aside posts, I'd propose switching back to use margin for <p>s and just remove it from the last child. @DrewStrojny: Was switching to padding a measure to remove the space from the last element?
We could also think about using a article.format-aside .entry-content > *:last-child selector, just to make sure we strip it from any element.

Also:
article.format-aside blockquote p:last-child { padding-bottom: 0; }