Answers for "sass mixin"

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
3

Sass @mixin and @include

@mixin important-text {
  color: red;
  font-size: 25px;
  font-weight: bold;
  border: 1px solid blue;
}
Posted by: Guest on December-06-2020
-1

scss transition mixin

transition
Posted by: Guest on August-14-2020

Browse Popular Code Answers by Language