From: Jason Woofenden Date: Wed, 15 Oct 2014 22:54:51 +0000 (-0400) Subject: stylus: more vendor upgrades, cleanup X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=9c8566f495179ab2b56aeae0c4ee0222dffd0210 stylus: more vendor upgrades, cleanup --- diff --git a/stylus-helpers.styl b/stylus-helpers.styl index 06ecac7..15bebc4 100644 --- a/stylus-helpers.styl +++ b/stylus-helpers.styl @@ -10,16 +10,21 @@ _px(i) unit(i) == '' ? unit(i, px) : i - -vendors = webkit moz o ms official - +// transparently support vender-specific tags border-radius() - for vendor in vendors - if vendor == official - border-radius: arguments - else - -{vendor}-border-radius: arguments -// FIXME add box shadow and text shadow? + -webkit-border-radius: arguments + border-radius: arguments +box-shadow() + -webkit-box-shadow: arguments + box-shadow: arguments +box-sizing() + -webkit-box-sizing: arguments + -moz-box-sizing: arguments + box-sizing: arguments + +// map "whitespace:" to "white-space:" +whitespace() + white-space: arguments // helper function _pos(type, args) @@ -31,7 +36,7 @@ _pos(type, args) // you can pass directions and units, or just directions. Examples: // absolute: top 20px left 0 // fixed: top right -// relative: top: -4px +// relative: top -4px absolute() _pos('absolute', arguments) fixed()