Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

scss mixin

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

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

.sidebar {
  @include rtl(float, left, right);
}
Source by sass-lang.com #
 
PREVIOUS NEXT
Tagged: #scss #mixin
ADD COMMENT
Topic
Name
7+9 =