SCSS property - simplify border styling

0 votes
133 views
added Jul 13, 2018 in SCSS by LC Marshal Captain (25,770 points)

Instead of declaring the border-radius & border style separately, you may combined them as follows: 

&:before{
  display: block;
  border:{
    width: 2px;
    style: solid;
    color: $color-success;
    radius: 50%;
  }
}

 

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