Answers for "scss include"

CSS
9

sass mixin

@mixin transform($property) {
  -webkit-transform: $property;
  -ms-transform: $property;
  transform: $property;
}
.box { @include transform(rotate(30deg)); }
Posted by: Guest on May-29-2020
2

scss @mixin base

@mixin rtl($property, $ltr-value, $rtl-value) {
  #{$property}: $ltr-value;

  [dir=rtl] & {
    #{$property}: $rtl-value;
  }
}

.sidebar {
  @include rtl(float, left, right);
}
Posted by: Guest on April-05-2020
0

scss include

// style.scss,  sass will discontinue @include 
@use 'foundation/code';
@use 'foundation/lists';
Posted by: Guest on October-07-2021

Browse Popular Code Answers by Language