Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // adding vendor prefixes to properties
- // note: this code gives all vendors to any properties. it is not good. for example, box-sizing needs -webkit- and -moz- prefixes. I think it would be like 'vendor-property[webkit,moz](selector-property, arguments)'
- vendor-property(selector-property, arguments)
- -webkit-{selector-property}: arguments;
- -moz-{selector-property}: arguments;
- -ms-{selector-property}: arguments;
- -o-{selector-property}: arguments;
- {selector-property}: arguments;
- box-sizing()
- vendor-property('box-sizing', arguments);
- text-overflow()
- vendor-property('text-overflow', arguments);
- border-radius()
- vendor-property('border-radius', arguments);
- box-shadow()
- vendor-property('box-shadow', arguments);
- transform()
- vendor-property('transform', arguments);
- column-count()
- vendor-property('column-count', arguments);
- column-gap()
- vendor-property('column-gap', arguments);
- transition()
- vendor-property('transition', arguments);
- animation()
- vendor-property('animation', arguments);
- border-image()
- vendor-property('border-image', arguments);
- hyphens()
- vendor-property('hyphens', arguments);
- // adding vendor prefixes to arguments
- // note: there are no code because I'm a beginner in Stylus and don't know how to do it.
- // let's try to write some brutal shitcode
- //background-image: linear-gradient(arguments)
- // background-image: -webkit-linear-gradient(arguments)
- // background-image: -moz-linear-gradient(arguments)
- // background-image: -ms-linear-gradient(arguments)
- // background-image: -o-linear-gradient(arguments)
- // background-image: linear-gradient(arguments)
- // it's doesn't work, huh. it's all that I can with Stylus.
- // okay, not all. I can make special mixin for gradients.
- linear-gradient(from, to)
- -webkit-linear-gradient: from, to
- -moz-linear-gradient: from, to
- -ms-linear-gradient: from, to
- -o-linear-gradient: from, to
- linear-gradient: from, to
- // but it HAS NO WAY, it's stupid.
Add Comment
Please, Sign In to add comment