forked from tomokane/elements
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathelements.scss
154 lines (135 loc) · 5.14 KB
/
elements.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*---------------------------------------------------
SASS ELements (based on LESS Elements 0.9 http://lesselements.com)
-------------------------------- -------------------
LESS ELEMENTS made by Dmitry Fadeyev (http://fadeyev.net)
SASS port by Samuel Beek (http://samuelbeek.com)
---------------------------------------------------*/
@mixin gradient($color: #F5F5F5,$start: #EEE,$stop: #FFF) {
background:$color;
background:-webkit-gradient(linear,left bottom,left top,color-stop(0,$start),color-stop(1,$stop));
background:-ms-linear-gradient(bottom,$start,$stop);
background:-moz-linear-gradient(center bottom,$start 0%,$stop 100%);
background:-o-linear-gradient($stop,$start);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=$start,endColorstr=$stop)
}
@mixin bw-gradient($color: #F5F5F5,$start: 0,$stop: 255) {
background:$color;
background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#000),color-stop(1,#000));
background:-ms-linear-gradient(bottom,#000 0%,#000 100%);
background:-moz-linear-gradient(center bottom,#000 0%,#000 100%);
background:-o-linear-gradient(#000,#000);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=rgb($start,$start,$start),endColorstr=rgb($stop,$stop,$stop))
}
@mixin bordered($top-color: #EEE,$right-color: #EEE,$bottom-color: #EEE,$left-color: #EEE) {
border-top:solid 1px $top-color;
border-left:solid 1px $left-color;
border-right:solid 1px $right-color;
border-bottom:solid 1px $bottom-color
}
@mixin drop-shadow($x-axis: 0,$y-axis: 1px,$blur: 2px,$alpha: 0.1) {
-webkit-box-shadow:$x-axis $y-axis $blur rgba(0,0,0,$alpha);
-moz-box-shadow:$x-axis $y-axis $blur rgba(0,0,0,$alpha);
box-shadow:$x-axis $y-axis $blur rgba(0,0,0,$alpha)
}
@mixin rounded($radius: 2px) {
-webkit-border-radius:$radius;
-moz-border-radius:$radius;
border-radius:$radius
}
@mixin border-radius($topright: 0,$bottomright: 0,$bottomleft: 0,$topleft: 0) {
-webkit-border-top-right-radius:$topright;
-webkit-border-bottom-right-radius:$bottomright;
-webkit-border-bottom-left-radius:$bottomleft;
-webkit-border-top-left-radius:$topleft;
-moz-border-radius-topright:$topright;
-moz-border-radius-bottomright:$bottomright;
-moz-border-radius-bottomleft:$bottomleft;
-moz-border-radius-topleft:$topleft;
border-top-right-radius:$topright;
border-bottom-right-radius:$bottomright;
border-bottom-left-radius:$bottomleft;
border-top-left-radius:$topleft
}
@mixin opacity($opacity: 0.5) {
-moz-opacity:$opacity;
-khtml-opacity:$opacity;
-webkit-opacity:$opacity;
opacity:$opacity;
$opperc:$opacity * 100
/*
-ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(opacity=${opperc})";
filter: ~"alpha(opacity=${opperc})";
*/
}
@mixin transition-duration($duration: 0.2s) {
-moz-transition-duration:$duration;
-webkit-transition-duration:$duration;
-o-transition-duration:$duration;
transition-duration:$duration
}
@mixin transform($arguments) {
-webkit-transform:$arguments;
-moz-transform:$arguments;
-o-transform:$arguments;
-ms-transform:$arguments;
transform:$arguments
}
@mixin rotation($deg:5deg) {
}
@mixin scale($ratio:1.5) {
}
@mixin transition($duration:0.2s,$ease:ease-out) {
-webkit-transition:all $duration $ease;
-moz-transition:all $duration $ease;
-o-transition:all $duration $ease;
transition:all $duration $ease
}
@mixin inner-shadow($horizontal:0,$vertical:1px,$blur:2px,$alpha: 0.4) {
-webkit-box-shadow:inset $horizontal $vertical $blur rgba(0,0,0,$alpha);
-moz-box-shadow:inset $horizontal $vertical $blur rgba(0,0,0,$alpha);
box-shadow:inset $horizontal $vertical $blur rgba(0,0,0,$alpha)
}
@mixin box-shadow($arguments) {
-webkit-box-shadow:$arguments;
-moz-box-shadow:$arguments;
box-shadow:$arguments
}
@mixin box-sizing($sizing: border-box) {
-ms-box-sizing:$sizing;
-moz-box-sizing:$sizing;
-webkit-box-sizing:$sizing;
box-sizing:$sizing
}
@mixin user-select($argument: none) {
-webkit-user-select:$argument;
-moz-user-select:$argument;
-ms-user-select:$argument;
user-select:$argument
}
@mixin columns($colwidth: 250px,$colcount: 0,$colgap: 50px,$columnRuleColor: #EEE,$columnRuleStyle: solid,$columnRuleWidth: 1px) {
-moz-column-width:$colwidth;
-moz-column-count:$colcount;
-moz-column-gap:$colgap;
-moz-column-rule-color:$columnRuleColor;
-moz-column-rule-style:$columnRuleStyle;
-moz-column-rule-width:$columnRuleWidth;
-webkit-column-width:$colwidth;
-webkit-column-count:$colcount;
-webkit-column-gap:$colgap;
-webkit-column-rule-color:$columnRuleColor;
-webkit-column-rule-style:$columnRuleStyle;
-webkit-column-rule-width:$columnRuleWidth;
column-width:$colwidth;
column-count:$colcount;
column-gap:$colgap;
column-rule-color:$columnRuleColor;
column-rule-style:$columnRuleStyle;
column-rule-width:$columnRuleWidth
}
@mixin translate($x:0,$y:0) {
}
@mixin background-clip($argument: padding-box) {
-moz-background-clip:$argument;
-webkit-background-clip:$argument;
background-clip:$argument
}