compass 0.12.7 → 0.13.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. data/README.markdown +4 -6
  2. data/VERSION.yml +6 -0
  3. data/bin/compass +1 -2
  4. data/bin/compass.compiled.rbc +707 -0
  5. data/examples/compass/images/emblem-a043c4f148.png +0 -0
  6. data/examples/compass/images/flag-03c3b29b35.png +0 -0
  7. data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
  8. data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
  9. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
  10. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf +0 -0
  11. data/features/step_definitions/command_line_steps.rb +1 -1
  12. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +38 -41
  13. data/frameworks/compass/stylesheets/compass/_css3.scss +1 -3
  14. data/frameworks/compass/stylesheets/compass/_support.scss +0 -4
  15. data/frameworks/compass/stylesheets/compass/css3/_animation.scss +127 -0
  16. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +3 -4
  17. data/frameworks/compass/stylesheets/compass/css3/_box.scss +2 -2
  18. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +11 -97
  19. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +4 -4
  20. data/frameworks/compass/stylesheets/compass/css3/_images.scss +2 -2
  21. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +7 -13
  22. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +38 -0
  23. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +13 -52
  24. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +14 -14
  25. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +60 -127
  26. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +21 -0
  27. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +8 -6
  28. data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +9 -35
  29. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +9 -5
  30. data/lib/compass.rbc +796 -0
  31. data/lib/compass/actions.rb +4 -6
  32. data/lib/compass/actions.rbc +2736 -0
  33. data/lib/compass/app_integration.rbc +836 -0
  34. data/lib/compass/app_integration/merb.rbc +106 -0
  35. data/lib/compass/app_integration/rails.rbc +2096 -0
  36. data/lib/compass/app_integration/rails/configuration_defaults.rbc +2430 -0
  37. data/lib/compass/app_integration/rails/installer.rbc +3677 -0
  38. data/lib/compass/app_integration/stand_alone.rbc +589 -0
  39. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +721 -0
  40. data/lib/compass/app_integration/stand_alone/installer.rbc +1487 -0
  41. data/lib/compass/browser_support.rbc +1144 -0
  42. data/lib/compass/commands.rbc +307 -0
  43. data/lib/compass/commands/base.rbc +1044 -0
  44. data/lib/compass/commands/clean_project.rbc +1856 -0
  45. data/lib/compass/commands/create_project.rbc +2691 -0
  46. data/lib/compass/commands/default.rbc +1677 -0
  47. data/lib/compass/commands/generate_grid_background.rbc +1939 -0
  48. data/lib/compass/commands/help.rbc +1921 -0
  49. data/lib/compass/commands/imports.rbc +969 -0
  50. data/lib/compass/commands/installer_command.rbc +807 -0
  51. data/lib/compass/commands/interactive.rbc +1341 -0
  52. data/lib/compass/commands/list_frameworks.rbc +1111 -0
  53. data/lib/compass/commands/print_version.rbc +2478 -0
  54. data/lib/compass/commands/project_base.rb +1 -7
  55. data/lib/compass/commands/project_base.rbc +2085 -0
  56. data/lib/compass/commands/project_stats.rbc +4202 -0
  57. data/lib/compass/commands/registry.rbc +1350 -0
  58. data/lib/compass/commands/sprite.rbc +2212 -0
  59. data/lib/compass/commands/stamp_pattern.rbc +2011 -0
  60. data/lib/compass/commands/unpack_extension.rbc +2348 -0
  61. data/lib/compass/commands/update_project.rb +2 -2
  62. data/lib/compass/commands/update_project.rbc +3002 -0
  63. data/lib/compass/commands/validate_project.rbc +1686 -0
  64. data/lib/compass/commands/watch_project.rbc +4155 -0
  65. data/lib/compass/commands/write_configuration.rbc +2896 -0
  66. data/lib/compass/compiler.rb +2 -1
  67. data/lib/compass/compiler.rbc +4913 -0
  68. data/lib/compass/configuration.rbc +1398 -0
  69. data/lib/compass/configuration/adapters.rbc +2088 -0
  70. data/lib/compass/configuration/comments.rbc +843 -0
  71. data/lib/compass/configuration/data.rbc +2633 -0
  72. data/lib/compass/configuration/defaults.rbc +3617 -0
  73. data/lib/compass/configuration/file_data.rbc +643 -0
  74. data/lib/compass/configuration/helpers.rbc +3500 -0
  75. data/lib/compass/configuration/inheritance.rbc +3592 -0
  76. data/lib/compass/configuration/paths.rbc +412 -0
  77. data/lib/compass/configuration/serialization.rbc +1996 -0
  78. data/lib/compass/dependencies.rbc +232 -0
  79. data/lib/compass/errors.rbc +176 -0
  80. data/lib/compass/exec.rbc +500 -0
  81. data/lib/compass/exec/command_option_parser.rbc +676 -0
  82. data/lib/compass/exec/global_options_parser.rb +1 -1
  83. data/lib/compass/exec/global_options_parser.rbc +1306 -0
  84. data/lib/compass/exec/helpers.rbc +758 -0
  85. data/lib/compass/exec/project_options_parser.rb +0 -8
  86. data/lib/compass/exec/project_options_parser.rbc +1515 -0
  87. data/lib/compass/exec/sub_command_ui.rbc +1191 -0
  88. data/lib/compass/frameworks.rbc +3640 -0
  89. data/lib/compass/grid_builder.rbc +0 -0
  90. data/lib/compass/installers.rbc +152 -0
  91. data/lib/compass/installers/bare_installer.rbc +939 -0
  92. data/lib/compass/installers/base.rbc +4427 -0
  93. data/lib/compass/installers/manifest.rbc +3335 -0
  94. data/lib/compass/installers/manifest_installer.rbc +1591 -0
  95. data/lib/compass/installers/template_context.rbc +1030 -0
  96. data/lib/compass/logger.rbc +2317 -0
  97. data/lib/compass/quick_cache.rbc +324 -0
  98. data/lib/compass/sass_extensions.rbc +213 -0
  99. data/lib/compass/sass_extensions/functions.rbc +808 -0
  100. data/lib/compass/sass_extensions/functions/colors.rb +0 -14
  101. data/lib/compass/sass_extensions/functions/colors.rbc +1279 -0
  102. data/lib/compass/sass_extensions/functions/constants.rb +0 -9
  103. data/lib/compass/sass_extensions/functions/constants.rbc +1921 -0
  104. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +1966 -0
  105. data/lib/compass/sass_extensions/functions/display.rbc +1227 -0
  106. data/lib/compass/sass_extensions/functions/enumerate.rbc +446 -0
  107. data/lib/compass/sass_extensions/functions/env.rb +18 -0
  108. data/lib/compass/sass_extensions/functions/env.rbc +299 -0
  109. data/lib/compass/sass_extensions/functions/font_files.rbc +821 -0
  110. data/lib/compass/sass_extensions/functions/gradient_support.rb +4 -11
  111. data/lib/compass/sass_extensions/functions/gradient_support.rbc +14147 -0
  112. data/lib/compass/sass_extensions/functions/image_size.rbc +3152 -0
  113. data/lib/compass/sass_extensions/functions/inline_image.rbc +1678 -0
  114. data/lib/compass/sass_extensions/functions/lists.rbc +2601 -0
  115. data/lib/compass/sass_extensions/functions/math.rb +1 -1
  116. data/lib/compass/sass_extensions/functions/selectors.rbc +1592 -0
  117. data/lib/compass/sass_extensions/functions/sprites.rb +11 -14
  118. data/lib/compass/sass_extensions/functions/sprites.rbc +3792 -0
  119. data/lib/compass/sass_extensions/functions/trig.rbc +811 -0
  120. data/lib/compass/sass_extensions/functions/urls.rbc +5248 -0
  121. data/lib/compass/sass_extensions/monkey_patches.rbc +134 -0
  122. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +2169 -0
  123. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +660 -0
  124. data/lib/compass/sass_extensions/sprites.rbc +363 -0
  125. data/lib/compass/sass_extensions/sprites/base.rbc +4529 -0
  126. data/lib/compass/sass_extensions/sprites/engines.rb +3 -3
  127. data/lib/compass/sass_extensions/sprites/engines.rbc +662 -0
  128. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +6 -8
  129. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +1074 -0
  130. data/lib/compass/sass_extensions/sprites/image.rbc +2961 -0
  131. data/lib/compass/sass_extensions/sprites/image_methods.rb +1 -0
  132. data/lib/compass/sass_extensions/sprites/image_methods.rbc +900 -0
  133. data/lib/compass/sass_extensions/sprites/image_row.rbc +1168 -0
  134. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +3236 -0
  135. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +2067 -0
  136. data/lib/compass/sass_extensions/sprites/sprite_map.rb +0 -1
  137. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +1991 -0
  138. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +3 -13
  139. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +3190 -0
  140. data/lib/compass/sass_extensions/sprites/sprites.rbc +1573 -0
  141. data/lib/compass/sprite_importer.rb +6 -10
  142. data/lib/compass/sprite_importer.rbc +3573 -0
  143. data/lib/compass/sprite_importer/content.erb +14 -12
  144. data/lib/compass/util.rbc +552 -0
  145. data/lib/compass/version.rb +11 -15
  146. data/lib/compass/version.rbc +1245 -0
  147. data/test/fixtures/sprites/public/images/numeric/200.png +0 -0
  148. data/test/fixtures/stylesheets/blueprint/css/screen.css +3 -2
  149. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +8 -6
  150. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +2 -1
  151. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +1 -1
  152. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +2 -41
  153. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +3 -5
  154. data/test/fixtures/stylesheets/busted_image_urls/tmp/screen.css +9 -0
  155. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +41 -0
  156. data/test/fixtures/stylesheets/compass/css/animation.css +41 -0
  157. data/test/fixtures/stylesheets/compass/css/columns.css +12 -120
  158. data/test/fixtures/stylesheets/compass/css/fonts.css +1 -1
  159. data/test/fixtures/stylesheets/compass/css/gradients.css +25 -1
  160. data/test/fixtures/stylesheets/compass/css/grid_background.css +14 -7
  161. data/test/fixtures/stylesheets/compass/css/lists.css +8 -6
  162. data/test/fixtures/stylesheets/compass/css/pie.css +1 -0
  163. data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
  164. data/test/fixtures/stylesheets/compass/css/text_shadow.css +4 -22
  165. data/test/fixtures/stylesheets/compass/css/transition.css +16 -66
  166. data/test/fixtures/stylesheets/compass/css/user-interface.css +10 -0
  167. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +21 -21
  168. data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +19 -0
  169. data/test/fixtures/stylesheets/compass/sass/animation.scss +13 -0
  170. data/test/fixtures/stylesheets/compass/sass/columns.scss +0 -18
  171. data/test/fixtures/stylesheets/compass/sass/gradients.sass +4 -2
  172. data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +1 -6
  173. data/test/fixtures/stylesheets/compass/sass/transition.scss +1 -12
  174. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +7 -0
  175. data/test/fixtures/stylesheets/envtest/css/env.css +8 -0
  176. data/test/fixtures/stylesheets/envtest/sass/env.scss +16 -0
  177. data/test/fixtures/stylesheets/envtest/tmp/env.css +14 -0
  178. data/test/helpers/command_line.rbc +2820 -0
  179. data/test/helpers/diff.rbc +1104 -0
  180. data/test/helpers/io.rbc +962 -0
  181. data/test/helpers/rails.rbc +1116 -0
  182. data/test/helpers/test_case.rb +1 -8
  183. data/test/helpers/test_case.rbc +1255 -0
  184. data/test/integrations/compass_test.rb +10 -1
  185. data/test/integrations/compass_test.rbc +6589 -0
  186. data/test/integrations/rails_integration_test.rbc +1342 -0
  187. data/test/integrations/sprites_test.rb +70 -27
  188. data/test/integrations/sprites_test.rbc +6192 -0
  189. data/test/test_helper.rb +1 -2
  190. data/test/test_helper.rbc +1694 -0
  191. data/test/units/actions_test.rbc +644 -0
  192. data/test/units/command_line_test.rbc +1532 -0
  193. data/test/units/compass_module_test.rb +1 -1
  194. data/test/units/compass_png_test.rbc +0 -0
  195. data/test/units/configuration_test.rbc +3833 -0
  196. data/test/units/rails_configuration_test.rbc +1032 -0
  197. data/test/units/sass_extensions_test.rb +11 -21
  198. data/test/units/sass_extensions_test.rbc +3586 -0
  199. data/test/units/sprites/engine_test.rbc +962 -0
  200. data/test/units/sprites/image_row_test.rbc +1578 -0
  201. data/test/units/sprites/image_test.rbc +2836 -0
  202. data/test/units/sprites/importer_test.rbc +2620 -0
  203. data/test/units/sprites/row_fitter_test.rbc +1479 -0
  204. data/test/units/sprites/sprite_command_test.rbc +1147 -0
  205. data/test/units/sprites/sprite_map_test.rbc +6515 -0
  206. metadata +241 -94
  207. checksums.yaml +0 -7
  208. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +0 -23
  209. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +0 -77
  210. data/test/fixtures/stylesheets/compass/css/filters.css +0 -29
  211. data/test/fixtures/stylesheets/compass/css/hyphenation.css +0 -16
  212. data/test/fixtures/stylesheets/compass/css/replacement.css +0 -59
  213. data/test/fixtures/stylesheets/compass/sass/filters.scss +0 -24
  214. data/test/fixtures/stylesheets/compass/sass/hyphenation.scss +0 -11
  215. data/test/fixtures/stylesheets/compass/sass/replacement.scss +0 -22
  216. data/test/units/regressions_test.rb +0 -35
