bobjoll 0.0.4

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.
Files changed (96) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/package.json +25 -0
  4. package/scss/layout/_footer.scss +10 -0
  5. package/scss/layout/_header.scss +10 -0
  6. package/scss/modules/_fonts.scss +26 -0
  7. package/scss/modules/_reset.scss +219 -0
  8. package/scss/modules/bourbon/addons/_clearfix.scss +25 -0
  9. package/scss/modules/bourbon/addons/_ellipsis.scss +30 -0
  10. package/scss/modules/bourbon/addons/_position.scss +48 -0
  11. package/scss/modules/bourbon/addons/_prefixer.scss +66 -0
  12. package/scss/modules/bourbon/addons/_size.scss +51 -0
  13. package/scss/modules/bourbon/addons/_timing-functions.scss +34 -0
  14. package/scss/modules/bourbon/addons/_triangle.scss +63 -0
  15. package/scss/modules/bourbon/css3/_calc.scss +4 -0
  16. package/scss/modules/bourbon/css3/_flex-box.scss +287 -0
  17. package/scss/modules/bourbon/css3/_keyframes.scss +36 -0
  18. package/scss/modules/bourbon/css3/_linear-gradient.scss +38 -0
  19. package/scss/modules/bourbon/css3/_placeholder.scss +8 -0
  20. package/scss/modules/bourbon/css3/_selection.scss +42 -0
  21. package/scss/modules/bourbon/css3/_transition.scss +71 -0
  22. package/scss/modules/mixins/_component.scss +9 -0
  23. package/scss/modules/mixins/_grid.scss +75 -0
  24. package/scss/modules/mixins/_helpers.scss +224 -0
  25. package/scss/modules/variables/_colors.scss +447 -0
  26. package/scss/modules/variables/_general.scss +235 -0
  27. package/scss/partials/_accordion-v1-0.scss +165 -0
  28. package/scss/partials/_autocomplete-v1-0.scss +55 -0
  29. package/scss/partials/_general-v1-0.scss +51 -0
  30. package/scss/partials/_grid-v1-0.scss +109 -0
  31. package/scss/partials/_helper-v1-0.scss +299 -0
  32. package/scss/partials/_icon-v2-0.scss +323 -0
  33. package/scss/partials/_list-v1-0.scss +100 -0
  34. package/scss/partials/_modal-v1-0.scss +159 -0
  35. package/scss/partials/_notification-v1-1.scss +297 -0
  36. package/scss/partials/_progress-bar-v1.0.scss +25 -0
  37. package/scss/partials/_range-v1.0.scss +75 -0
  38. package/scss/partials/_tooltipFixed-v1.0.scss +128 -0
  39. package/scss/partials/_typography-v1-0.scss +201 -0
  40. package/scss/partials/animations/_fade.scss +23 -0
  41. package/scss/partials/animations/_rotate.scss +11 -0
  42. package/scss/partials/animations/_scale.scss +23 -0
  43. package/scss/partials/animations/_slide.scss +31 -0
  44. package/scss/partials/button-v4-0/_component.scss +304 -0
  45. package/scss/partials/form/_checkbox-and-radio-v1-0.scss +187 -0
  46. package/scss/partials/form/_dropdowns-v1-0.scss +323 -0
  47. package/scss/partials/form/_general-v1-0.scss +166 -0
  48. package/scss/partials/form/_group-v1-0.scss +157 -0
  49. package/scss/partials/form/_password-v1-0.scss +28 -0
  50. package/scss/partials/form/_switch-v1-0.scss +128 -0
  51. package/scss/partials/form/_upload-v1-0.scss +91 -0
  52. package/ts/library/common.ts +30 -0
  53. package/ts/library/cookie.ts +47 -0
  54. package/ts/library/delegate.ts +122 -0
  55. package/ts/library/dom.ts +124 -0
  56. package/ts/library/event.ts +138 -0
  57. package/ts/library/extend.js +32 -0
  58. package/ts/library/gr/dom.q.ts +12 -0
  59. package/ts/library/gr/social/dependency/twitter_pu.js +66 -0
  60. package/ts/library/gr/social/facebook.ts +154 -0
  61. package/ts/library/gr/social/google.ts +127 -0
  62. package/ts/library/gr/social/index.ts +35 -0
  63. package/ts/library/gr/social/twitter.ts +65 -0
  64. package/ts/library/helpers.ts +9 -0
  65. package/ts/library/number-abbreviate.js +57 -0
  66. package/ts/library/settings.ts +7 -0
  67. package/ts/library/storage.ts +131 -0
  68. package/ts/library/svg4everybody.legacy.js +122 -0
  69. package/ts/partials/accordion-v1.0.ts +104 -0
  70. package/ts/partials/accordionTabs-v1.0.ts +27 -0
  71. package/ts/partials/alert-v1.0.ts +51 -0
  72. package/ts/partials/copy-v1.0.ts +17 -0
  73. package/ts/partials/countdown-v1.0.ts +119 -0
  74. package/ts/partials/dropdown-v1.0.ts +247 -0
  75. package/ts/partials/hbs-v1.0.ts +9 -0
  76. package/ts/partials/modal-v1.0.ts +213 -0
  77. package/ts/partials/notifications-v1.1.ts +376 -0
  78. package/ts/partials/notify-v1.0.ts +746 -0
  79. package/ts/partials/password-v1.0.ts +19 -0
  80. package/ts/partials/popover-v1.0.ts +125 -0
  81. package/ts/partials/progress-bar-v1.0.ts +29 -0
  82. package/ts/partials/scroll-v1.0.ts +169 -0
  83. package/ts/partials/scrollable-v1.0.ts +90 -0
  84. package/ts/partials/tabs-v1.0.ts +79 -0
  85. package/ts/partials/tags-v1.0.ts +21 -0
  86. package/ts/partials/trigger-v2.0.ts +155 -0
  87. package/ts/partials/upload-v1.0.ts +17 -0
  88. package/ts/views/hbs/alert-v1.0/element.html.hbs +35 -0
  89. package/ts/views/hbs/countdown-v1.0/countdown-inner.hbs +39 -0
  90. package/ts/views/hbs/countdown-v1.0/countdown.hbs +4 -0
  91. package/ts/views/hbs/dropdown-v1.0/element.html.hbs +70 -0
  92. package/ts/views/hbs/helpers.js +58 -0
  93. package/ts/views/hbs/modal-v1.0/element.html.hbs +17 -0
  94. package/ts/views/hbs/notification-v1.1/element-disable.html.hbs +26 -0
  95. package/ts/views/hbs/notification-v1.1/element.html.hbs +43 -0
  96. package/ts/views/hbs/notification-v1.1/wrapper.html.hbs +4 -0
@@ -0,0 +1,287 @@
1
+ // CSS3 Flexible Box Model and property defaults
2
+
3
+ // Custom shorthand notation for flexbox
4
+ @mixin box($orient: inline-axis, $pack: start, $align: stretch) {
5
+ @include display-box;
6
+ @include box-orient($orient);
7
+ @include box-pack($pack);
8
+ @include box-align($align);
9
+ }
10
+
11
+ @mixin display-box {
12
+ display: -webkit-box;
13
+ display: -moz-box;
14
+ display: -ms-flexbox; // IE 10
15
+ display: box;
16
+ }
17
+
18
+ @mixin box-orient($orient: inline-axis) {
19
+ // horizontal|vertical|inline-axis|block-axis|inherit
20
+ @include prefixer(box-orient, $orient, webkit moz spec);
21
+ }
22
+
23
+ @mixin box-pack($pack: start) {
24
+ // start|end|center|justify
25
+ @include prefixer(box-pack, $pack, webkit moz spec);
26
+ -ms-flex-pack: $pack; // IE 10
27
+ }
28
+
29
+ @mixin box-align($align: stretch) {
30
+ // start|end|center|baseline|stretch
31
+ @include prefixer(box-align, $align, webkit moz spec);
32
+ -ms-flex-align: $align; // IE 10
33
+ }
34
+
35
+ @mixin box-direction($direction: normal) {
36
+ // normal|reverse|inherit
37
+ @include prefixer(box-direction, $direction, webkit moz spec);
38
+ -ms-flex-direction: $direction; // IE 10
39
+ }
40
+
41
+ @mixin box-lines($lines: single) {
42
+ // single|multiple
43
+ @include prefixer(box-lines, $lines, webkit moz spec);
44
+ }
45
+
46
+ @mixin box-ordinal-group($int: 1) {
47
+ @include prefixer(box-ordinal-group, $int, webkit moz spec);
48
+ -ms-flex-order: $int; // IE 10
49
+ }
50
+
51
+ @mixin box-flex($value: 0) {
52
+ @include prefixer(box-flex, $value, webkit moz spec);
53
+ -ms-flex: $value; // IE 10
54
+ }
55
+
56
+ @mixin box-flex-group($int: 1) {
57
+ @include prefixer(box-flex-group, $int, webkit moz spec);
58
+ }
59
+
60
+ // CSS3 Flexible Box Model and property defaults
61
+ // Unified attributes for 2009, 2011, and 2012 flavours.
62
+
63
+ // 2009 - display (box | inline-box)
64
+ // 2011 - display (flexbox | inline-flexbox)
65
+ // 2012 - display (flex | inline-flex)
66
+ @mixin display($value) {
67
+ // flex | inline-flex
68
+ @if $value == "flex" {
69
+ // 2009
70
+ display: -webkit-box;
71
+ display: -moz-box;
72
+ display: box;
73
+
74
+ // 2012
75
+ display: -webkit-flex;
76
+ display: -moz-flex;
77
+ display: -ms-flexbox; // 2011 (IE 10)
78
+ display: flex;
79
+ } @else if $value == "inline-flex" {
80
+ display: -webkit-inline-box;
81
+ display: -moz-inline-box;
82
+ display: inline-box;
83
+
84
+ display: -webkit-inline-flex;
85
+ display: -moz-inline-flex;
86
+ display: -ms-inline-flexbox;
87
+ display: inline-flex;
88
+ } @else {
89
+ display: $value;
90
+ }
91
+ }
92
+
93
+ // 2009 - box-flex (integer)
94
+ // 2011 - flex (decimal | width decimal)
95
+ // 2012 - flex (integer integer width)
96
+ @mixin flex($value) {
97
+
98
+ // Grab flex-grow for older browsers.
99
+ $flex-grow: nth($value, 1);
100
+
101
+ // 2009
102
+ @include prefixer(box-flex, $flex-grow, webkit moz spec);
103
+
104
+ // 2011 (IE 10), 2012
105
+ @include prefixer(flex, $value, webkit moz ms spec);
106
+ }
107
+
108
+ // 2009 - box-orient ( horizontal | vertical | inline-axis | block-axis)
109
+ // - box-direction (normal | reverse)
110
+ // 2011 - flex-direction (row | row-reverse | column | column-reverse)
111
+ // 2012 - flex-direction (row | row-reverse | column | column-reverse)
112
+ @mixin flex-direction($value: row) {
113
+
114
+ // Alt values.
115
+ $value-2009: $value;
116
+ $value-2011: $value;
117
+ $direction: normal;
118
+
119
+ @if $value == row {
120
+ $value-2009: horizontal;
121
+ } @else if $value == "row-reverse" {
122
+ $value-2009: horizontal;
123
+ $direction: reverse;
124
+ } @else if $value == column {
125
+ $value-2009: vertical;
126
+ } @else if $value == "column-reverse" {
127
+ $value-2009: vertical;
128
+ $direction: reverse;
129
+ }
130
+
131
+ // 2009
132
+ @include prefixer(box-orient, $value-2009, webkit moz spec);
133
+ @include prefixer(box-direction, $direction, webkit moz spec);
134
+
135
+ // 2012
136
+ @include prefixer(flex-direction, $value, webkit moz spec);
137
+
138
+ // 2011 (IE 10)
139
+ -ms-flex-direction: $value;
140
+ }
141
+
142
+ // 2009 - box-lines (single | multiple)
143
+ // 2011 - flex-wrap (nowrap | wrap | wrap-reverse)
144
+ // 2012 - flex-wrap (nowrap | wrap | wrap-reverse)
145
+ @mixin flex-wrap($value: nowrap) {
146
+ // Alt values
147
+ $alt-value: $value;
148
+ @if $value == nowrap {
149
+ $alt-value: single;
150
+ } @else if $value == wrap {
151
+ $alt-value: multiple;
152
+ } @else if $value == "wrap-reverse" {
153
+ $alt-value: multiple;
154
+ }
155
+
156
+ @include prefixer(box-lines, $alt-value, webkit moz spec);
157
+ @include prefixer(flex-wrap, $value, webkit moz ms spec);
158
+ }
159
+
160
+ // 2009 - TODO: parse values into flex-direction/flex-wrap
161
+ // 2011 - TODO: parse values into flex-direction/flex-wrap
162
+ // 2012 - flex-flow (flex-direction || flex-wrap)
163
+ @mixin flex-flow($value) {
164
+ @include prefixer(flex-flow, $value, webkit moz spec);
165
+ }
166
+
167
+ // 2009 - box-ordinal-group (integer)
168
+ // 2011 - flex-order (integer)
169
+ // 2012 - order (integer)
170
+ @mixin order($int: 0) {
171
+ // 2009
172
+ @include prefixer(box-ordinal-group, $int, webkit moz spec);
173
+
174
+ // 2012
175
+ @include prefixer(order, $int, webkit moz spec);
176
+
177
+ // 2011 (IE 10)
178
+ -ms-flex-order: $int;
179
+ }
180
+
181
+ // 2012 - flex-grow (number)
182
+ @mixin flex-grow($number: 0) {
183
+ @include prefixer(flex-grow, $number, webkit moz spec);
184
+ -ms-flex-positive: $number;
185
+ }
186
+
187
+ // 2012 - flex-shrink (number)
188
+ @mixin flex-shrink($number: 1) {
189
+ @include prefixer(flex-shrink, $number, webkit moz spec);
190
+ -ms-flex-negative: $number;
191
+ }
192
+
193
+ // 2012 - flex-basis (number)
194
+ @mixin flex-basis($width: auto) {
195
+ @include prefixer(flex-basis, $width, webkit moz spec);
196
+ -ms-flex-preferred-size: $width;
197
+ }
198
+
199
+ // 2009 - box-pack (start | end | center | justify)
200
+ // 2011 - flex-pack (start | end | center | justify)
201
+ // 2012 - justify-content (flex-start | flex-end | center | space-between | space-around)
202
+ @mixin justify-content($value: flex-start) {
203
+
204
+ // Alt values.
205
+ $alt-value: $value;
206
+ @if $value == "flex-start" {
207
+ $alt-value: start;
208
+ } @else if $value == "flex-end" {
209
+ $alt-value: end;
210
+ } @else if $value == "space-between" {
211
+ $alt-value: justify;
212
+ } @else if $value == "space-around" {
213
+ $alt-value: distribute;
214
+ }
215
+
216
+ // 2009
217
+ @include prefixer(box-pack, $alt-value, webkit moz spec);
218
+
219
+ // 2012
220
+ @include prefixer(justify-content, $value, webkit moz ms o spec);
221
+
222
+ // 2011 (IE 10)
223
+ -ms-flex-pack: $alt-value;
224
+ }
225
+
226
+ // 2009 - box-align (start | end | center | baseline | stretch)
227
+ // 2011 - flex-align (start | end | center | baseline | stretch)
228
+ // 2012 - align-items (flex-start | flex-end | center | baseline | stretch)
229
+ @mixin align-items($value: stretch) {
230
+
231
+ $alt-value: $value;
232
+
233
+ @if $value == "flex-start" {
234
+ $alt-value: start;
235
+ } @else if $value == "flex-end" {
236
+ $alt-value: end;
237
+ }
238
+
239
+ // 2009
240
+ @include prefixer(box-align, $alt-value, webkit moz spec);
241
+
242
+ // 2012
243
+ @include prefixer(align-items, $value, webkit moz ms o spec);
244
+
245
+ // 2011 (IE 10)
246
+ -ms-flex-align: $alt-value;
247
+ }
248
+
249
+ // 2011 - flex-item-align (auto | start | end | center | baseline | stretch)
250
+ // 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch)
251
+ @mixin align-self($value: auto) {
252
+
253
+ $value-2011: $value;
254
+ @if $value == "flex-start" {
255
+ $value-2011: start;
256
+ } @else if $value == "flex-end" {
257
+ $value-2011: end;
258
+ }
259
+
260
+ // 2012
261
+ @include prefixer(align-self, $value, webkit moz spec);
262
+
263
+ // 2011 (IE 10)
264
+ -ms-flex-item-align: $value-2011;
265
+ }
266
+
267
+ // 2011 - flex-line-pack (start | end | center | justify | distribute | stretch)
268
+ // 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch)
269
+ @mixin align-content($value: stretch) {
270
+
271
+ $value-2011: $value;
272
+ @if $value == "flex-start" {
273
+ $value-2011: start;
274
+ } @else if $value == "flex-end" {
275
+ $value-2011: end;
276
+ } @else if $value == "space-between" {
277
+ $value-2011: justify;
278
+ } @else if $value == "space-around" {
279
+ $value-2011: distribute;
280
+ }
281
+
282
+ // 2012
283
+ @include prefixer(align-content, $value, webkit moz spec);
284
+
285
+ // 2011 (IE 10)
286
+ -ms-flex-line-pack: $value-2011;
287
+ }
@@ -0,0 +1,36 @@
1
+ // Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
2
+ @mixin keyframes($name) {
3
+ $original-prefix-for-webkit: $prefix-for-webkit;
4
+ $original-prefix-for-mozilla: $prefix-for-mozilla;
5
+ $original-prefix-for-microsoft: $prefix-for-microsoft;
6
+ $original-prefix-for-opera: $prefix-for-opera;
7
+ $original-prefix-for-spec: $prefix-for-spec;
8
+
9
+ @if $original-prefix-for-webkit {
10
+ @include disable-prefix-for-all();
11
+ $prefix-for-webkit: true !global;
12
+ @-webkit-keyframes #{$name} {
13
+ @content;
14
+ }
15
+ }
16
+
17
+ @if $original-prefix-for-mozilla {
18
+ @include disable-prefix-for-all();
19
+ $prefix-for-mozilla: true !global;
20
+ @-moz-keyframes #{$name} {
21
+ @content;
22
+ }
23
+ }
24
+
25
+ $prefix-for-webkit: $original-prefix-for-webkit !global;
26
+ $prefix-for-mozilla: $original-prefix-for-mozilla !global;
27
+ $prefix-for-microsoft: $original-prefix-for-microsoft !global;
28
+ $prefix-for-opera: $original-prefix-for-opera !global;
29
+ $prefix-for-spec: $original-prefix-for-spec !global;
30
+
31
+ @if $original-prefix-for-spec {
32
+ @keyframes #{$name} {
33
+ @content;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,38 @@
1
+ @mixin linear-gradient($pos, $g1, $g2: null,
2
+ $g3: null, $g4: null,
3
+ $g5: null, $g6: null,
4
+ $g7: null, $g8: null,
5
+ $g9: null, $g10: null,
6
+ $fallback: null) {
7
+ // Detect what type of value exists in $pos
8
+ $pos-type: type-of(nth($pos, 1));
9
+ $pos-spec: null;
10
+ $pos-degree: null;
11
+
12
+ // If $pos is missing from mixin, reassign vars and add default position
13
+ @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
14
+ $g10: $g9; $g9: $g8; $g8: $g7; $g7: $g6; $g6: $g5;
15
+ $g5: $g4; $g4: $g3; $g3: $g2; $g2: $g1; $g1: $pos;
16
+ $pos: null;
17
+ }
18
+
19
+ @if $pos {
20
+ $positions: _linear-positions-parser($pos);
21
+ $pos-degree: nth($positions, 1);
22
+ $pos-spec: nth($positions, 2);
23
+ }
24
+
25
+ $full: $g1, $g2, $g3, $g4, $g5, $g6, $g7, $g8, $g9, $g10;
26
+
27
+ // Set $g1 as the default fallback color
28
+ $fallback-color: nth($g1, 1);
29
+
30
+ // If $fallback is a color use that color as the fallback color
31
+ @if (type-of($fallback) == color) or ($fallback == "transparent") {
32
+ $fallback-color: $fallback;
33
+ }
34
+
35
+ background-color: $fallback-color;
36
+ background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome
37
+ background-image: unquote("linear-gradient(#{$pos-spec}#{$full})");
38
+ }
@@ -0,0 +1,8 @@
1
+ @mixin placeholder {
2
+ $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
3
+ @each $placeholder in $placeholders {
4
+ &:#{$placeholder}-placeholder {
5
+ @content;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,42 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Outputs the spec and prefixed versions of the `::selection` pseudo-element.
4
+ ///
5
+ /// @param {Bool} $current-selector [false]
6
+ /// If set to `true`, it takes the current element into consideration.
7
+ ///
8
+ /// @example scss - Usage
9
+ /// .element {
10
+ /// @include selection(true) {
11
+ /// background-color: #ffbb52;
12
+ /// }
13
+ /// }
14
+ ///
15
+ /// @example css - CSS Output
16
+ /// .element::-moz-selection {
17
+ /// background-color: #ffbb52;
18
+ /// }
19
+ ///
20
+ /// .element::selection {
21
+ /// background-color: #ffbb52;
22
+ /// }
23
+
24
+ @mixin selection($current-selector: false) {
25
+ @if $current-selector {
26
+ &::-moz-selection {
27
+ @content;
28
+ }
29
+
30
+ &::selection {
31
+ @content;
32
+ }
33
+ } @else {
34
+ ::-moz-selection {
35
+ @content;
36
+ }
37
+
38
+ ::selection {
39
+ @content;
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,71 @@
1
+ // Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
2
+ // Example: @include transition (all 2s ease-in-out);
3
+ // @include transition (opacity 1s ease-in 2s, width 2s ease-out);
4
+ // @include transition-property (transform, opacity);
5
+
6
+ @mixin transition($properties...) {
7
+ // Fix for vendor-prefix transform property
8
+ $needs-prefixes: false;
9
+ $webkit: ();
10
+ $moz: ();
11
+ $spec: ();
12
+
13
+ // Create lists for vendor-prefixed transform
14
+ @each $list in $properties {
15
+ @if nth($list, 1) == "transform" {
16
+ $needs-prefixes: true;
17
+ $list1: -webkit-transform;
18
+ $list2: -moz-transform;
19
+ $list3: ();
20
+
21
+ @each $var in $list {
22
+ $list3: join($list3, $var);
23
+
24
+ @if $var != "transform" {
25
+ $list1: join($list1, $var);
26
+ $list2: join($list2, $var);
27
+ }
28
+ }
29
+
30
+ $webkit: append($webkit, $list1);
31
+ $moz: append($moz, $list2);
32
+ $spec: append($spec, $list3);
33
+ } @else {
34
+ $webkit: append($webkit, $list, comma);
35
+ $moz: append($moz, $list, comma);
36
+ $spec: append($spec, $list, comma);
37
+ }
38
+ }
39
+
40
+ @if $needs-prefixes {
41
+ -webkit-transition: $webkit;
42
+ -moz-transition: $moz;
43
+ transition: $spec;
44
+ } @else {
45
+ @if length($properties) >= 1 {
46
+ @include prefixer(transition, $properties, webkit moz spec);
47
+ } @else {
48
+ $properties: all 0.15s ease-out 0s;
49
+ @include prefixer(transition, $properties, webkit moz spec);
50
+ }
51
+ }
52
+ }
53
+
54
+ @mixin transition-property($properties...) {
55
+ -webkit-transition-property: transition-property-names($properties, "webkit");
56
+ -moz-transition-property: transition-property-names($properties, "moz");
57
+ transition-property: transition-property-names($properties, false);
58
+ }
59
+
60
+ @mixin transition-duration($times...) {
61
+ @include prefixer(transition-duration, $times, webkit moz spec);
62
+ }
63
+
64
+ @mixin transition-timing-function($motions...) {
65
+ // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
66
+ @include prefixer(transition-timing-function, $motions, webkit moz spec);
67
+ }
68
+
69
+ @mixin transition-delay($times...) {
70
+ @include prefixer(transition-delay, $times, webkit moz spec);
71
+ }
@@ -0,0 +1,9 @@
1
+ @mixin setComponent($placeholder) {
2
+ %#{$placeholder} {
3
+ @content;
4
+ }
5
+ }
6
+
7
+ @mixin getComponent($placeholder) {
8
+ @extend %#{$placeholder};
9
+ }
@@ -0,0 +1,75 @@
1
+ @mixin grid($grid-columns: 12) {
2
+ $grid-media-width: map-values($breakpoints);
3
+ $grid-media-mode: map-keys($breakpoints);
4
+
5
+ @each $current-media-width in $grid-media-width {
6
+ $i: index($grid-media-width, $current-media-width);
7
+ $mode: nth($grid-media-mode, $i);
8
+
9
+ @include grid-media($current-media-width, $mode, $grid-columns);
10
+
11
+ @for $i from 1 through $grid-columns {
12
+ .col__#{$mode}--#{$i} {
13
+ @extend %col;
14
+ }
15
+ }
16
+ }
17
+ }
18
+
19
+ @mixin grid-media($grid-media-width, $grid-media-mode, $grid-columns) {
20
+ @if $grid-media-mode == 'xs' {
21
+ @include grid-columns($grid-media-mode, $grid-columns);
22
+ }
23
+ @media screen and (min-width: ($grid-media-width + 0px)) {
24
+ @include grid-columns($grid-media-mode, $grid-columns);
25
+ }
26
+ }
27
+
28
+ @mixin grid-columns($grid-media-mode, $grid-columns) {
29
+ $grid-mode-list: '' 'offset';
30
+ @each $current-grid-mode in $grid-mode-list {
31
+ @if $current-grid-mode != '' {
32
+ @for $i from $grid-columns through 0 {
33
+ .col__#{$grid-media-mode}--#{$current-grid-mode}-#{$i} {
34
+ @include grid-style($i, $current-grid-mode);
35
+ }
36
+ }
37
+ } @else {
38
+ @for $i from $grid-columns through 1 {
39
+ .col__#{$grid-media-mode}--#{$i} {
40
+ @include grid-style($i, $current-grid-mode);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ @mixin grid-style($span: $columns of $container-columns, $mode: '') {
48
+ $columns: nth($span, 1);
49
+ $container-columns: $grid-columns;
50
+ $percentage: $columns / $container-columns * 100%;
51
+
52
+ @if $percentage == 0% and $mode != offset {
53
+ $percentage: auto;
54
+ }
55
+
56
+ @if $mode == '' {
57
+ @if $grid-mode == 'flexbox' {
58
+ width: $percentage;
59
+ } @else if $grid-mode == 'float' {
60
+ width: $percentage;
61
+ }
62
+ }
63
+
64
+ @if $mode == pull and $grid--pull {
65
+ right: $percentage;
66
+ }
67
+
68
+ @if $mode == push and $grid--push {
69
+ left: $percentage;
70
+ }
71
+
72
+ @if $mode == offset and $grid--offset {
73
+ margin-left: $percentage;
74
+ }
75
+ }