Opened 13 years ago
Closed 12 years ago
#21743 closed enhancement (fixed)
Twenty Twelve: add support for Status post format
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
As discussed in #wordpress-dev IRC team meeting today, task is to enable the Status post format.
Drew will provide styles.
Attachments (6)
Change History (23)
#3
@
12 years ago
- Cc drewstrojny added
- Status changed from new to assigned
Support is added, with a right-floated 48 pixel avatar.
Passing to Drew for a style review.
#5
@
12 years ago
I pinged Drew again today to review this for design integration, so I can close it.
#7
@
12 years ago
- Keywords has-patch added; needs-patch removed
- Owner changed from drewstrojny to lancewillett
- Status changed from assigned to accepted
#8
follow-up:
↓ 10
@
12 years ago
@drewstrojny I think the "clear" class you added is unnecessary. Did you see any float clearing problems?
In my testing it works fine without it.
(I'd also prefer to keep it out of the markup if possible.)
#9
follow-up:
↓ 11
@
12 years ago
Also, I think we can use the_author()
instead of echo get_the_author_meta( 'display_name' )
to output the Display Name: http://codex.wordpress.org/Function_Reference/the_author.
#10
in reply to:
↑ 8
;
follow-up:
↓ 12
@
12 years ago
Replying to lancewillett:
@drewstrojny I think the "clear" class you added is unnecessary. Did you see any float clearing problems?
I added it to make the module itself a bit more bulletproof. If someone increases the size of the avatar and adds some extra meta it will still clear completely and look good. If the <header> isn't cleared the content could start wrapping up against it in that scenario.
Feel free to move the clear stuff to the stylesheet if you prefer it. I know you guys extracted the old clearing method we were using with Sass and replaced it with something else. I poked around a bit and found the clear class.
In summary, I think I'd prefer we keep it, but it doesn't have to be in the markup.
#11
in reply to:
↑ 9
@
12 years ago
Replying to lancewillett:
Also, I think we can use
the_author()
instead ofecho get_the_author_meta( 'display_name' )
to output the Display Name: http://codex.wordpress.org/Function_Reference/the_author.
Good idea. I was initially toying with using the user's URL in that spot and forgot about the_author.
#12
in reply to:
↑ 10
;
follow-up:
↓ 14
@
12 years ago
Replying to drewstrojny:
Replying to lancewillett:
@drewstrojny I think the "clear" class you added is unnecessary. Did you see any float clearing problems?
I added it to make the module itself a bit more bulletproof. If someone increases the size of the avatar and adds some extra meta it will still clear completely and look good. If the <header> isn't cleared the content could start wrapping up against it in that scenario.
Gotcha, I tested out a huge gravatar image and the content below (paragraph) actually looks OK wrapped against it. And it's cleared below by .entry-meta
element so the flow is reset before the element below.
#14
in reply to:
↑ 12
@
12 years ago
Gotcha, I tested out a huge gravatar image and the content below (paragraph) actually looks OK wrapped against it. And it's cleared below by
.entry-meta
element so the flow is reset before the element below.
I was testing it with a medium size image (say 80px) and some ugliness creeps in. I'll upload a couple screenshots.
#15
@
12 years ago
OK, we can solve this pretty easily by adding clear: both;
— that will force the paragraph element (first part of the real post content) to not wrap around the header element.
In [21726]: