You can use _diagonal-line.scss
to create arbitrary diagonal lines using CSS3. This implementation is compatible with all major browsers and IE9 or greater. An example usage of this partial is given in lines.scss
. The compiled css file was included for display purposes.
To compile the sass file, you will need to use the additional functions provided in math.rb
:
sass --watch path/to/sass:path/to/css -r ./math.rb
_diagonal-line.scss
Sass partial to create diagonal linesmath.rb
Required extra math functions for sass_transforms.scss
Sass partial to do cross-browser css3 transformslines.scss
Example usage of_diagonal-line.scss
index.html
Demo htmllines.css
Precompiled CSS viasass -r math.rb
- First author: Ken Valencik
- Second author: Jon Eisen (me)
- bl.ocks.org author: Mike Bostock