[wp-trac] [WordPress Trac] #21379: Twenty Twelve: CSS and markup improvements for better child theme support
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 25 15:46:26 UTC 2012
#21379: Twenty Twelve: CSS and markup improvements for better child theme support
---------------------------+-------------------------
Reporter: lancewillett | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Bundled Theme | Version:
Severity: normal | Keywords: needs-patch
---------------------------+-------------------------
1. Move all @media queries to bottom of document. Better in one place at
the bottom for both specificity reasons (last in the file) and for
organization (easier to find and modify).
2. Simplify selectors to be less specific overall (things like {{{nav
.main-navigation}}} become {{{.main-navigation}}}). (From matiasventura.)
3. Add classes like {{{.site .site-content}}} in addition to the set of
IDs already present such as {{{#page #main #primary #secondary
#comments}}}. This allows elements selected with {{{#content nav}}} to
become {{{.site-content nav}}} -- making things much better for child
themes to have things like other {{{nav}}} elements inside the content
container. (From matiasventura.)
4. Add inline comments next to each calculated rule with rem units and
line heights, like {{{/* 12 / 24 */}}}. (From drewstrojny.)
5. For bonus points: "with all the fonts rem based it’d be neat to see
floated image margins match the text’s rem-based image margins." (From
themeshaper.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21379>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list