@@ -256,7 +256,7 @@ end
256
256
 
257
257
  Then /^the image ([^ ]+) has a size of (\d+)x(\d+)$/ do |file, width, height|
258
258
  # see http://snippets.dzone.com/posts/show/805
259
- open(file, "rb").read[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i]
259
+ IO.read(file)[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i]
260
260
  end
261
261
 
262
262
  Then /^I should see the following lines of output:$/ do |table|
@@ -1,32 +1,31 @@
1
1
  // Global reset rules.
2
2
  // For more specific resets, use the reset mixins provided below
3
3
  @mixin blueprint-global-reset {
4
- html { @include blueprint-reset-box-model; }
5
- body { @extend .bp-reset-element; }
6
- @include blueprint-nested-reset; }
4
+ html { @extend %bp-reset-box-model; }
5
+ body { @extend %bp-reset-element; }
6
+ @include blueprint-nested-reset;
7
+ }
7
8
 
8
9
  // Reset all elements within some selector scope.To reset the selector itself,
9
10
  // mixin the appropriate reset mixin for that element type as well. This could be
10
11
  // useful if you want to style a part of your page in a dramatically different way.
11
12
  @mixin blueprint-nested-reset {
12
- .bp-reset-element,
13
13
  div, span, object, iframe, p,
14
14
  pre, a, abbr, acronym, address,
15
15
  code, del, dfn, em, img,
16
16
  dl, dt, dd, ol, ul, li, fieldset,
17
17
  form, label, legend,
18
- caption, tbody, tfoot, thead, tr { @include blueprint-basic-reset; }
19
- #{headers(all)} { @include blueprint-basic-reset(bp-reset-element); }
20
- #{elements-of-type(html5-block)} { @include blueprint-reset-html5-element(bp-reset-element); }
21
- blockquote, q { @include blueprint-reset-quotation(bp-reset-element); }
22
- th, td, caption { @include blueprint-reset-table-cell(bp-reset-element); }
23
- table { @include blueprint-reset-table(bp-reset-element); }
24
- a img { border: none; }
18
+ caption, tbody, tfoot, thead, tr { @extend %bp-reset-element; }
19
+ #{headers(all)} { @extend %bp-reset-element; }
20
+ #{elements-of-type(html5-block)} { @extend %bp-reset-html5-element; }
21
+ blockquote, q { @extend %bp-reset-quotation; }
22
+ th, td, caption { @extend %bp-reset-table-cell; }
23
+ table { @extend %bp-reset-table; }
24
+ a img { @extend %bp-reset-linked-image; }
25
25
  }
