Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Assert Directions Build status

Map values in clock-wise positions like CSS does it. Quoting from MDN:

  • One single value applies to all four sides.
  • Two values apply first to top and bottom, the second one to left and right.
  • Three values apply first to top, second to left and right and third to bottom.
  • Four values apply to top, right, bottom and left in that order (clockwise).

Example:

$map: assert-directions(10px 20px);

// $map: (
//   top: 10px,
//   bottom: 10px,
//   right: 20px,
//   left: 20px
// )

Installation

Using Bower
bower install scss-assert-directions --save

Using NPM
npm install scss-assert-directions --save

Testing

Mocha and True are used for unit testing. Simply run npm test to test output of the function.

About

Map values in clock-wise positions

Topics

Resources

Packages

No packages published