Skip to content

Instantly share code, notes, and snippets.

Hiroki Kokubun cocopon

Block or report user

Report or block cocopon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cocopon / Sass::Script::Functions#ms_filter_rgba
Last active Dec 21, 2015
Sass transparent color function for legacy IE (<= 8)
View Sass::Script::Functions#ms_filter_rgba
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)
if args.size != 2
raise"wrong number of arguments (#{args.size} for 2 or 4")
cocopon / sass_edge_functions
Last active Dec 14, 2015
Sass functions that extract a specified edge
View sass_edge_functions
// Example:
// $padding: 1px 2px 3px;
// top($padding) ...... 1px
// right($padding) .... 2px
// bottom($padding) ... 3px
// left($padding) ..... 2px
@function top($args) {
$len: length($args);
You can’t perform that action at this time.