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.scssSass partial to create diagonal linesmath.rbRequired extra math functions for sass_transforms.scssSass partial to do cross-browser css3 transformslines.scssExample usage of_diagonal-line.scssindex.htmlDemo htmllines.cssPrecompiled CSS viasass -r math.rb
- First author: Ken Valencik
- Second author: Jon Eisen (me)
- bl.ocks.org author: Mike Bostock