SCSS - nested class

0 votes
111 views
added Aug 15, 2017 in SCSS by anonymous
edited Jul 24, 2018 by LC Marshal
// CSS

li.facebook, li.twitter {
 background: #eee;
}

// SCSS
li {
  &.facebook, &.twitter {
    background: #eee;
  }
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...