⊗mkLsBsPSB 11 of 42 menu

Combining Selector Parts in SASS

You can even connect parts of the same class. For example, like this:

.button { &-ok { color: green; } &-cancel { color: red; } }

As a result, after compilation we will get the following code:

.button-ok { color: green; } .button-cancel { color: red; }

Simplify the given code:

.label-success { color: green; } .label-warning { color: yellow; } .label-error { color: red; }
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline