This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Sass::Script::Functions | |
def ms_filter_rgba(*args) | |
if args.size == 4 | |
red, green, blue, alpha = args | |
return ms_rgba(rgb(red, green, blue), alpha) | |
end | |
if args.size != 2 | |
raise ArgumentError.new("wrong number of arguments (#{args.size} for 2 or 4") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example: | |
// | |
// $padding: 1px 2px 3px; | |
// top($padding) ...... 1px | |
// right($padding) .... 2px | |
// bottom($padding) ... 3px | |
// left($padding) ..... 2px | |
@function top($args) { | |
$len: length($args); |
NewerOlder