{"id":11175704,"date":"2019-02-06T14:58:32","date_gmt":"2019-02-06T14:58:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/css-specificity-issues\/"},"modified":"2019-02-06T14:58:32","modified_gmt":"2019-02-06T14:58:32","slug":"css-specificity-issues","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/css-specificity-issues\/","title":{"rendered":"CSS Specificity issues"},"content":{"rendered":"<p>Hi,<br \/>\nI was wondering about two things that affect overriding the default css styles.<\/p>\n<p>First, if your plugin absolutely needed to load your stylesheet in the footer which means that it will always trump the theme&#8217;s styles and anything added to the customizer&#8217;s Add CSS feature.<\/p>\n<p>Secondly, the use of overqualifying selectors for example the inputs have their classes .yikes-easy-mc-text and .yikes-easy-mc-email, why not just apply the styles to these classes instead of using .yikes-easy-mc-form .yikes-easy-mc-text. The .yikes-easy-mc-form isn&#8217;t necessary. Also things like using .yikes-easy-mc-form [input type=&#8221;text&#8221;] instead of just styling the class you gave it .yikes-easy-mc-text.<\/p>\n<p>Just a thought, but it could prevent developers from using the anti pattern of using !important to override the styles.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-11175704","topic","type-topic","status-publish","hentry","topic-tag-css"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11175704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11175704\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11175704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}