bookcasey / harsh Goto Github PK
View Code? Open in Web Editor NEWCompass extension for randomly generated CSS3 gradients with harsh color stops—like magical diamonds.
Compass extension for randomly generated CSS3 gradients with harsh color stops—like magical diamonds.
Should have ability to add a list of custom angles—not sure what should happen if number of colors and number of angles differ.
Latest version of sass,compass,and harsh. When I include harsh in my file, it always generates the colours in vertical lines (ie. all the breaks between colours are perfectly vertical, no other angles?) Tested using default parameters in an otherwise empty stylesheet, in Chrome Stable, Chrome Canary, Firefox, and IE10.
Show lists of colors functionality, include images with examples.
It seems like @include is the official syntax—for both sass and scss—I personally prefer + though.
I'd like to know what people think.
What did I do wrong? Implemented Harsh (almost) as stated in the docs, but each time I add "@import harsh" I get the following error:
Syntax error: wrong number of arguments calling `rand` (1 for 0) for `random'
on line 49 of /Users/deviavir/.compass/extensions/compass-harsh/stylesheets/_harsh.sass, in `background'
from line 4 of /Users/deviavir/.compass/extensions/compass-harsh/stylesheets/_harsh.sass, in `harsh'
Running ruby-1.9.3-p327 [ x86_64 ] and harsh (0.0.3)
Latest Google Chrome (32.0.1700.77) / Safari (7.0.1 (9537.73.11)) plus Sass v3.3.0.rc.2 / compass v1.0.0.alpha.17 won't show the harsh gradients if $angle: random
Using Sass v3.2.14 / compass v0.12.2 works fine (both Chrome and Safari), Firefox (26.0) is not affected at all.
Can be tested here: http://sassmeister.com/gist/8616595 (just switch Sass compiler version via Control panel)
related Gist: https://gist.github.com/nilswindisch/8616595
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.