SCSS - condition

0 votes
106 views
added Feb 22, 2019 in SCSS by LC Marshal Captain (25,770 points)
@media (min-width: 1024px) and (max-width: 1024px) {
  @if $header-bar {
    padding-top: 4rem + $header-bar-height;
  } @else {
    padding-top: 4rem;
  }
}

 

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