sempli-website-lib 5.3.2 → 5.3.4-beta

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 (116) hide show
  1. package/package.json +2 -3
  2. package/styles/master-app.scss +10 -10
  3. package/styles/master-landing.scss +10 -10
  4. package/styles/modules/_functions.scss +2 -2
  5. package/styles/vendor/_animate.scss +3 -0
  6. package/styles/vendor/_compass.scss +4 -0
  7. package/styles/vendor/_lemonade.scss +38 -0
  8. package/styles/vendor/_modules_export.scss +10 -10
  9. package/styles/vendor/animation/_animate.scss +31 -0
  10. package/styles/vendor/animation/_core.scss +127 -0
  11. package/styles/vendor/animation/_shared.scss +22 -0
  12. package/styles/vendor/animation/animate/_attention-seekers.scss +152 -0
  13. package/styles/vendor/animation/animate/_bouncing.scss +3 -0
  14. package/styles/vendor/animation/animate/_classes.scss +21 -0
  15. package/styles/vendor/animation/animate/_fading.scss +3 -0
  16. package/styles/vendor/animation/animate/_flippers.scss +87 -0
  17. package/styles/vendor/animation/animate/_lightspeed.scss +24 -0
  18. package/styles/vendor/animation/animate/_rotating.scss +3 -0
  19. package/styles/vendor/animation/animate/_specials.scss +42 -0
  20. package/styles/vendor/animation/animate/bouncing/_bouncing-entrances.scss +68 -0
  21. package/styles/vendor/animation/animate/bouncing/_bouncing-exits.scss +60 -0
  22. package/styles/vendor/animation/animate/fading/_fading-entrances.scss +86 -0
  23. package/styles/vendor/animation/animate/fading/_fading-exits.scss +86 -0
  24. package/styles/vendor/animation/animate/rotating/_rotating-entrances.scss +58 -0
  25. package/styles/vendor/animation/animate/rotating/_rotating-exits.scss +58 -0
  26. package/styles/vendor/compass/_css3.scss +22 -0
  27. package/styles/vendor/compass/_functions.scss +7 -0
  28. package/styles/vendor/compass/_layout.scss +3 -0
  29. package/styles/vendor/compass/_reset-legacy.scss +3 -0
  30. package/styles/vendor/compass/_reset.scss +3 -0
  31. package/styles/vendor/compass/_support.scss +40 -0
  32. package/styles/vendor/compass/_typography.scss +4 -0
  33. package/styles/vendor/compass/_utilities.scss +9 -0
  34. package/styles/vendor/compass/css3/_animation.scss +2 -0
  35. package/styles/vendor/compass/css3/_appearance.scss +16 -0
  36. package/styles/vendor/compass/css3/_background-clip.scss +43 -0
  37. package/styles/vendor/compass/css3/_background-origin.scss +42 -0
  38. package/styles/vendor/compass/css3/_background-size.scss +26 -0
  39. package/styles/vendor/compass/css3/_border-radius.scss +130 -0
  40. package/styles/vendor/compass/css3/_box-shadow.scss +76 -0
  41. package/styles/vendor/compass/css3/_box-sizing.scss +18 -0
  42. package/styles/vendor/compass/css3/_box.scss +111 -0
  43. package/styles/vendor/compass/css3/_columns.scss +157 -0
  44. package/styles/vendor/compass/css3/_filter.scss +24 -0
  45. package/styles/vendor/compass/css3/_flexbox.scss +86 -0
  46. package/styles/vendor/compass/css3/_font-face.scss +48 -0
  47. package/styles/vendor/compass/css3/_hyphenation.scss +77 -0
  48. package/styles/vendor/compass/css3/_images.scss +133 -0
  49. package/styles/vendor/compass/css3/_inline-block.scss +22 -0
  50. package/styles/vendor/compass/css3/_opacity.scss +19 -0
  51. package/styles/vendor/compass/css3/_pie.scss +73 -0
  52. package/styles/vendor/compass/css3/_regions.scss +22 -0
  53. package/styles/vendor/compass/css3/_shared.scss +38 -0
  54. package/styles/vendor/compass/css3/_text-shadow.scss +88 -0
  55. package/styles/vendor/compass/css3/_transform-legacy.scss +87 -0
  56. package/styles/vendor/compass/css3/_transform.scss +598 -0
  57. package/styles/vendor/compass/css3/_transition.scss +222 -0
  58. package/styles/vendor/compass/css3/_user-interface.scss +47 -0
  59. package/styles/vendor/compass/functions/_colors.scss +37 -0
  60. package/styles/vendor/compass/functions/_constants.scss +18 -0
  61. package/styles/vendor/compass/functions/_cross_browser_support.scss +72 -0
  62. package/styles/vendor/compass/functions/_display.scss +36 -0
  63. package/styles/vendor/compass/functions/_font_files.scss +95 -0
  64. package/styles/vendor/compass/functions/_gradient_support.scss +15 -0
  65. package/styles/vendor/compass/functions/_lists.scss +90 -0
  66. package/styles/vendor/compass/layout/_grid-background.scss +178 -0
  67. package/styles/vendor/compass/layout/_sticky-footer.scss +23 -0
  68. package/styles/vendor/compass/layout/_stretching.scss +24 -0
  69. package/styles/vendor/compass/reset/_utilities-legacy.scss +135 -0
  70. package/styles/vendor/compass/reset/_utilities.scss +142 -0
  71. package/styles/vendor/compass/typography/_links.scss +3 -0
  72. package/styles/vendor/compass/typography/_lists.scss +4 -0
  73. package/styles/vendor/compass/typography/_text.scss +4 -0
  74. package/styles/vendor/compass/typography/_vertical_rhythm.scss +229 -0
  75. package/styles/vendor/compass/typography/links/_hover-link.scss +5 -0
  76. package/styles/vendor/compass/typography/links/_link-colors.scss +28 -0
  77. package/styles/vendor/compass/typography/links/_unstyled-link.scss +7 -0
  78. package/styles/vendor/compass/typography/lists/_bullets.scss +34 -0
  79. package/styles/vendor/compass/typography/lists/_horizontal-list.scss +61 -0
  80. package/styles/vendor/compass/typography/lists/_inline-block-list.scss +50 -0
  81. package/styles/vendor/compass/typography/lists/_inline-list.scss +44 -0
  82. package/styles/vendor/compass/typography/text/_ellipsis.scss +25 -0
  83. package/styles/vendor/compass/typography/text/_force-wrap.scss +12 -0
  84. package/styles/vendor/compass/typography/text/_nowrap.scss +2 -0
  85. package/styles/vendor/compass/typography/text/_replacement.scss +68 -0
  86. package/styles/vendor/compass/utilities/_color.scss +1 -0
  87. package/styles/vendor/compass/utilities/_general.scss +6 -0
  88. package/styles/vendor/compass/utilities/_links.scss +5 -0
  89. package/styles/vendor/compass/utilities/_lists.scss +6 -0
  90. package/styles/vendor/compass/utilities/_print.scss +17 -0
  91. package/styles/vendor/compass/utilities/_sprites.scss +2 -0
  92. package/styles/vendor/compass/utilities/_tables.scss +3 -0
  93. package/styles/vendor/compass/utilities/_text.scss +5 -0
  94. package/styles/vendor/compass/utilities/color/_contrast.scss +28 -0
  95. package/styles/vendor/compass/utilities/general/_clearfix.scss +44 -0
  96. package/styles/vendor/compass/utilities/general/_float.scss +30 -0
  97. package/styles/vendor/compass/utilities/general/_hacks.scss +46 -0
  98. package/styles/vendor/compass/utilities/general/_min.scss +16 -0
  99. package/styles/vendor/compass/utilities/general/_reset.scss +2 -0
  100. package/styles/vendor/compass/utilities/general/_tabs.scss +1 -0
  101. package/styles/vendor/compass/utilities/general/_tag-cloud.scss +18 -0
  102. package/styles/vendor/compass/utilities/links/_hover-link.scss +3 -0
  103. package/styles/vendor/compass/utilities/links/_link-colors.scss +3 -0
  104. package/styles/vendor/compass/utilities/links/_unstyled-link.scss +3 -0
  105. package/styles/vendor/compass/utilities/lists/_bullets.scss +3 -0
  106. package/styles/vendor/compass/utilities/lists/_horizontal-list.scss +3 -0
  107. package/styles/vendor/compass/utilities/lists/_inline-block-list.scss +3 -0
  108. package/styles/vendor/compass/utilities/lists/_inline-list.scss +3 -0
  109. package/styles/vendor/compass/utilities/sprites/_base.scss +66 -0
  110. package/styles/vendor/compass/utilities/sprites/_sprite-img.scss +79 -0
  111. package/styles/vendor/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -0
  112. package/styles/vendor/compass/utilities/tables/_borders.scss +33 -0
  113. package/styles/vendor/compass/utilities/tables/_scaffolding.scss +9 -0
  114. package/styles/vendor/compass/utilities/text/_ellipsis.scss +3 -0
  115. package/styles/vendor/compass/utilities/text/_nowrap.scss +3 -0
  116. package/styles/vendor/compass/utilities/text/_replacement.scss +3 -0
@@ -0,0 +1,222 @@
1
+ @import "shared";
2
+ @import "../functions";
3
+
4
+ // CSS Transitions
5
+ // Currently only works in Webkit.
6
+ //
7
+ // * expected in CSS3, FireFox 3.6/7 and Opera Presto 2.3
8
+ // * We'll be prepared.
9
+ //
10
+ // Including this submodule sets following defaults for the mixins:
11
+ //
12
+ // $default-transition-property : all
13
+ // $default-transition-duration : 1s
14
+ // $default-transition-function : false
15
+ // $default-transition-delay : false
16
+ //
17
+ // Override them if you like. Timing-function and delay are set to false for browser defaults (ease, 0s).
18
+
19
+ $default-transition-property: all !default;
20
+
21
+ $default-transition-duration: 1s !default;
22
+
23
+ $default-transition-function: false !default;
24
+
25
+ $default-transition-delay: false !default;
26
+
27
+ $transitionable-prefixed-values: transform, transform-origin !default;
28
+
29
+ // One or more properties to transition
30
+ //
31
+ // * for multiple, use a comma-delimited list
32
+ // * also accepts "all" or "none"
33
+
34
+ @mixin transition-property($property-1: $default-transition-property,
35
+ $property-2 : false,
36
+ $property-3 : false,
37
+ $property-4 : false,
38
+ $property-5 : false,
39
+ $property-6 : false,
40
+ $property-7 : false,
41
+ $property-8 : false,
42
+ $property-9 : false,
43
+ $property-10: false
44
+ ) {
45
+ @if type-of($property-1) == string { $property-1: unquote($property-1); }
46
+ $properties: compact($property-1, $property-2, $property-3, $property-4, $property-5, $property-6, $property-7, $property-8, $property-9, $property-10);
47
+ @if $experimental-support-for-webkit { -webkit-transition-property : prefixed-for-transition(-webkit, $properties); }
48
+ @if $experimental-support-for-mozilla { -moz-transition-property : prefixed-for-transition(-moz, $properties); }
49
+ @if $experimental-support-for-opera { -o-transition-property : prefixed-for-transition(-o, $properties); }
50
+ transition-property : $properties;
51
+ }
52
+
53
+ // One or more durations in seconds
54
+ //
55
+ // * for multiple, use a comma-delimited list
56
+ // * these durations will affect the properties in the same list position
57
+
58
+ @mixin transition-duration($duration-1: $default-transition-duration,
59
+ $duration-2 : false,
60
+ $duration-3 : false,
61
+ $duration-4 : false,
62
+ $duration-5 : false,
63
+ $duration-6 : false,
64
+ $duration-7 : false,
65
+ $duration-8 : false,
66
+ $duration-9 : false,
67
+ $duration-10: false
68
+ ) {
69
+ @if type-of($duration-1) == string { $duration-1: unquote($duration-1); }
70
+ $durations: compact($duration-1, $duration-2, $duration-3, $duration-4, $duration-5, $duration-6, $duration-7, $duration-8, $duration-9, $duration-10);
71
+ @include experimental(transition-duration, $durations,
72
+ -moz, -webkit, -o, not(-ms), not(-khtml), official
73
+ );
74
+ }
75
+
76
+ // One or more timing functions
77
+ //
78
+ // * [ ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier(x1, y1, x2, y2)]
79
+ // * For multiple, use a comma-delimited list
80
+ // * These functions will effect the properties in the same list position
81
+
82
+ @mixin transition-timing-function($function-1: $default-transition-function,
83
+ $function-2 : false,
84
+ $function-3 : false,
85
+ $function-4 : false,
86
+ $function-5 : false,
87
+ $function-6 : false,
88
+ $function-7 : false,
89
+ $function-8 : false,
90
+ $function-9 : false,
91
+ $function-10: false
92
+ ) {
93
+ $function-1: unquote($function-1);
94
+ $functions: compact($function-1, $function-2, $function-3, $function-4, $function-5, $function-6, $function-7, $function-8, $function-9, $function-10);
95
+ @include experimental(transition-timing-function, $functions,
96
+ -moz, -webkit, -o, not(-ms), not(-khtml), official
97
+ );
98
+ }
99
+
100
+ // One or more transition-delays in seconds
101
+ //
102
+ // * for multiple, use a comma-delimited list
103
+ // * these delays will effect the properties in the same list position
104
+
105
+ @mixin transition-delay($delay-1: $default-transition-delay,
106
+ $delay-2 : false,
107
+ $delay-3 : false,
108
+ $delay-4 : false,
109
+ $delay-5 : false,
110
+ $delay-6 : false,
111
+ $delay-7 : false,
112
+ $delay-8 : false,
113
+ $delay-9 : false,
114
+ $delay-10: false
115
+ ) {
116
+ @if type-of($delay-1) == string { $delay-1: unquote($delay-1); }
117
+ $delays: compact($delay-1, $delay-2, $delay-3, $delay-4, $delay-5, $delay-6, $delay-7, $delay-8, $delay-9, $delay-10);
118
+ @include experimental(transition-delay, $delays,
119
+ -moz, -webkit, -o, not(-ms), not(-khtml), official
120
+ );
121
+ }
122
+
123
+ // Transition all-in-one shorthand
124
+
125
+ @mixin single-transition(
126
+ $property: $default-transition-property,
127
+ $duration: $default-transition-duration,
128
+ $function: $default-transition-function,
129
+ $delay: $default-transition-delay
130
+ ) {
131
+ @include transition(compact($property $duration $function $delay));
132
+ }
133
+
134
+ @mixin transition(
135
+ $transition-1 : default,
136
+ $transition-2 : false,
137
+ $transition-3 : false,
138
+ $transition-4 : false,
139
+ $transition-5 : false,
140
+ $transition-6 : false,
141
+ $transition-7 : false,
142
+ $transition-8 : false,
143
+ $transition-9 : false,
144
+ $transition-10: false
145
+ ) {
146
+ @if $transition-1 == default {
147
+ $transition-1 : compact($default-transition-property $default-transition-duration $default-transition-function $default-transition-delay);
148
+ }
149
+ $transitions: false;
150
+ @if type-of($transition-1) == list and type-of(nth($transition-1,1)) == list {
151
+ $transitions: join($transition-1, compact($transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10), comma);
152
+ } @else {
153
+ $transitions : compact($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10);
154
+ }
155
+ $delays: comma-list();
156
+ $has-delays: false;
157
+ $webkit-value: comma-list();
158
+ $moz-value: comma-list();
159
+ $o-value: comma-list();
160
+
161
+ // This block can be made considerably simpler at the point in time that
162
+ // we no longer need to deal with the differences in how delays are treated.
163
+ @each $transition in $transitions {
164
+ // Extract the values from the list
165
+ // (this would be cleaner if nth took a 3rd argument to provide a default value).
166
+ $property: nth($transition, 1);
167
+ $duration: false;
168
+ $timing-function: false;
169
+ $delay: false;
170
+ @if length($transition) > 1 { $duration: nth($transition, 2); }
171
+ @if length($transition) > 2 { $timing-function: nth($transition, 3); }
172
+ @if length($transition) > 3 { $delay: nth($transition, 4); $has-delays: true; }
173
+
174
+ // If a delay is provided without a timing function
175
+ @if is-time($timing-function) and not($delay) { $delay: $timing-function; $timing-function: false; $has-delays: true; }
176
+
177
+ // Keep a list of delays in case one is specified
178
+ $delays: append($delays, if($delay, $delay, 0s));
179
+
180
+ $webkit-value: append($webkit-value, compact((prefixed-for-transition(-webkit, $property) $duration $timing-function)...));
181
+ $moz-value: append( $moz-value, compact((prefixed-for-transition( -moz, $property) $duration $timing-function $delay)...));
182
+ $o-value: append( $o-value, compact((prefixed-for-transition( -o, $property) $duration $timing-function $delay)...));
183
+ }
184
+
185
+ @if $experimental-support-for-webkit { -webkit-transition : $webkit-value;
186
+ // old webkit doesn't support the delay parameter in the shorthand so we progressively enhance it.
187
+ @if $has-delays { -webkit-transition-delay : $delays; } }
188
+ @if $experimental-support-for-mozilla { -moz-transition : $moz-value; }
189
+ @if $experimental-support-for-opera { -o-transition : $o-value; }
190
+ transition : $transitions;
191
+ }
192
+
193
+ // coerce a list to be comma delimited or make a new, empty comma delimited list.
194
+ @function comma-list($list: ()) {
195
+ @return join((), $list, comma);
196
+ }
197
+
198
+ // Returns `$property` with the given prefix if it is found in `$transitionable-prefixed-values`.
199
+ @function prefixed-for-transition($prefix, $property) {
200
+ @if type-of($property) == list {
201
+ $new-list: comma-list();
202
+ @each $v in $property {
203
+ $new-list: append($new-list, prefixed-for-transition($prefix, $v));
204
+ }
205
+ @return $new-list;
206
+ } @else {
207
+ @if index($transitionable-prefixed-values, $property) {
208
+ @return #{$prefix}-#{$property};
209
+ } @else {
210
+ @return $property;
211
+ }
212
+ }
213
+ }
214
+
215
+ // Checks if the value given is a unit of time.
216
+ @function is-time($value) {
217
+ @if type-of($value) == number {
218
+ @return not(not(index(s ms, unit($value))));
219
+ } @else {
220
+ @return false;
221
+ }
222
+ }
@@ -0,0 +1,47 @@
1
+ // User Interface ------------------------------------------------------------
2
+ // This file can be expanded to handle all the user interface properties as
3
+ // they become available in browsers:
4
+ // http://www.w3.org/TR/2000/WD-css3-userint-20000216
5
+ @import "shared";
6
+
7
+
8
+ // This property controls the selection model and granularity of an element.
9
+ //
10
+ // @param $select
11
+ // [ none | text | toggle | element | elements | all | inherit ]
12
+ @mixin user-select($select) {
13
+ $select: unquote($select);
14
+ @include experimental(user-select, $select,
15
+ -moz, -webkit, not(-o), -ms, -khtml, official
16
+ );
17
+ }
18
+
19
+ // Style the html5 input placeholder in browsers that support it.
20
+ //
21
+ // The styles for the input placeholder are passed as mixin content
22
+ // and the selector comes from the mixin's context.
23
+ //
24
+ // For example:
25
+ //
26
+ // #{elements-of-type(text-input)} {
27
+ // @include input-placeholder {
28
+ // color: #bfbfbf;
29
+ // font-style: italic;
30
+ // }
31
+ // }
32
+ //
33
+ // if you want to apply the placeholder styles to all elements supporting
34
+ // the `input-placeholder` pseudo class (beware of performance impacts):
35
+ //
36
+ // * {
37
+ // @include input-placeholder {
38
+ // color: #bfbfbf;
39
+ // font-style: italic;
40
+ // }
41
+ // }
42
+ @mixin input-placeholder {
43
+ &:-ms-input-placeholder { @content; }
44
+ &:-moz-placeholder { @content; }
45
+ &::-moz-placeholder { @content; }
46
+ &::-webkit-input-placeholder { @content; }
47
+ }
@@ -0,0 +1,37 @@
1
+ //
2
+ // A partial implementation of the Ruby colors functions from Compass:
3
+ // https://github.com/Compass/compass/blob/stable/core/lib/compass/core/sass_extensions/functions/colors.rb
4
+ //
5
+
6
+ // a genericized version of lighten/darken so that negative values can be used.
7
+ @function adjust-lightness($color, $amount) {
8
+ @return adjust-color($color, $lightness: $amount);
9
+ }
10
+
11
+ // Scales a color's lightness by some percentage.
12
+ // If the amount is negative, the color is scaled darker, if positive, it is scaled lighter.
13
+ // This will never return a pure light or dark color unless the amount is 100%.
14
+ @function scale-lightness($color, $amount) {
15
+ @return scale-color($color, $lightness: $amount);
16
+ }
17
+
18
+ // a genericized version of saturate/desaturate so that negative values can be used.
19
+ @function adjust-saturation($color, $amount) {
20
+ @return adjust-color($color, $saturation: $amount);
21
+ }
22
+
23
+ // Scales a color's saturation by some percentage.
24
+ // If the amount is negative, the color is desaturated, if positive, it is saturated.
25
+ // This will never return a pure saturated or desaturated color unless the amount is 100%.
26
+ @function scale-saturation($color, $amount) {
27
+ @return scale-color($color, $saturation: $amount);
28
+ }
29
+
30
+ @function shade($color, $percentage) {
31
+ @return mix(#000000, $color, $percentage);
32
+ }
33
+
34
+ @function tint($color, $percentage) {
35
+ @return mix(#ffffff, $color, $percentage);
36
+ }
37
+
@@ -0,0 +1,18 @@
1
+ //
2
+ // A partial implementation of the Ruby constants functions from Compass:
3
+ // https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/constants.rb
4
+ //
5
+
6
+ @function opposite-position($from) {
7
+ @if ($from == top) {
8
+ @return bottom;
9
+ } @else if ($from == bottom) {
10
+ @return top;
11
+ } @else if ($from == left) {
12
+ @return right;
13
+ } @else if ($from == right) {
14
+ @return left;
15
+ } @else if ($from == center) {
16
+ @return center;
17
+ }
18
+ }
@@ -0,0 +1,72 @@
1
+ //
2
+ // A partial implementation of the Ruby cross browser support functions from Compass:
3
+ // https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/cross_browser_support.rb
4
+ //
5
+
6
+ @function prefixed($prefix, $property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
7
+ $properties: $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9;
8
+ $prefixed: false;
9
+ @each $item in $properties {
10
+ @if type-of($item) == 'string' {
11
+ $prefixed: $prefixed or str-index($item, 'url') != 1 and str-index($item, 'rgb') != 1 and str-index($item, '#') != 1;
12
+ } @else if type-of($item) == 'color' {
13
+ } @else if $item != null {
14
+ $prefixed: true;
15
+ }
16
+ }
17
+ @return $prefixed;
18
+ }
19
+
20
+ @function prefix($prefix, $property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
21
+ $properties: "";
22
+
23
+ // Support for polymorphism.
24
+ @if type-of($property1) == 'list' {
25
+ // Passing a single array of properties.
26
+ $properties: $property1;
27
+ } @else {
28
+ // Passing multiple properties.
29
+ $properties: $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9;
30
+ }
31
+
32
+ $props: false;
33
+ @each $item in $properties {
34
+ @if $item == null {}
35
+ @else {
36
+ @if prefixed($prefix, $item) {
37
+ $item: #{$prefix}-#{$item};
38
+ }
39
+ @if $props {
40
+ $props: $props, $item;
41
+ }
42
+ @else {
43
+ $props: $item;
44
+ }
45
+ }
46
+ }
47
+ @return $props;
48
+ }
49
+
50
+ @function -svg($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
51
+ @return prefix('-svg', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
52
+ }
53
+
54
+ @function -owg($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
55
+ @return prefix('-owg', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
56
+ }
57
+
58
+ @function -webkit($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
59
+ @return prefix('-webkit', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
60
+ }
61
+
62
+ @function -moz($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
63
+ @return prefix('-moz', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
64
+ }
65
+
66
+ @function -o($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
67
+ @return prefix('-o', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
68
+ }
69
+
70
+ @function -pie($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
71
+ @return prefix('-pie', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
72
+ }
@@ -0,0 +1,36 @@
1
+ //
2
+ // A partial implementation of the Ruby display functions from Compass:
3
+ // https://github.com/Compass/compass/blob/stable/core/lib/compass/core/sass_extensions/functions/display.rb
4
+ //
5
+
6
+ @function elements-of-type($type){
7
+ @if ($type == block){
8
+ @return address, article, aside, blockquote, center, dir, div, dd, details, dl, dt, fieldset, figcaption, figure, form, footer, frameset, h1, h2, h3, h4, h5, h6, hr, header, hgroup, isindex, main, menu, nav, noframes, noscript, ol, p, pre, section, summary, ul;
9
+ } @else if ($type == inline){
10
+ @return a, abbr, acronym, audio, b, basefont, bdo, big, br, canvas, cite, code, command, datalist, dfn, em, embed, font, i, img, input, keygen, kbd, label, mark, meter, output, progress, q, rp, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, textarea, time, tt, u, var, video, wbr;
11
+ } @else if ($type == inline-block){
12
+ @return img;
13
+ } @else if ($type == table){
14
+ @return table;
15
+ } @else if ($type == list-item){
16
+ @return li;
17
+ } @else if ($type == table-row-group){
18
+ @return tbody;
19
+ } @else if ($type == table-header-group){
20
+ @return thead;
21
+ } @else if ($type == table-footer-group){
22
+ @return tfoot;
23
+ } @else if ($type == table-row){
24
+ @return tr;
25
+ } @else if ($type == table-cell){
26
+ @return th, td;
27
+ } @else if ($type == html5-block){
28
+ @return article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary;
29
+ } @else if ($type == html5-inline){
30
+ @return audio, canvas, command, datalist, embed, keygen, mark, meter, output, progress, rp, rt, ruby, time, video, wbr;
31
+ } @else if ($type == html5){
32
+ @return article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, main, mark, menu, meter, nav, output, progress, rp, rt, ruby, section, summary, time, video, wbr;
33
+ } @else if ($type == text-input){
34
+ @return input, textarea;
35
+ }
36
+ }
@@ -0,0 +1,95 @@
1
+ //
2
+ // A partial implementation of the Ruby fonts functions from Compass:
3
+ // https://github.com/Compass/compass/blob/stable/core/lib/compass/core/sass_extensions/functions/font_files.rb
4
+ //
5
+ // and several functions from the file:
6
+ // https://github.com/Compass/compass/blob/stable/core/lib/compass/core/sass_extensions/functions/urls.rb
7
+ // -----------------------------------------------------------------------------
8
+ // Helper functions font-files and font-url for font-face mixins.
9
+ // -----------------------------------------------------------------------------
10
+ // use mixin this way:
11
+ //
12
+ // $font-path: "/public/fonts/roboto";
13
+ // @include font-face(
14
+ // 'Roboto',
15
+ // font_files("roboto.ttf", "truetype", "roboto.woff", "roboto.woff2"), // or
16
+ // font_files("roboto.ttf", "roboto.woff", "roboto.woff2"),
17
+ // "roboto.eot", // [$eot]
18
+ // normal, // [$weight]
19
+ // normal // [$style]
20
+ // );
21
+ // -----------------------------------------------------------------------------
22
+
23
+
24
+ @function font-url($path) {
25
+ $font-path: 'fonts' !default;
26
+ @return url("#{$font-path}/#{$path}");
27
+ }
28
+
29
+
30
+ // -----------------------------------------------------------------------------
31
+ // helper function to create a list of font files for the src attribute in @font-face.
32
+ // In the global variable $font-path, you can specify the path to the folder
33
+ // with fonts relative to style files, by default the path to the fonts is "fonts".
34
+ //
35
+ // Usage: font-files ('file-name-w-ext'[, 'format'][,'file-name-w-ext'[, 'format']]...).
36
+ // If the font format is not specified, the function will add the format corresponding to the file extension.
37
+ //
38
+ // for best results use this order: woff, opentype / truetype, svg.
39
+ // -----------------------------------------------------------------------------
40
+ // function ported from Ruby.
41
+ // -----------------------------------------------------------------------------
42
+ @function font-files($font-files...) {
43
+ $font-path: 'fonts' !default;
44
+ // types of font formats from module Compass::Core::SassExtensions::Functions::FontFiles.
45
+ $font-types: (
46
+ 'woff': "woff",
47
+ 'woff2': "woff2",
48
+ 'opentype': "otf",
49
+ // 'opentype': "opentype",
50
+ 'truetype': "ttf",
51
+ // 'truetype': "truetype",
52
+ 'svg': "svg",
53
+ 'embedded-opentype': "eot"
54
+ );
55
+
56
+ $full: '';
57
+ // if the font format is specified after the font file name, skip the next iteration.
58
+ $skip-next: false;
59
+ // number of font files including font format.
60
+ $font-file-length: length($font-files);
61
+
62
+ @for $i from 1 through $font-file-length {
63
+ @if(not $skip-next) {
64
+ $font-file: nth($font-files, $i);
65
+ $font-file-next: if($i < $font-file-length, nth($font-files, $i + 1), false);
66
+
67
+ // add font url.
68
+ $full: $full + 'url("#{$font-path}/#{$font-file}")';
69
+
70
+ // add the font format if it is specified after the font file name.
71
+ @if $font-file-next and map-has-key($font-types, $font-file-next) {
72
+ $full: $full + ' format("#{$font-file-next}")';
73
+ $skip-next: true;
74
+ } @else {
75
+ // add a font format based on the font file name extension.
76
+ @each $type, $extension in $font-types {
77
+ $pos: str-index($font-file, '.' + $extension);
78
+
79
+ @if($font-file-next == $extension) {
80
+ $full: $full + ' format("#{$type}")';
81
+ $skip-next: true;
82
+ } @else if ($pos and (to-lower-case(str-slice($font-file, $pos + 1)) == $extension)) {
83
+ $full: $full + ' format("#{$type}")';
84
+ }
85
+ }
86
+ }
87
+ } @else {
88
+ $skip-next: false;
89
+ }
90
+
91
+ @if (not $skip-next and $i != $font-file-length) { $full: $full + ', ';}
92
+ }
93
+
94
+ @return unquote($full);
95
+ }
@@ -0,0 +1,15 @@
1
+ //
2
+ // A partial implementation of the Ruby gradient support functions from Compass:
3
+ // https://github.com/Compass/compass/blob/v0.12.2/lib/compass/sass_extensions/functions/gradient_support.rb
4
+ //
5
+
6
+ @function color-stops($item1, $item2:null, $item3:null, $item4:null, $item5:null, $item6:null, $item7:null, $item8:null, $item9:null) {
7
+ $items: $item2, $item3, $item4, $item5, $item6, $item7, $item8, $item9;
8
+ $full: $item1;
9
+ @each $item in $items {
10
+ @if $item != null {
11
+ $full: $full, $item;
12
+ }
13
+ }
14
+ @return $full;
15
+ }
@@ -0,0 +1,90 @@
1
+ //
2
+ // A partial implementation of the Ruby list functions from Compass:
3
+ // https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/lists.rb
4
+ //
5
+
6
+
7
+ // compact is part of libsass
8
+
9
+ @function -compass-nth($list, $place) {
10
+ // Yep, Sass-lists are 1-indexed.
11
+ @if $place == "first" {
12
+ $place: 1;
13
+ }
14
+ @if $place == "last" {
15
+ $place: length($list);
16
+ }
17
+ @return nth($list, $place);
18
+ }
19
+
20
+ // compass_list can't be implemented in sass script
21
+
22
+ @function -compass-space-list($item1, $item2:null, $item3:null, $item4:null, $item5:null, $item6:null, $item7:null, $item8:null, $item9:null) {
23
+ $items: ();
24
+ // Support for polymorphism.
25
+ @if type-of($item1) == 'list' {
26
+ // Passing a single array of properties.
27
+ $items: $item1;
28
+ } @else {
29
+ $items: $item1 $item2 $item3 $item4 $item5 $item6 $item7 $item8 $item9;
30
+ }
31
+
32
+ $full: first-value-of($items);
33
+
34
+ @for $i from 2 through length($items) {
35
+ $item: nth($items, $i);
36
+ @if $item != null {
37
+ $full: $full $item;
38
+ }
39
+ }
40
+
41
+ @return $full;
42
+ }
43
+
44
+ @function -compass-list-size($list) {
45
+ @return length($list);
46
+ }
47
+
48
+ @function -compass-slice($list, $start, $end: false) {
49
+ @if $end == false {
50
+ $end: length($list);
51
+ }
52
+ $full: nth($list, $start);
53
+ @for $i from $start + 1 through $end {
54
+ $full: $full, nth($list, $i);
55
+ }
56
+ @return $full;
57
+ }
58
+
59
+ @function reject($list, $reject1, $reject2:null, $reject3:null, $reject4:null, $reject5:null, $reject6:null, $reject7:null, $reject8:null, $reject9:null) {
60
+ $rejects: $reject1, $reject2, $reject3, $reject4, $reject5, $reject6, $reject7, $reject8, $reject9;
61
+
62
+ $full: false;
63
+ @each $item in $list {
64
+ @if index($rejects, $item) {}
65
+ @else {
66
+ @if $full {
67
+ $full: $full, $item;
68
+ }
69
+ @else {
70
+ $full: $item;
71
+ }
72
+ }
73
+ }
74
+ @return $full;
75
+ }
76
+
77
+ @function first-value-of($list) {
78
+ @return nth($list, 1);
79
+ }
80
+
81
+ @function compact($vars...) {
82
+ $separator: list-separator($vars);
83
+ $list: ();
84
+ @each $var in $vars {
85
+ @if $var {
86
+ $list: append($list, $var, $separator);
87
+ }
88
+ }
89
+ @return $list;
90
+ }