[wp-trac] [WordPress Trac] #34333: Customizer: aggregate similar CSS rules
WordPress Trac
noreply at wordpress.org
Sun Dec 13 23:00:09 UTC 2015
#34333: Customizer: aggregate similar CSS rules
---------------------------------------+-----------------------
Reporter: afercia | Owner: afercia
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version: 4.3
Severity: normal | Resolution:
Keywords: has-patch has-screenshots | Focuses: ui
---------------------------------------+-----------------------
Comment (by afercia):
@celloexpressions thanks. Yep, the previous patch missed a comma after a
selector and some rules currently have a higher specificity just because
they're loaded after the ones in `customize-controls.css` so I've moved
some more rules from `customize-widgets.css` and `customize-nav-menus.css`
to `customize-controls.css`.
Should work better now. Hopefully :)
About further optimization, merging and generalizing code I'm all for
improvements. After all this patch proves that many things can be
standardized in components (for example abstracting selectors). Also, this
helps in discovering small inconsistencies and makes them easy to fix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34333#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list