npm.io
1.2.1 • Published 7 years ago

sass-bidi

Licence
ISC
Version
1.2.1
Deps
0
Size
34 kB
Vulns
0
Weekly
0
Stars
2

sass-bidi

Handy mixins for handling rtl and ltr at the same time

Installation

npm install sass-bidi --save-dev

Usage

// some-of-your-scss-files.scss
@import '../node_modules/sass-bidi/main';
.some-selector{
  // set float to left for ltr and right for rtl
  @include bidi-value(float, left, right);
  // set 10px left-padding for ltr and right-padding for rtl
  @include bidi-prop(padding-left, padding-right, 10px);
}

Keywords