Skip to content

Commit 9d590aa

Browse files
committed
Merge pull request neysimoes#1 from raphaelfabeni/master
Add a simple first version of README and new mixins
2 parents d4cb073 + f42b166 commit 9d590aa

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SASS Mixins
2+
===========
3+
4+
A collection of [SASS](http://sass-lang.com/ "SASS") mixins for your project.
5+
6+
* Box shadow
7+
* Opacity
8+
* Clearfix
9+
* Border radius
10+
* Box-sizing
11+
* Transition

_mixins.scss

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Box-shadow
22
@mixin box-shadow($top, $left, $blur, $color, $inset:"") {
33
-webkit-box-shadow:$top $left $blur $color #{$inset};
4-
-moz-box-shadow:$top $left $blur $color #{$inset};
5-
box-shadow:$top $left $blur $color #{$inset};
4+
-moz-box-shadow:$top $left $blur $color #{$inset};
5+
box-shadow:$top $left $blur $color #{$inset};
66
}
77

88
// Opacity
99
@mixin opacity($value) {
1010
$ie: $value * 100;
1111
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$ie)";
12-
filter: alpha(opacity=$ie);
13-
-moz-opacity: $value;
12+
filter: alpha(opacity=$ie);
1413
-khtml-opacity: $value;
15-
opacity: $value;
14+
-moz-opacity: $value;
15+
opacity: $value;
1616
}
1717

1818
// Clearfix
@@ -30,6 +30,23 @@
3030
// Border-radius
3131
@mixin border-radius($foo) {
3232
-webkit-border-radius: $foo;
33-
-moz-border-radius: $foo;
34-
border-radius: $foo;
33+
-moz-border-radius: $foo;
34+
border-radius: $foo;
35+
}
36+
37+
// Box-sizing
38+
@mixin box-sizing() {
39+
-webkit-box-sizing: border-box;
40+
-moz-box-sizing: border-box;
41+
-ms-box-sizing: border-box;
42+
box-sizing: border-box;
43+
}
44+
45+
// Transition
46+
@mixin transition($parameters...) {
47+
-webkit-transition: $parameters;
48+
-moz-transition: $parameters;
49+
-o-transition: $parameters;
50+
-ms-transition: $parameters;
51+
transition: $parameters;
3552
}

0 commit comments

Comments
 (0)