#3239 closed defect (bug) (fixed)
Sticky posts styling not working on all indexes
Reported by: | DJPaul | Owned by: | DJPaul |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Templates | Keywords: | |
Cc: |
Description
Review feedback: "Sticky posts must be styled and functioning correctly; this should be the case whether front page is set to blog posts by default or when a front page is set to Static Page and blog posts are in regular page.
For bp-default theme, sticky posts styling (orange background for meta) only shows up when set up is default blog posts for front page but fails when front page is set to static page."
Attachments (2)
Change History (9)
#5
@
13 years ago
The later is the best approach, the former is too specific and can break, theoretically, if stickies somehow appeared on another page, or those antecedent selectors changed in any manner.
Descendant selectors while powerful and important to understand and use become dangerous and hard to trouble shoot in dynamic sites where content is vast and complicated, where possible styling to classes and ID with descendant selectors used only where absolutely necessary is safest.
I've got 2 suggestions both just changing css rather than styling as use the same styling.