Mark Otto (@mdo, one of the creators of Bootstrap) explains this here: http://www.markdotto.com/2012/03/02/stop-the-cascade/
On Thu, Mar 29, 2012 at 12:15, Hossein Zolfi <[email protected]>wrote: > I think naming class to btn-sucess is meaningful than just we have sucess. > When major version of one framework/application is incremented, this > changes will come so some backward compatibility will be broken. > My question is about Css. In Css, we can join two selectors as example > .btn and .sucess to create new selector .btn.sucess (This is what I do in > my applications). > > Is .btn-success (as an example, instead of .btn.success) a standard (In > web design and CSS) naming for selectors? If yes, why? > > Thanks everybody. > > > On Tue, Mar 27, 2012 at 8:35 PM, John Roberts <[email protected]>wrote: > >> I would imagine it was to make it clear what visual elements those styles >> applied to, but that's just my opinion. >> >> If this change is causing breaking changes in your application, perhaps >> you can revert back to your previous version of bootstrap until you can >> properly stage and test the newer version? >> >> >> On Tuesday, March 27, 2012 6:28:27 AM UTC-7, Saiful Amri wrote: >>> >>> We hope for the future, class name is not change but for property of the >>> class is good, thanks... >>> >>> On Tue, Mar 27, 2012 at 6:47 PM, Hossein Zolfi >>> <[email protected]>wrote: >>> >>>> Hello every body, >>>> >>>> When I want to upgrade from 1.4 to 2.0, I got a surprising refactoring, >>>> and I see class-name of some elements is changed (for example, they changed >>>> from sucess to btn-succes or actions to btn-actions, etc.), This question >>>> is about Css. >>>> Could any one please told me the reason of this changes?. >>>> What is benefits of using .btn-success vs .btn.success? >>>> >>>> Thanks. >>>> >>> >>> >
