[wp-trac] [WordPress Trac] #24797: Twenty Thirteen: Bullets conflicting with caption

WordPress Trac noreply at wordpress.org
Mon Jul 22 16:36:38 UTC 2013


#24797: Twenty Thirteen: Bullets conflicting with caption
---------------------------+--------------------
 Reporter:  rdall          |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  3.6
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+--------------------

Comment (by lancewillett):

 Replying to [comment:21 RDall]:
 > 1. I honestly couldn't figure out how you were adding padding to the wp-
 caption… as much as I tried… I didn't want to set a defined size as the
 image would of course change size and reduce in the responsive nature of
 the theme.

 Oh, good point -- that means the {{{list-style-position}}} technique is
 more flexible (if worse-looking, heh).

 > > I don't think we need the "general sibling" selector here, just
 adjacent should do fine.
 >
 > 2. Ok… That being said I couldn't use the {{{+}}} selector in the other
 example because it would only apply to the element directly after the
 caption which in my case would have been a  {{{p}}} tag and not the
 {{{ul}}} or {{{ol}}} So I had to use the  {{{~}}}.

 Hmm. Also a good point. So if we use the general sibling all lists in a
 given post ''after'' a left-aligned caption will have the different bullet
 style. Oh well. That's an OK compromise.

 > 3. I could never get the exact same selector to apply in the editor-
 style.css for whatever reason… That last part has me scratching my head
 the most.

 OK, please continue testing there, let's try to make it work.

 So in summary: style left-aligned captions only and both {{{ol}}} and
 {{{ul}}} general siblings.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24797#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list