26
26
 
27
- @mixin blueprint-reset-html5-element($reset-base-class: false) {
28
- @if $reset-base-class { @extend .#{$reset-base-class}; }
29
- @else { @include blueprint-reset; }
27
+ @mixin blueprint-reset-html5-element {
28
+ @extend %bp-reset-element;
30
29
  display: block;
31
30
  }
32
31
 
@@ -36,18 +35,9 @@
36
35
  border: 0;
37
36
  }
38
37
 
39
- @mixin blueprint-reset {
40
- @warn "The blueprint-reset mixin is deprecated. Please use blueprint-basic-reset instead.";
41
- @include blueprint-basic-reset;
42
- }
43
-
44
- @mixin blueprint-basic-reset($reset-base-class: false) {
45
- @if $reset-base-class {
46
- @extend .#{$reset-base-class};
47
- } @else {
48
- @include blueprint-reset-box-model;
49
- @include blueprint-reset-typography;
50
- }
38
+ @mixin blueprint-basic-reset {
39
+ @include blueprint-reset-box-model;
40
+ @include blueprint-reset-typography;
51
41
  }
52
42
 
53
43
  @mixin blueprint-reset-typography {
@@ -55,29 +45,36 @@
55
45
  weight: inherit;
56
46
  style: inherit;
57
47
  size: 100%;
58
- family: inherit; };
48
+ family: inherit;
49
+ }
59
50
  vertical-align: baseline;
60
51
  }
