Thanks Barry I got it, as @mdo explains: http://www.markdotto.com/2012/02/16/scope-css-classes-with-prefixes/
> We have here a global base class, .success, that might house all the > commonalities between successful buttons and alerts. Then, at the > individual component level, we add on or override as necessary. However, > this wide open class and chained approach exposes developers to a number of > questions and potential paint points: > > - What’s that base class stand for? > - What elements will be affected at the root level? > - How many elements have .success chained onto them? > - Can it be extended further to more components? > - What if one instance of .success uses green text on a white > background while another uses white text on a green background? > > Thanks again. On Thu, Mar 29, 2012 at 3:12 PM, Barry vd. Heuvel <[email protected]>wrote: > 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. >>>>> >>>> >>>> >> >
