Skip to content

Instantly share code, notes, and snippets.

View lemnis's full-sized avatar

Lisa Martens lemnis

  • Spain
View GitHub Profile
@lemnis
lemnis / Sassy-Transforms.scss
Last active December 24, 2015 08:49
A sass polyfill that adds support for 2D transform in IE 6 / 8
$pi: 3.14159265359;
@function power ($x, $n){
$ret: 1;
@if $n >= 0 {
@for $i from 1 through $n {
$ret: $ret * $x;
}
} @else {
@for $i from $n through 0 {
@lemnis
lemnis / IE-hacks.scss
Last active December 23, 2015 10:49
just a simple file with ie hacks / fixes
@mixin inline-block{
display: inline-block;
zoom: 1;
*display: inline;
}
@mixin opacity ($value) {
opacity: $value;
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=” $value * 100 “)”;
filter: alpha(opacity= $value * 100 );
@lemnis
lemnis / Sassy-Filters.scss
Last active December 21, 2015 18:39
A mixin for making webkit-filters a little bit more useful.
$svg-filters: no;
// add different output if it is used within the mixin filter
@function grayscale($value){
@if $svg-filters == yes{
@return $value
} @else {
@return desaturate($color, 100%)
}
}