61
52
 
62
- @mixin blueprint-reset-quotation($reset-base-class: false) {
63
- @if $reset-base-class { @extend .#{$reset-base-class}; }
64
- @else { @include blueprint-reset; }
53
+ @mixin blueprint-reset-quotation {
54
+ @extend %bp-reset-element;
65
55
  quotes: "" "";
66
- &:before,
67
- &:after {
68
- content: ""; } }
56
+ &:before, &:after { content: ""; }
57
+ }
69
58
 
70
- @mixin blueprint-reset-table-cell($reset-base-class: false) {
71
- @if $reset-base-class { @extend .#{$reset-base-class}; }
72
- @else { @include blueprint-reset; }
59
+ @mixin blueprint-reset-table-cell {
60
+ @extend %bp-reset-element;
73
61
  float: none !important;
74
62
  text-align: left;
75
63
  font-weight: normal;
76
- vertical-align: middle; }
64
+ vertical-align: middle;
65
+ }
77
66
 
78
- @mixin blueprint-reset-table($reset-base-class: false) {
79
- @if $reset-base-class { @extend .#{$reset-base-class}; }
80
- @else { @include blueprint-reset; }
67
+ @mixin blueprint-reset-table {
68
+ @extend %bp-reset-element;
81
69
  border-collapse: separate;
82
70
  border-spacing: 0;
83
- vertical-align: middle; }
71
+ vertical-align: middle;
72
+ }
73
+
74
+ %bp-reset-box-model { @include blueprint-reset-box-model; }
75
+ %bp-reset-element { @include blueprint-basic-reset; }
76
+ %bp-reset-html5-element { @include blueprint-reset-html5-element; }
77
+ %bp-reset-quotation { @include blueprint-reset-quotation; }
78
+ %bp-reset-table-cell { @include blueprint-reset-table-cell; }
79
+ %bp-reset-table { @include blueprint-reset-table; }
80
+ %bp-reset-linked-image { border: none; }
@@ -14,7 +14,5 @@
14
14
  @import "css3/transform";
15
15
  @import "css3/transition";
16
16
  @import "css3/appearance";
17
+ @import "css3/animation";
17
18
  @import "css3/regions";
18
- @import "css3/hyphenation";
19
- @import "css3/filter";
20
- @import "css3/user-interface";
@@ -16,10 +16,6 @@ $legacy-support-for-ie8: $legacy-support-for-ie !default;
16
16
  // this combined variable.
17
17
  $legacy-support-for-ie: $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8;
18
18
 
19
- // Whether to output legacy support for mozilla.
20
- // Usually this means hacks to support Firefox 3.6 or earlier.
21
- $legacy-support-for-mozilla: true;
22
-
23
19
  // Support for mozilla in experimental css3 properties (-moz).
24
20
  $experimental-support-for-mozilla : true !default;
25
21
  // Support for webkit in experimental css3 properties (-webkit).
@@ -0,0 +1,127 @@
1
+ @import "shared";
2
+
3
+ // CSS Animations.
4
+
5
+ // Apply an animation property and value with the correct browser support
6
+ @mixin animation-support($property, $value) {
7
+ @include experimental($property, $value, -moz, -webkit, -o, -ms, not -khtml, official); }
8
+
9
+ // Name of any animation as a string.
10
+ $default-animation-name : false !default;
11
+
12
+ // Duration of the entire animation in seconds.
13
+ $default-animation-duration : false !default;
14
+
15
+ // Delay for start of animation in seconds.
16
+ $default-animation-delay : false !default;
17
+
18
+ // The timing function(s) to be used between keyframes. [ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier($number, $number, $number, $number)]
19
+ $default-animation-timing-function : false !default;
20
+
21
+ // The number of times an animation cycle is played. [infinite | $number]
22
+ $default-animation-iteration-count : false !default;
23
+
24
+ // Whether or not the animation should play in reverse on alternate cycles. [normal | alternate]
25
+ $default-animation-direction : false !default;
26
+
27
+ // What values are applied by the animation outside the time it is executing. [none | forwards | backwards | both]
28
+ $default-animation-fill-mode : false !default;
29
+
30
+ // Whether the animation is running or paused. [running | paused]
31
+ $default-animation-play-state : false !default;
32
+
33
+ // Create a named animation sequence that can be applied to elements later.
34
+ //
35
+ // $name - The name of your animation.
36
+ // @content - The keyframes of the animation.
37
+ @mixin keyframes(
38
+ $name,
39
+ $moz: $experimental-support-for-mozilla,
40
+ $webkit: $experimental-support-for-webkit,
41
+ $o: $experimental-support-for-opera,
42
+ $ms: $experimental-support-for-microsoft,
43
+ $khtml: $experimental-support-for-khtml,
44
+ $official: true
45
+ ) {
46
+ @if $moz {
47
+ @include with-only-support-for($moz: true) {
48
+ @-moz-keyframes #{$name} { @content; }
49
+ }
50
+ }
51
+ @if $webkit {
52
+ @include with-only-support-for($webkit: true) {
53
+ @-webkit-keyframes #{$name} { @content; }
54
+ }
55
+ }
56
+ @if $o {
57
+ @include with-only-support-for($o: true) {
58
+ @-o-keyframes #{$name} { @content; }
59
+ }
60
+ }
61
+ @if $ms {
62
+ @include with-only-support-for($ms: true) {
63
+ @-ms-keyframes #{$name} { @content; }
64
+ }
65
+ }
66
+ @if $khtml {
67
+ @include with-only-support-for($khtml: true) {
68
+ @-khtml-keyframes #{$name} { @content; }
69
+ }
70
+ }
71
+ @if $official {
72
+ @include with-only-support-for {
73
+ @keyframes #{$name} { @content; }
74
+ }
75
+ }
76
+ }
77
+
78
+ // Apply 1-10 animation names.
79
+ @mixin animation-name($name-1: $default-animation-name, $name-2: false, $name-3: false, $name-4: false, $name-5: false, $name-6: false, $name-7: false, $name-8: false, $name-9: false, $name-10: false) {
80
+ $name: compact($name-1, $name-2, $name-3, $name-4, $name-5, $name-6, $name-7, $name-8, $name-9, $name-10);
81
+ @include animation-support(animation-name, $name); }
82
+
83
+ // Apply 1-10 animation durations.
84
+ @mixin animation-duration($duration-1: $default-animation-duration, $duration-2: false, $duration-3: false, $duration-4: false, $duration-5: false, $duration-6: false, $duration-7: false, $duration-8: false, $duration-9: false, $duration-10: false) {
85
+ $duration: compact($duration-1, $duration-2, $duration-3, $duration-4, $duration-5, $duration-6, $duration-7, $duration-8, $duration-9, $duration-10);
86
+ @include animation-support(animation-duration, $duration); }
87
+
88
+ // Apply 1-10 animation delays.
89
+ @mixin animation-delay($delay-1: $default-animation-delay, $delay-2: false, $delay-3: false, $delay-4: false, $delay-5: false, $delay-6: false, $delay-7: false, $delay-8: false, $delay-9: false, $delay-10: false) {
90
+ $delay: compact($delay-1, $delay-2, $delay-3, $delay-4, $delay-5, $delay-6, $delay-7, $delay-8, $delay-9, $delay-10);
91
+ @include animation-support(animation-delay, $delay); }
92
+
93
+ // Apply 1-10 animation timing functions.
94
+ @mixin animation-timing-function($function-1: $default-animation-timing-function, $function-2: false, $function-3: false, $function-4: false, $function-5: false, $function-6: false, $function-7: false, $function-8: false, $function-9: false, $function-10: false) {
95
+ $function: compact($function-1, $function-2, $function-3, $function-4, $function-5, $function-6, $function-7, $function-8, $function-9, $function-10);
96
+ @include animation-support(animation-timing-function, $function); }
97
+
98
+ // Apply 1-10 animation iteration counts.
99
+ @mixin animation-iteration-count($count-1: $default-animation-iteration-count, $count-2: false, $count-3: false, $count-4: false, $count-5: false, $count-6: false, $count-7: false, $count-8: false, $count-9: false, $count-10: false) {
100
+ $count: compact($count-1, $count-2, $count-3, $count-4, $count-5, $count-6, $count-7, $count-8, $count-9, $count-10);
101
+ @include animation-support(animation-iteration-count, $count); }
102
+
103
+ // Apply 1-10 animation directions.
104
+ @mixin animation-direction($direction-1: $default-animation-direction, $direction-2: false, $direction-3: false, $direction-4: false, $direction-5: false, $direction-6: false, $direction-7: false, $direction-8: false, $direction-9: false, $direction-10: false) {
105
+ $direction: compact($direction-1, $direction-2, $direction-3, $direction-4, $direction-5, $direction-6, $direction-7, $direction-8, $direction-9, $direction-10);
106
+ @include animation-support(animation-direction, $direction); }
107
+
108
+ // Apply 1-10 animation fill modes.
109
+ @mixin animation-fill-mode($mode-1: $default-animation-fill-mode, $mode-2: false, $mode-3: false, $mode-4: false, $mode-5: false, $mode-6: false, $mode-7: false, $mode-8: false, $mode-9: false, $mode-10: false) {
110
+ $mode: compact($mode-1, $mode-2, $mode-3, $mode-4, $mode-5, $mode-6, $mode-7, $mode-8, $mode-9, $mode-10);
111
+ @include animation-support(animation-fill-mode, $mode); }
112
+
113
+ // Apply 1-10 animation play states.
114
+ @mixin animation-play-state($state-1: $default-animation-play-state, $state-2: false, $state-3: false, $state-4: false, $state-5: false, $state-6: false, $state-7: false, $state-8: false, $state-9: false, $state-10: false) {
115
+ $state: compact($state-1, $state-2, $state-3, $state-4, $state-5, $state-6, $state-7, $state-8, $state-9, $state-10);
116
+ @include animation-support(animation-play-state, $state); }
117
+
118
+ // Shortcut to apply a named animation to an element, with all the settings.
119
+ //
120
+ // $animation-1 : Name and settings for the first animation. [<values> | default]
121
+ // ...
122
+ // $animation-10 : Name and settings for the tenth animation. <values>
123
+ @mixin animation($animation-1: default, $animation-2: false, $animation-3: false, $animation-4: false, $animation-5: false, $animation-6: false, $animation-7: false, $animation-8: false, $animation-9: false, $animation-10: false) {
124
+ @if $animation-1 == default {
125
+ $animation-1: -compass-space-list(compact($default-animation-name, $default-animation-duration, $default-animation-timing-function, $default-animation-delay, $default-animation-iteration-count, $default-animation-direction, $default-animation-fill-mode, $default-animation-play-state)); }
126
+ $animation: compact($animation-1, $animation-2, $animation-3, $animation-4, $animation-5, $animation-6, $animation-7, $animation-8, $animation-9, $animation-10);
127
+ @include animation-support(animation, $animation); }
@@ -4,10 +4,9 @@
4
4
  // The appearance property is currently not present in any newer CSS specification.
5
5
  //
6
6
  // There is no official list of accepted values, but you might check these source:
7
- //
8
- // * [Mozilla](https://developer.mozilla.org/en/CSS/-moz-appearance)
9
- // * [Webkit](http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365)
10
- // (search for 'appearance' within the page)
7
+ // Mozilla : https://developer.mozilla.org/en/CSS/-moz-appearance
8
+ // Webkit : http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365
9
+ // (search for 'appearance' within the page)
11
10
 
12
11
  @mixin appearance($ap) {
13
12
  $ap: unquote($ap);
@@ -64,7 +64,7 @@ $default-box-ordinal-group: 1 !default;
64
64
 
65
65
  // mixin which takes an int argument for ordinal grouping and rearranging the order
66
66
  @mixin box-ordinal-group(
67
- $group: $default-box-ordinal-group
67
+ $group: $default-ordinal-flex-group
68
68
  ) {
69
69
  @include experimental(box-ordinal-group, $group,
70
70
  -moz, -webkit, not -o, -ms, not -khtml, official
@@ -108,4 +108,4 @@ $default-box-pack: start !default;
108
108
  @include experimental(box-pack, $pack,
109
109
  -moz, -webkit, not -o, -ms, not -khtml, official
110
110
  );
111
- }
111
+ }
@@ -7,60 +7,51 @@
7
7
  // @include columns(20em 2)
8
8
  @mixin columns($width-and-count) {
9
9
  @include experimental(columns, $width-and-count,
10
- -moz, -webkit, -o, -ms, not -khtml, official
10
+ -moz, -webkit, not -o, -ms, not -khtml, official
11
11
  );
12
12
  }
13
13
 
14
14
  // Specify the number of columns
15
15
  @mixin column-count($count) {
16
16
  @include experimental(column-count, $count,
17
- -moz, -webkit, -o, -ms, not -khtml, official
17
+ -moz, -webkit, not -o, -ms, not -khtml, official
18
18
  );
19
19
  }
20
20
 
21
21
  // Specify the gap between columns e.g. `20px`
22
22
  @mixin column-gap($width) {
23
23
  @include experimental(column-gap, $width,
24
- -moz, -webkit, -o, -ms, not -khtml, official
24
+ -moz, -webkit, not -o, -ms, not -khtml, official
25
25
  );
26
26
  }
27
27
 
28
28
  // Specify the width of columns e.g. `100px`
29
29
  @mixin column-width($width) {
30
30
  @include experimental(column-width, $width,
31
- -moz, -webkit, -o, -ms, not -khtml, official
31
+ -moz, -webkit, not -o, -ms, not -khtml, official
32
32
  );
33
33
  }
34
34
 
35
- // Specify how many columns an element should span across.
36
- //
37
- // * legal values are 1, all
38
- @mixin column-span($columns) {
39
- @include experimental(column-span, $columns,
40
- -moz, -webkit, -o, -ms, not -khtml, official
41
- );
42
- }
43
-
44
35
  // Specify the width of the rule between columns e.g. `1px`
45
36
  @mixin column-rule-width($width) {
46
- @include experimental(column-rule-width, $width,
47
- -moz, -webkit, -o, -ms, not -khtml, official
37
+ @include experimental(rule-width, $width,
38
+ -moz, -webkit, not -o, -ms, not -khtml, official
48
39
  );
49
40
  }
50
41
 
51
42
  // Specify the style of the rule between columns e.g. `dotted`.
52
43
  // This works like border-style.
53
44
  @mixin column-rule-style($style) {
54
- @include experimental(column-rule-style, unquote($style),
55
- -moz, -webkit, -o, -ms, not -khtml, official
45
+ @include experimental(rule-style, unquote($style),
46
+ -moz, -webkit, not -o, -ms, not -khtml, official
56
47
  );
57
48
  }
58
49
 
59
50
  // Specify the color of the rule between columns e.g. `blue`.
60
51
  // This works like border-color.
61
52
  @mixin column-rule-color($color) {
62
- @include experimental(column-rule-color, $color,
63
- -moz, -webkit, -o, -ms, not -khtml, official
53
+ @include experimental(rule-color, $color,
54
+ -moz, -webkit, not -o, -ms, not -khtml, official
64
55
  );
65
56
  }
66
57
 
@@ -75,83 +66,6 @@
75
66
  @mixin column-rule($width, $style: false, $color: false) {
76
67
  $full : -compass-space-list(compact($width, $style, $color));
77
68
  @include experimental(column-rule, $full,
78
- -moz, -webkit, -o, -ms, not -khtml, official
69
+ -moz, -webkit, not -o, -ms, not -khtml, official
79
70
  );
80
71
  }
81
-
82
- // Mixin for setting column-break-before
83
- //
84
- // * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
85
- //
86
- // Example:
87
- // h2.before {@include column-break-before(always);}
88
- //
89
- // Which generates:
90
- //
91
- // h2.before {
92
- // -webkit-column-break-before: always;
93
- // column-break-before: always;}
94
- @mixin column-break-before($value: auto){
95
- @include experimental(column-break-before, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
96
- }
97
-
98
- // Mixin for setting column-break-after
99
- //
100
- // * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
101
- //
102
- // Example:
103
- // h2.after {@include column-break-after(always); }
104
- //
105
- // Which generates:
106
- //
107
- // h2.after {
108
- // -webkit-column-break-after: always;
109
- // column-break-after: always; }
110
- @mixin column-break-after($value: auto){
111
- @include experimental(column-break-after, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
112
- }
113
-
114
- // Mixin for setting column-break-inside
115
- //
116
- // * legal values are auto, avoid, avoid-page, avoid-column
117
- //
118
- // Example:
119
- // h2.inside {@include column-break-inside();}
120
- // Which generates:
121
- //
122
- // h2.inside {
123
- // -webkit-column-break-inside: auto;
124
- // column-break-inside: auto;}
125
- @mixin column-break-inside($value: auto){
126
- @include experimental(column-break-inside, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
127
- }
128
-
129
- // All-purpose mixin for setting column breaks.
130
- //
131
- // * legal values for $type : before, after, inside
132
- // * legal values for '$value' are dependent on $type
133
- // * when $type = before, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
134
- // * when $type = after, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
135
- // * when $type = inside, legal values are auto, avoid, avoid-page, avoid-column
136
- //
137
- // Examples:
138
- // h2.before {@include column-break(before, always);}
139
- // h2.after {@include column-break(after, always); }
140
- // h2.inside {@include column-break(inside); }
141
- //
142
- // Which generates:
143
- // h2.before {
144
- // -webkit-column-break-before: always;
145
- // column-break-before: always;}
146
- //
147
- // h2.after {
148
- // -webkit-column-break-after: always;
149
- // column-break-after: always; }
150
- //
151
- // h2.inside {
152
- // -webkit-column-break-inside: auto;
153
- // column-break-inside: auto;}
154
-
155
- @mixin column-break($type: before, $value: auto){
156
- @include experimental("column-break-#{$type}", $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
157
- }