Multiple two-class selectors in Sass

后端 未结 4 1909
盖世英雄少女心
盖世英雄少女心 2021-01-31 13:59

Having multiple two-class selectors for a single declaration block, is it possible to simplify the following (i.e. not having to repeat the body tag):



        
4条回答
  •  野的像风
    2021-01-31 14:41

    If you are using sass compiled by the node, that may do.

        body {
          .shop, .contact, .about, .faq {
              background-color:#FFFFFF;
          }
        }
    

提交回复
热议问题