tamem-scss 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8cad2b69d954e405c52b70c3d85e3dab0c324f60
4
+ data.tar.gz: d60484db7a7db7d1f38496a698461a5704a881a8
5
+ SHA512:
6
+ metadata.gz: 8390ea3dae05c0d62466987f7b825f0eac5a22e32f9f6541256df063bfaaf97c270c59bc21e207cc8d5cf10af911b2c17536512cf720586e142b6bab0fc77deb
7
+ data.tar.gz: d55458fddc4f086963f395f22c9e10f0f82af764a62a835b216729e027cf5920ed1c58e18a7867a462e43ea9fc1c9d848b64b51c453833756301d84d057fe643
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Fesuy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,102 @@
1
+ # tamem-scss
2
+ Tamem-scss is cross browser helper for sass. You can enjoy coding without create vendor prefix :D
3
+
4
+ ## Installation
5
+ [Bower](https://bower.io/) `bower install tamem-scss --save`
6
+
7
+ [Npm](https://www.npmjs.com/package/tamem-scss) `npm install tamem-scss --save-dev`
8
+
9
+ Or you can direct download from this repo and extract into your sass project.
10
+
11
+ Check the [documentation](https://fesuydev.github.io/tamem-scss/)
12
+
13
+ ## How to use
14
+ Tamem-scss is a collection of several mixins.
15
+ You only need to include Tamem-scss into your sass project.
16
+ ```
17
+ @import "somedir/tamem";
18
+
19
+ // and then call some tamem helper
20
+ .box {
21
+ @include size(20px, 30px);
22
+ @include margin-vertical(10px);
23
+ }
24
+ ```
25
+
26
+ ### Features
27
+ - align-content
28
+ - align-items
29
+ - align-self
30
+ - display-flex
31
+ - display-inline-flex
32
+ - flex
33
+ - flex-basis
34
+ - flex-direction
35
+ - flex-flow
36
+ - flex-grow
37
+ - flex-shrink
38
+ - flex-wrap
39
+ - justify-content
40
+ - keyframes
41
+ - order
42
+ - rounded
43
+ - left-rounded
44
+ - right-rounded
45
+ - top-rounded
46
+ - bottom-rounded
47
+ - perspective
48
+ - perspective-origin
49
+ - rotate
50
+ - rotate3d
51
+ - rotateX
52
+ - rotateY
53
+ - rotateZ
54
+ - skew
55
+ - skew3d
56
+ - skewX
57
+ - skewY
58
+ - scale
59
+ - scale3d
60
+ - scaleX
61
+ - scaleY
62
+ - scaleZ
63
+ - size
64
+ - square
65
+ - transform
66
+ - transform-origin
67
+ - transform-style
68
+ - translate
69
+ - translate3d
70
+ - translateX
71
+ - translateY
72
+ - translateZ
73
+ - transition
74
+ - transition-delay
75
+ - transition-duration
76
+ - transition-property
77
+ - transition-timing-function
78
+
79
+ #### Another helper features
80
+ - box-shadow
81
+ - box-sizing
82
+ - create-grid
83
+ - create-grid-offset
84
+ - clearfix
85
+ - font-face-src
86
+ - margin-vertical
87
+ - margin-horizontal
88
+ - opacity
89
+ - padding-vertical
90
+ - padding-horizontal
91
+ - text-overflow
92
+ - size
93
+ - strip-unit
94
+ - square
95
+ - user-select
96
+
97
+ #### Notes
98
+ if you want using clearfix you have 2 ways to do that
99
+ You can use `@extend %clearfix` or `@include clearfix`
100
+
101
+ #### License
102
+ Tamem-scss is open-sourced software licensed under the [MIT License](http://opensource.org/licenses/MIT)
data/bower.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "tamem-scss",
3
+ "homepage": "https://github.com/fesuydev/tamem-scss",
4
+ "authors": [
5
+ "Fesuy <fesuydev@gmail.com>"
6
+ ],
7
+ "description": "Tamem-scss is a cross browser helper for sass. You can enjoy coding without create vendor prefix :D",
8
+ "main": "_tamem.scss",
9
+ "keywords": [
10
+ "tamem",
11
+ "scss",
12
+ "sass",
13
+ "css",
14
+ "cross-browser"
15
+ ],
16
+ "license": "MIT",
17
+ "ignore": [
18
+ "**/.*",
19
+ ".sass-cache",
20
+ "node_modules",
21
+ "bower_components",
22
+ "test",
23
+ "tests"
24
+ ]
25
+ }
data/lib/tamem/scss.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "tamem/scss/version"
2
+
3
+ module Tamem
4
+ module Scss
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Tamem
2
+ module Scss
3
+ VERSION = "1.0.2"
4
+ end
5
+ end
data/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "tamem-scss",
3
+ "version": "1.0.1",
4
+ "description": "Tamem-scss is a cross browser helper for sass. You can enjoy coding without create vendor prefix :D",
5
+ "main": "_tamem.scss",
6
+ "style": "_tamem.scss",
7
+ "scripts": {
8
+ "test": "mocha",
9
+ "test-only": "mocha"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/fesuydev/tamem-scss.git"
14
+ },
15
+ "keywords": [
16
+ "tamem",
17
+ "scss",
18
+ "sass",
19
+ "css",
20
+ "cross-browser"
21
+ ],
22
+ "author": "fesuydev@gmail.com",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/fesuydev/tamem-scss/issues"
26
+ },
27
+ "homepage": "https://github.com/fesuydev/tamem-scss#readme",
28
+ "dependencies": {},
29
+ "devDependencies": {
30
+ "mocha": "^3.2.0",
31
+ "sassy-test": "^3.0.4"
32
+ }
33
+ }
data/sass/_tamem.scss ADDED
@@ -0,0 +1,6 @@
1
+ @import "core/helpers";
2
+ @import "core/animation";
3
+ @import "core/rounded";
4
+ @import "core/transformation";
5
+ @import "core/transition";
6
+ @import "core/flexbox";
@@ -0,0 +1,318 @@
1
+ ///
2
+ /// Animation helper
3
+ ///
4
+ /// @group animation
5
+ /// @param {list | string} $value
6
+ ///
7
+ /// @example scss
8
+ /// .box {
9
+ /// @include animation(4s linear 0s infinite alternate move_eye);
10
+ /// }
11
+ ///
12
+ /// // CSS Output
13
+ /// .box {
14
+ /// -webkit-animation: 4s linear 0s infinite alternate slide_away;
15
+ /// -moz-animation: 4s linear 0s infinite alternate slide_away;
16
+ /// -o-animation: 4s linear 0s infinite alternate slide_away;
17
+ /// animation: 4s linear 0s infinite alternate slide_away;
18
+ /// }
19
+ ///
20
+ @mixin animation($value) {
21
+ -webkit-animation: $value;
22
+ -moz-animation: $value;
23
+ -o-animation: $value;
24
+ animation: $value;
25
+ }
26
+
27
+ ///
28
+ /// Animation delay helper
29
+ ///
30
+ /// @group animation
31
+ /// @param {list | number} $time
32
+ ///
33
+ /// @example scss
34
+ /// .box {
35
+ /// @include animation-delay(4s, 2ms);
36
+ /// }
37
+ ///
38
+ /// // CSS Output
39
+ /// .box {
40
+ /// -webkit-animation-delay: 4s, 2ms;
41
+ /// -moz-animation-delay: 4s, 2ms;
42
+ /// -o-animation-delay: 4s, 2ms;
43
+ /// animation-delay: 4s, 2ms;
44
+ /// }
45
+ ///
46
+ @mixin animation-delay($time...) {
47
+ -webkit-animation-delay: $time;
48
+ -moz-animation-delay: $time;
49
+ -o-animation-delay: $time;
50
+ animation-delay: $time;
51
+ }
52
+
53
+ ///
54
+ /// Animation direction helper
55
+ ///
56
+ /// @group animation
57
+ /// @param {list | string} $value
58
+ ///
59
+ /// @example scss
60
+ /// .box {
61
+ /// @include animation-direction(normal);
62
+ /// }
63
+ ///
64
+ /// // CSS Output
65
+ /// .box {
66
+ /// -webkit-animation-direction: normal;
67
+ /// -moz-animation-direction: normal;
68
+ /// -o-animation-direction: normal;
69
+ /// animation-direction: normal;
70
+ /// }
71
+ ///
72
+ @mixin animation-direction($value...) {
73
+ -webkit-animation-direction: $value;
74
+ -moz-animation-direction: $value;
75
+ -o-animation-direction: $value;
76
+ animation-direction: $value;
77
+ }
78
+
79
+ ///
80
+ /// Animation duration helper
81
+ ///
82
+ /// @group animation
83
+ /// @param {list | number} $time
84
+ ///
85
+ /// @example scss
86
+ /// .box {
87
+ /// @include animation-duration(4s, 2ms);
88
+ /// }
89
+ ///
90
+ /// // CSS Output
91
+ /// .box {
92
+ /// -webkit-animation-duration: 4s, 2ms;
93
+ /// -moz-animation-duration: 4s, 2ms;
94
+ /// -o-animation-duration: 4s, 2ms;
95
+ /// animation-duration: 4s, 2ms;
96
+ /// }
97
+ ///
98
+ @mixin animation-duration($time...) {
99
+ -webkit-animation-duration: $time;
100
+ -moz-animation-duration: $time;
101
+ -o-animation-duration: $time;
102
+ animation-duration: $time;
103
+ }
104
+
105
+ ///
106
+ /// Animation fill mode helper
107
+ ///
108
+ /// @group animation
109
+ /// @param {list | string} $value
110
+ ///
111
+ /// @example scss
112
+ /// .box {
113
+ /// @include animation-fill-mode(both);
114
+ /// }
115
+ ///
116
+ /// // CSS Output
117
+ /// .box {
118
+ /// -webkit-animation-fill-mode:both;
119
+ /// -moz-animation-fill-mode:both;
120
+ /// -o-animation-fill-mode:both;
121
+ /// animation-fill-mode:both;
122
+ /// }
123
+ ///
124
+ @mixin animation-fill-mode($value...) {
125
+ -webkit-animation-fill-mode: $value;
126
+ -moz-animation-fill-mode: $value;
127
+ -o-animation-fill-mode: $value;
128
+ animation-fill-mode: $value;
129
+ }
130
+
131
+ ///
132
+ /// Animation iteration count helper
133
+ ///
134
+ /// @group animation
135
+ /// @param {list | string | number} $value
136
+ ///
137
+ /// @example scss
138
+ /// .box {
139
+ /// @include animation-iteration-count(1);
140
+ /// }
141
+ ///
142
+ /// // CSS Output
143
+ /// .box {
144
+ /// -webkit-animation-iteration-count: 1;
145
+ /// -moz-animation-iteration-count: 1;
146
+ /// -o-animation-iteration-count: 1;
147
+ /// animation-iteration-count: 1;
148
+ /// }
149
+ ///
150
+ @mixin animation-iteration-count($value...) {
151
+ -webkit-animation-iteration-count: $value;
152
+ -moz-animation-iteration-count: $value;
153
+ -o-animation-iteration-count: $value;
154
+ animation-iteration-count: $value;
155
+ }
156
+
157
+ ///
158
+ /// Animation name helper
159
+ ///
160
+ /// @group animation
161
+ /// @param {list | string} $value
162
+ ///
163
+ /// @example scss
164
+ /// .box {
165
+ /// @include animation-name(slide_away);
166
+ /// }
167
+ ///
168
+ /// // CSS Output
169
+ /// .box {
170
+ /// -webkit-animation-name: slide_away;
171
+ /// -moz-animation-name: slide_away;
172
+ /// -o-animation-name: slide_away;
173
+ /// animation-name: slide_away;
174
+ /// }
175
+ ///
176
+ @mixin animation-name($value...) {
177
+ -webkit-animation-name: $value;
178
+ -moz-animation-name: $value;
179
+ -o-animation-name: $value;
180
+ animation-name: $value;
181
+ }
182
+
183
+ ///
184
+ /// Animation play state helper
185
+ ///
186
+ /// @group animation
187
+ /// @param {list | string} $value
188
+ ///
189
+ /// @example scss
190
+ /// .box {
191
+ /// @include animation-play-state(running);
192
+ /// }
193
+ ///
194
+ /// // CSS Output
195
+ /// .box {
196
+ /// -webkit-animation-play-state: running;
197
+ /// -moz-animation-play-state: running;
198
+ /// -o-animation-play-state: running;
199
+ /// animation-play-state: running;
200
+ /// }
201
+ ///
202
+ @mixin animation-play-state($value...) {
203
+ -webkit-animation-play-state: $value;
204
+ -moz-animation-play-state: $value;
205
+ -o-animation-play-state: $value;
206
+ animation-play-state: $value;
207
+ }
208
+
209
+ ///
210
+ /// Animation timing function helper
211
+ ///
212
+ /// @group animation
213
+ /// @param {list | string} $value
214
+ ///
215
+ /// @example scss
216
+ /// .box {
217
+ /// @include animation-timing-function(ease-in);
218
+ /// }
219
+ ///
220
+ /// // CSS Output
221
+ /// .box {
222
+ /// -webkit-animation-timing-function: ease-in;
223
+ /// -moz-animation-timing-function: ease-in;
224
+ /// -o-animation-timing-function: ease-in;
225
+ /// animation-timing-function: ease-in;
226
+ /// }
227
+ ///
228
+ @mixin animation-timing-function($value...) {
229
+ -webkit-animation-timing-function: $value;
230
+ -moz-animation-timing-function: $value;
231
+ -o-animation-timing-function: $value;
232
+ animation-timing-function: $value;
233
+ }
234
+
235
+ ///
236
+ /// Keyframes helper helper
237
+ ///
238
+ /// @group animation
239
+ /// @param {string} $value
240
+ ///
241
+ /// @example scss
242
+ /// @include keyframes(slide_away) {
243
+ /// 0% {
244
+ /// top: 5%;
245
+ /// }
246
+ ///
247
+ /// 50% {
248
+ /// top: 200%;
249
+ /// }
250
+ ///
251
+ /// 100% {
252
+ /// top: -10%;
253
+ /// }
254
+ /// }
255
+ ///
256
+ /// // CSS Output
257
+ /// @-webkit-keyframes slide_away {
258
+ /// 0% {
259
+ /// top: 5%;
260
+ /// }
261
+ /// 50% {
262
+ /// top: 200%;
263
+ /// }
264
+ /// 100% {
265
+ /// top: -10%;
266
+ /// }
267
+ /// }
268
+ ///
269
+ /// @-moz-keyframes slide_away {
270
+ /// 0% {
271
+ /// top: 5%;
272
+ /// }
273
+ /// 50% {
274
+ /// top: 200%;
275
+ /// }
276
+ /// 100% {
277
+ /// top: -10%;
278
+ /// }
279
+ /// }
280
+ ///
281
+ /// @-o-keyframes slide_away {
282
+ /// 0% {
283
+ /// top: 5%;
284
+ /// }
285
+ /// 50% {
286
+ /// top: 200%;
287
+ /// }
288
+ /// 100% {
289
+ /// top: -10%;
290
+ /// }
291
+ /// }
292
+ ///
293
+ /// @keyframes slide_away {
294
+ /// 0% {
295
+ /// top: 5%;
296
+ /// }
297
+ /// 50% {
298
+ /// top: 200%;
299
+ /// }
300
+ /// 100% {
301
+ /// top: -10%;
302
+ /// }
303
+ /// }
304
+ ///
305
+ @mixin keyframes($name) {
306
+ @-webkit-keyframes #{$name} {
307
+ @content
308
+ }
309
+ @-moz-keyframes #{$name} {
310
+ @content
311
+ }
312
+ @-o-keyframes #{$name} {
313
+ @content
314
+ }
315
+ @keyframes #{$name} {
316
+ @content
317
+ }
318
+ }