[wp-hackers] Change class in form of comment_form()
Ryan McCue
lists at rotorised.com
Wed Sep 4 13:59:27 UTC 2013
Otto wrote:
> If the framework doesn't let you address document elements by ID, then
> I'd say that's a rather strange framework indeed. What is so hard
> about using #comment-form instead of .comment-form?
Because maybe my #comment-form is also a .section, and maybe a .large-form.
Easy enough with preprocessors (#comment-form { @extend .section;
@extend .large-form }), but not with normal CSS without duplicating all
the existing styles.
(Otherwise you end up with something like wp-admin's CSS, which is
frankly ridiculous.)
--
Ryan McCue
<http://ryanmccue.info/>
More information about the wp-hackers
mailing list