compass 0.13.alpha.4 → 0.13.alpha.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/README.markdown +2 -3
  3. data/Rakefile +91 -5
  4. data/VERSION.yml +1 -1
  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/features/command_line.feature +2 -6
  10. data/features/step_definitions/command_line_steps.rb +1 -0
  11. data/frameworks/compass/stylesheets/compass/_css3.scss +0 -1
  12. data/frameworks/compass/stylesheets/compass/_support.scss +353 -35
  13. data/frameworks/compass/stylesheets/compass/css3/_animation.scss +49 -48
  14. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +4 -8
  15. data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +15 -19
  16. data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +17 -19
  17. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +4 -8
  18. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +37 -39
  19. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +45 -20
  20. data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +6 -8
  21. data/frameworks/compass/stylesheets/compass/css3/_box.scss +12 -13
  22. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +46 -26
  23. data/frameworks/compass/stylesheets/compass/css3/_deprecated-support.scss +272 -0
  24. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +17 -10
  25. data/frameworks/compass/stylesheets/compass/css3/_flexbox.scss +134 -281
  26. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +5 -5
  27. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +14 -11
  28. data/frameworks/compass/stylesheets/compass/css3/_images.scss +77 -67
  29. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +15 -6
  30. data/frameworks/compass/stylesheets/compass/css3/_opacity.scss +6 -2
  31. data/frameworks/compass/stylesheets/compass/css3/_pie.scss +1 -73
  32. data/frameworks/compass/stylesheets/compass/css3/_regions.scss +7 -6
  33. data/frameworks/compass/stylesheets/compass/css3/_selection.scss +45 -17
  34. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +4 -261
  35. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +1 -1
  36. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +24 -32
  37. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +102 -152
  38. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +42 -27
  39. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +2 -1
  40. data/frameworks/compass/stylesheets/compass/typography/links/_hover-link.scss +1 -1
  41. data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +2 -2
  42. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +1 -1
  43. data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +1 -1
  44. data/frameworks/compass/stylesheets/compass/utilities/_sass.scss +2 -0
  45. data/frameworks/compass/stylesheets/compass/utilities/color/_brightness.scss +12 -0
  46. data/frameworks/compass/stylesheets/compass/utilities/color/_contrast.scss +36 -12
  47. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +6 -2
  48. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +23 -4
  49. data/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +1 -1
  50. data/frameworks/compass/stylesheets/compass/utilities/sass/_lists.scss +16 -0
  51. data/frameworks/compass/stylesheets/compass/utilities/sass/_maps.scss +19 -0
  52. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +25 -18
  53. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +3 -1
  54. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +3 -3
  55. data/lib/compass.rb +1 -1
  56. data/lib/compass/browser_support.rb +1 -1
  57. data/lib/compass/caniuse.rb +247 -0
  58. data/lib/compass/configuration/adapters.rb +7 -1
  59. data/lib/compass/sass_extensions/functions.rb +5 -0
  60. data/lib/compass/sass_extensions/functions/constants.rb +2 -2
  61. data/lib/compass/sass_extensions/functions/cross_browser_support.rb +176 -1
  62. data/lib/compass/sass_extensions/functions/display.rb +24 -19
  63. data/lib/compass/sass_extensions/functions/env.rb +37 -8
  64. data/lib/compass/sass_extensions/functions/gradient_support.rb +10 -13
  65. data/lib/compass/sass_extensions/functions/math.rb +31 -13
  66. data/lib/compass/sass_extensions/functions/sprites.rb +48 -25
  67. data/lib/compass/sass_extensions/monkey_patches/browser_support.rb +42 -13
  68. data/lib/compass/sass_extensions/sprites/image.rb +14 -4
  69. data/lib/compass/sass_extensions/sprites/image_methods.rb +19 -3
  70. data/lib/compass/sprite_importer/content.erb +8 -7
  71. data/lib/compass/watcher/project_watcher.rb +75 -42
  72. data/lib/compass/watcher/watch.rb +35 -17
  73. data/test/fixtures/sprites/public/images/focus/ten-by-ten.png +0 -0
  74. data/test/fixtures/sprites/public/images/focus/ten-by-ten_active.png +0 -0
  75. data/test/fixtures/sprites/public/images/focus/ten-by-ten_focus.png +0 -0
  76. data/test/fixtures/sprites/public/images/focus/ten-by-ten_hover.png +0 -0
  77. data/test/fixtures/sprites/public/images/focus/ten-by-ten_target.png +0 -0
  78. data/test/fixtures/stylesheets/compass/config.rb +1 -0
  79. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +1 -9
  80. data/test/fixtures/stylesheets/compass/css/animation.css +1 -9
  81. data/test/fixtures/stylesheets/compass/css/appearance.css +3 -0
  82. data/test/fixtures/stylesheets/compass/css/background-clip.css +4 -8
  83. data/test/fixtures/stylesheets/compass/css/background-origin.css +4 -8
  84. data/test/fixtures/stylesheets/compass/css/background-size.css +3 -10
  85. data/test/fixtures/stylesheets/compass/css/border_radius.css +3 -3
  86. data/test/fixtures/stylesheets/compass/css/{box-sizeing.css → box-sizing.css} +2 -2
  87. data/test/fixtures/stylesheets/compass/css/box_shadow.css +15 -5
  88. data/test/fixtures/stylesheets/compass/css/brightness.css +14 -0
  89. data/test/fixtures/stylesheets/compass/css/browser-support.css +306 -0
  90. data/test/fixtures/stylesheets/compass/css/color.css +18 -0
  91. data/test/fixtures/stylesheets/compass/css/columns.css +27 -18
  92. data/test/fixtures/stylesheets/compass/css/filters.css +6 -6
  93. data/test/fixtures/stylesheets/compass/css/flexbox.css +84 -111
  94. data/test/fixtures/stylesheets/compass/css/fonts.css +1 -1
  95. data/test/fixtures/stylesheets/compass/css/gradients.css +53 -53
  96. data/test/fixtures/stylesheets/compass/css/grid_background.css +11 -11
  97. data/test/fixtures/stylesheets/compass/css/hyphenation.css +2 -4
  98. data/test/fixtures/stylesheets/compass/css/lists.css +6 -12
  99. data/test/fixtures/stylesheets/compass/css/regions.css +2 -2
  100. data/test/fixtures/stylesheets/compass/css/selection.css +41 -4
  101. data/test/fixtures/stylesheets/compass/css/sprites_with_explicit_separator.css +16 -0
  102. data/test/fixtures/stylesheets/compass/css/support.css +62 -0
  103. data/test/fixtures/stylesheets/compass/css/transform.css +64 -136
  104. data/test/fixtures/stylesheets/compass/css/transition.css +27 -45
  105. data/test/fixtures/stylesheets/compass/css/typography/links/hover-link.css +4 -0
  106. data/test/fixtures/stylesheets/compass/css/user-interface.css +34 -7
  107. data/test/fixtures/stylesheets/compass/css/utilities.css +7 -7
  108. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +6 -9
  109. data/test/fixtures/stylesheets/compass/images/flag_states-sc42d7bf926.png +0 -0
  110. data/test/fixtures/stylesheets/compass/images/flag_states/foo.png +0 -0
  111. data/test/fixtures/stylesheets/compass/images/flag_states/foo_active.png +0 -0
  112. data/test/fixtures/stylesheets/compass/images/flag_states/foo_focus.png +0 -0
  113. data/test/fixtures/stylesheets/compass/images/flag_states/foo_hover.png +0 -0
  114. data/test/fixtures/stylesheets/compass/images/flag_states/foo_target.png +0 -0
  115. data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +1 -3
  116. data/test/fixtures/stylesheets/compass/sass/appearance.scss +5 -0
  117. data/test/fixtures/stylesheets/compass/sass/background-clip.scss +0 -5
  118. data/test/fixtures/stylesheets/compass/sass/background-origin.scss +0 -5
  119. data/test/fixtures/stylesheets/compass/sass/background-size.scss +0 -5
  120. data/test/fixtures/stylesheets/compass/sass/{box-sizeing.scss → box-sizing.scss} +1 -1
  121. data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +2 -0
  122. data/test/fixtures/stylesheets/compass/sass/brightness.scss +12 -0
  123. data/test/fixtures/stylesheets/compass/sass/browser-support.scss +30 -0
  124. data/test/fixtures/stylesheets/compass/sass/color.scss +22 -0
  125. data/test/fixtures/stylesheets/compass/sass/filters.scss +1 -0
  126. data/test/fixtures/stylesheets/compass/sass/flexbox.scss +84 -40
  127. data/test/fixtures/stylesheets/compass/sass/gradients.sass +3 -2
  128. data/test/fixtures/stylesheets/compass/sass/selection.scss +29 -4
  129. data/test/fixtures/stylesheets/compass/sass/sprites_with_explicit_separator.scss +7 -0
  130. data/test/fixtures/stylesheets/compass/sass/support.scss +137 -0
  131. data/test/fixtures/stylesheets/compass/sass/transition.scss +0 -3
  132. data/test/fixtures/stylesheets/compass/sass/typography/links/hover-link.scss +3 -0
  133. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +16 -5
  134. data/test/fixtures/stylesheets/compass/sass/utilities.scss +4 -4
  135. data/test/fixtures/stylesheets/envtest/css/env.css +4 -4
  136. data/test/fixtures/stylesheets/envtest/tmp/env.css +4 -4
  137. data/test/integrations/sprites_test.rb +30 -1
  138. data/test/test_helper.rb +2 -2
  139. data/test/units/caniuse_test.rb +115 -0
  140. data/test/units/command_line_test.rb +1 -0
  141. data/test/units/sass_extensions_test.rb +5 -0
  142. data/test/units/sprites/image_test.rb +12 -0
  143. data/test/units/sprites/sprite_map_test.rb +11 -0
  144. data/test/units/watcher/project_watcher_test.rb +26 -18
  145. metadata +96 -42
  146. data/examples/compass/src/pie.scss +0 -110
  147. data/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss +0 -87
  148. data/frameworks/compass/templates/pie/LICENSE +0 -12
  149. data/frameworks/compass/templates/pie/LICENSE-APACHE2.txt +0 -13
  150. data/frameworks/compass/templates/pie/LICENSE-GPL2.txt +0 -278
  151. data/frameworks/compass/templates/pie/PIE.htc +0 -96
  152. data/frameworks/compass/templates/pie/manifest.rb +0 -39
  153. data/frameworks/compass/templates/pie/pie.scss +0 -74
  154. data/lib/compass/sass_extensions/functions/utility.rb +0 -10
  155. data/test/fixtures/stylesheets/compass/css/pie.css +0 -23
  156. data/test/fixtures/stylesheets/compass/sass/pie.scss +0 -47
@@ -1,3 +1,4 @@
1
+ $debug-browser-support: true;
1
2
  @import "compass/css3/filter";
2
3
 
3
4
  .blur {
@@ -1,44 +1,88 @@
1
1
  @import "compass/css3/flexbox";
2
2
 
3
+ .display {
4
+ @include display-flex;
5
+ }
6
+
7
+ .flex-direction {
8
+ @include flex-direction(row-reverse);
9
+ }
10
+
11
+ .flex-wrap {
12
+ @include flex-wrap(wrap-reverse);
13
+ }
14
+
15
+ .flex-flow {
16
+ @include flex-flow(row-reverse wrap-reverse);
17
+ }
18
+
19
+ .order {
20
+ @include order(1);
21
+ }
22
+
3
23
  .flex {
4
- @include display-flex;
5
- @include flex-flow(column nowrap);
6
- @include justify-content(space-between);
7
- @include align-content(center);
8
- @include align-items(flex-end);
9
- }
10
-
11
- .flex-item {
12
- @include flex(1 1 auto);
13
- @include align-self(flex-start);
14
- @include order(2);
15
- }
16
-
17
- $flex-legacy-enabled: true;
18
- .flex-legacy {
19
- @include display-flex;
20
- @include flex-flow(row nowrap);
21
- @include justify-content(flex-end);
22
- @include align-content(flex-start);
23
- @include align-items(baseline);
24
- }
25
-
26
- .flex-item-legacy {
27
- @include flex(2 1 20em);
28
- @include align-self(stretch);
29
- @include order(3);
30
- }
31
- $flex-wrap-required: true;
32
- .flex-legacy {
33
- @include display-flex;
34
- @include flex-flow(row wrap);
35
- @include justify-content(space-around);
36
- @include align-content(stretch);
37
- @include align-items(flex-start);
38
- }
39
-
40
- .flex-item-legacy {
41
- @include flex(1 2 50%);
42
- @include align-self(flex-start);
43
- @include order(1);
24
+ @include flex(1 0 auto);
25
+ }
26
+
27
+ .flex-grow {
28
+ @include flex-grow(1);
29
+ }
30
+
31
+ .flex-shrink {
32
+ @include flex-shrink(1);
33
+ }
34
+
35
+ .flex-basis {
36
+ @include flex-basis(auto);
37
+ }
38
+
39
+ .justify-content {
40
+ @include justify-content(flex-start);
41
+ }
42
+
43
+ .align-items {
44
+ @include align-items(flex-start);
45
+ }
46
+
47
+ .align-self {
48
+ @include align-self(flex-start);
49
+ }
50
+
51
+ .align-content {
52
+ @include align-content(flex-start);
53
+ }
54
+
55
+ .flexbox {
56
+ @include flexbox((
57
+ display: flex,
58
+ flex-direction: row-reverse,
59
+ flex-wrap: wrap-reverse,
60
+ flex-flow: row-reverse wrap-reverse,
61
+ order: 1,
62
+ flex: 1 0 auto,
63
+ flex-grow: 1,
64
+ flex-shrink: 0,
65
+ flex-basis: auto,
66
+ justify-content: flex-start,
67
+ align-items: flex-start,
68
+ align-self: flex-start,
69
+ align-content: flex-start
70
+ ));
71
+ }
72
+
73
+ .flexbox-2 {
74
+ @include flexbox((
75
+ display: flexbox,
76
+ flex-flow: row-reverse,
77
+ flex-order: 1,
78
+ ), $version: 2);
79
+ }
80
+
81
+ .flexbox-1 {
82
+ @include flexbox((
83
+ display: box,
84
+ box-orient: vertical,
85
+ box-ordinal-group: 1,
86
+ box-flex: 1,
87
+ ), $version: 1);
44
88
  }
@@ -1,6 +1,7 @@
1
1
  @import compass/css3/images
2
2
 
3
- $experimental-support-for-svg: true
3
+ $svg-gradient-shim-threshold: 0
4
+
4
5
  .bg-shortcut-simple-image
5
6
  +background(#fff url('foo.png'))
6
7
 
@@ -77,7 +78,7 @@ $experimental-support-for-svg: true
77
78
  .content-with-gradient
78
79
  +content(radial-gradient(lime, red 10px))
79
80
 
80
- $experimental-support-for-svg: false
81
+ $svg-gradient-shim-threshold: 10
81
82
 
82
83
  .bg-linear-gradient-no-position
83
84
  +background-image(linear-gradient(#ddd, #aaa))
@@ -1,13 +1,38 @@
1
1
  @import "compass/css3/selection";
2
2
 
3
- @include selection {
4
- background-color: #fe57a1;
5
- color: #fff;
3
+ * {
4
+ @include selection {
5
+ background-color: #fe57a1;
6
+ color: #fff;
7
+ }
6
8
  }
7
9
 
8
10
  .hot-pink {
9
- @include selection("&") {
11
+ @include selection {
10
12
  background-color: #fe57a1;
11
13
  color: #fff;
12
14
  }
13
15
  }
16
+
17
+ .hot-pink-with-arguments {
18
+ @include selection(#fe57a1, #fff);
19
+ }
20
+
21
+ .hot-pink-with-arguments-and-extra-stuff {
22
+ @include selection(#fe57a1, #fff) {
23
+ text-decoration: line-through;
24
+ }
25
+ }
26
+
27
+ .hot-pink-with-default-foreground {
28
+ @include selection(#fe57a1);
29
+ }
30
+
31
+ .browser-support-is-considered {
32
+ @include selection(#fe57a1) {
33
+ prefix: $current-prefix;
34
+ -moz-prefix: $current-prefix == -moz;
35
+ -ms-prefix: $current-prefix == -ms;
36
+ -webkit-prefix: $current-prefix == -webkit;
37
+ }
38
+ }
@@ -0,0 +1,7 @@
1
+ $flag_states-sprite-dimensions: true;
2
+ $flag_states-class-separator: "_";
3
+
4
+ @import "flag_states/*.png";
5
+
6
+ @include all-flag_states-sprites;
7
+
@@ -0,0 +1,137 @@
1
+ @import "compass/css3/animation";
2
+ @import "compass/css3/opacity";
3
+ @import "true";
4
+
5
+ $some-default-value: some default value;
6
+ @function has-default-arglist($arglist...) {
7
+ @return set-arglist-default($arglist, $some-default-value);
8
+ }
9
+
10
+ @mixin with-declared-support($browsers) {
11
+ $old-browsers: $supported-browsers;
12
+ $supported-browsers: $browsers;
13
+ @content;
14
+ $supported-browsers: $old-browsers;
15
+ }
16
+
17
+ @mixin with-declared-minimums($supported-browsers) {
18
+ $old-mins: $browser-minimum-versions;
19
+ $browser-minimum-versions: $supported-browsers;
20
+ @content;
21
+ $browser-minimum-versions: $old-mins;
22
+ }
23
+
24
+ @include test-module('Compass Support') {
25
+ @include test('[function] set-arglist-default() with no arguments') {
26
+ @include assert-true(
27
+ has-default-arglist() == $some-default-value,
28
+ 'No arguments should get a default value.');
29
+ }
30
+ @include test('[function] set-arglist-default() with a "default" argument') {
31
+ @include assert-true(
32
+ nth(has-default-arglist(default), 1) == $some-default-value,
33
+ 'an argument of "default" should get a default value.');
34
+ }
35
+ @include test('[function] set-arglist-default() with a "default" argument and another argument') {
36
+ @include assert-true(
37
+ has-default-arglist(default, some other value) == ($some-default-value, some other value),
38
+ 'an argument of "default" should get a default value.');
39
+ }
40
+ @include test('[function] set-arglist-default() with a "default" argument not first and another argument') {
41
+ @include assert-true(
42
+ has-default-arglist(some other value, default) == (some other value, $some-default-value),
43
+ 'an argument of "default" should get a default value.');
44
+ }
45
+
46
+ @include test('[function] support-legacy-browser() from threshold') {
47
+ @include assert-true(support-legacy-browser('ie', '6', 0.00000001),
48
+ "should be supported because of user support threshold.");
49
+ @include assert-false(support-legacy-browser('ie', '6', 10.000),
50
+ "should not be supported because of support threshold.");
51
+ }
52
+
53
+ @include test('[function] support-legacy-browser() from minimums') {
54
+ @include with-declared-minimums(('ie': '7')) {
55
+ @include assert-true(support-legacy-browser('ie', '7', 10.00),
56
+ "should be supported because of minimum version.");
57
+ @include assert-false(support-legacy-browser('ie', '6', 10.000),
58
+ "should not be supported because of minimum version.");
59
+ }
60
+ }
61
+
62
+ @include test('[function] browser-out-of-scope() with no scope') {
63
+ @include assert-true(not browser-out-of-scope('ie'), "should be in scope.");
64
+ @include assert-true(not browser-out-of-scope('chrome'), "should be in scope.");
65
+ }
66
+
67
+ @include test('[function] browser-out-of-scope() with a scope') {
68
+ @include with-prefix(browser-prefix('chrome')) {
69
+ @include assert-true(not browser-out-of-scope('chrome'), "should be in scope.");
70
+ @include assert-false(not browser-out-of-scope('ie'), "should not be in scope.");
71
+ }
72
+ }
73
+
74
+ @include test('[function] browser-out-of-scope() with version') {
75
+ @include with-browser-minimums((ie: '8')) {
76
+ @include assert-true(not browser-out-of-scope('ie', '10'), "should be in scope.");
77
+ @include assert-true(not browser-out-of-scope('ie', '8'), "should be in scope.");
78
+ @include assert-false(not browser-out-of-scope('ie', '7'), "should not be in scope.");
79
+ }
80
+ }
81
+
82
+ @include test('[mixin] with-prefix()') {
83
+ @include assert-true($current-prefix == null, "should be null.");
84
+ @include with-prefix(-webkit) {
85
+ @include assert-true($current-prefix == -webkit, "should be set.");
86
+ $called: false;
87
+ @include with-prefix(-webkit) {
88
+ $called: true;
89
+ }
90
+ @include assert-true($called, "should be called.");
91
+ $called: false;
92
+ @include with-prefix(-ms) {
93
+ $called: true;
94
+ }
95
+ @include assert-false($called, "should not be called.");
96
+ }
97
+ }
98
+
99
+ @include test('[mixin] with-each-prefix()') {
100
+ $prefixes: ();
101
+ @include with-each-prefix(css-regions, 0.0001) {
102
+ $prefixes: append($prefixes, $current-prefix);
103
+ }
104
+ @include assert-equal((-ms -webkit null), $prefixes, "Not equal");
105
+ }
106
+
107
+ @include test('[mixin] with-each-prefix() respects $supported-browsers') {
108
+ @include with-declared-support("ie") {
109
+ $prefixes: ();
110
+ @include with-each-prefix(css-regions, 0.0001) {
111
+ $prefixes: append($prefixes, $current-prefix);
112
+ }
113
+ @include assert-equal((-ms null), $prefixes, "Not equal");
114
+ }
115
+ }
116
+
117
+ @include test('[mixin] with-each-prefix() respects $current-prefix') {
118
+ @include with-prefix(-webkit) {
119
+ $prefixes: ();
120
+ @include with-each-prefix(css-regions, 0.0001) {
121
+ $prefixes: append($prefixes, $current-prefix);
122
+ }
123
+ @include assert-equal(false, index($prefixes, null), "Not not have a null");
124
+ @include assert-equal("-webkit", #{$prefixes}, "Not equal");
125
+ }
126
+ }
127
+ }
128
+
129
+ @include with-browser-support-debugging {
130
+ @include keyframes(foo) {
131
+ 0% { @include opacity(0); }
132
+ 100% { @include opacity(1); }
133
+ }
134
+ .foo {
135
+ @include animation(foo 1s);
136
+ }
137
+ }
@@ -2,7 +2,6 @@
2
2
 
3
3
  .single-transition-without-delay { @include single-transition(all, 0.6s, ease-out); }
4
4
  .single-transition-with-delay { @include single-transition(all, 0.6s, ease-out, 0.2s); }
5
- .transition-duration-string { @include transition-duration("0.2s, 0.5s, 0.2s"); }
6
5
  .transition-duration-list { @include transition-duration((0.2s, 0.5s, 0.2s)); }
7
6
  .multiple-transition-durations { @include transition-duration(0.2s, 0.5s, 0.2s); }
8
7
  .single-transform-transition-without-delay { @include single-transition(transform, 0.6s, ease-out); }
@@ -16,9 +15,7 @@
16
15
  .transition-timing { @include transition-timing-function(ease-in); }
17
16
  .transition-timings { @include transition-timing-function(ease-in, cubic-bezier(1,0,1,0)); }
18
17
  .transition-timings-list { @include transition-timing-function((ease-in, cubic-bezier(1,0,1,0))); }
19
- .transition-timings-string { @include transition-timing-function("ease-in, cubic-bezier(1,0,1,0)"); }
20
18
  .transition-delay { @include transition-delay(1s); }
21
19
  .transition-delays { @include transition-delay(1s, 2s, 3s); }
22
20
  .transition-delays-list { @include transition-delay((1s, 2s, 3s)); }
23
- .transition-delays-string { @include transition-delay("1s, 2s, 3s"); }
24
21
  .regression-912 { @include transition((background-color 0.5s ease-in 0s, width 0.5s ease-out 0s, height 0.5s ease-in 0s, top 0.5s ease-out 0s)); }
@@ -0,0 +1,3 @@
1
+ @import "compass/typography/links/hover-link";
2
+
3
+ a { @include hover-link; }
@@ -4,14 +4,25 @@
4
4
  @include user-select(none);
5
5
  }
6
6
 
7
- @include input-placeholder {
8
- color: #bfbfbf;
9
- font-style: italic;
7
+ * {
8
+ @include input-placeholder {
9
+ color: #bfbfbf;
10
+ font-style: italic;
11
+ }
10
12
  }
11
13
 
12
- .input-placeholder {
13
- @include input-placeholder("&") {
14
+ #{elements-of-type(text-input)} {
15
+ @include input-placeholder {
14
16
  color: #bfbfbf;
15
17
  font-style: italic;
16
18
  }
17
19
  }
20
+
21
+ .sets-up-browser-support-for-content {
22
+ @include input-placeholder {
23
+ prefix: $current-prefix;
24
+ -moz-prefix: $current-prefix == -moz;
25
+ -ms-prefix: $current-prefix == -ms;
26
+ -webkit-prefix: $current-prefix == -webkit;
27
+ }
28
+ }
@@ -11,10 +11,10 @@
11
11
  @include pie-clearfix;
12
12
  }
13
13
 
14
- p.light { @include contrasted(#B0201E); }
15
- p.dark { @include contrasted(#5F1210); }
16
- p.light-with-args { @include contrasted(#B0201E, green, blue); }
17
- p.dark-with-args { @include contrasted(#5F1210, green, blue); }
14
+ p.light { @include contrasted(#f3aead); }
15
+ p.dark { @include contrasted(#a22321); }
16
+ p.light-with-args { @include contrasted(#f3aead, blue, yellow); }
17
+ p.dark-with-args { @include contrasted(#a22321, blue, yellow); }
18
18
 
19
19
 
20
20
  @include alternating-rows-and-columns(red, white, blue);
@@ -1,10 +1,10 @@
1
1
  .env {
2
2
  env: <%= options[:environment] %>; }
3
3
  .time {
4
- time: "<%= Time.now.strftime("%F") %>"; }
4
+ time: <%= Time.now.strftime("%F") %>; }
5
5
  .date {
6
- date: "<%= Time.now.strftime("%F") %>"; }
6
+ date: <%= Time.now.strftime("%F") %>; }
7
7
  .filename {
8
- file: <%= filename.gsub(%r{/scss/}, '/sass/') %>; }
8
+ file: env.scss; }
9
9
  .output {
10
- output: <%= output_file %>; }
10
+ output: env.css; }
@@ -2,13 +2,13 @@
2
2
  env: production; }
3
3
 
4
4
  .time {
5
- time: "2013-04-03"; }
5
+ time: 2013-10-12; }
6
6
 
7
7
  .date {
8
- date: "2013-04-03"; }
8
+ date: 2013-10-12; }
9
9
 
10
10
  .filename {
11
- file: /Volumes/SSD/Work/compass/test/fixtures/stylesheets/envtest/sass/env.scss; }
11
+ file: env.scss; }
12
12
 
13
13
  .output {
14
- output: /Volumes/SSD/Work/compass/test/fixtures/stylesheets/envtest/tmp/env.css; }
14
+ output: env.css; }
@@ -45,7 +45,6 @@ class SpritesTest < Test::Unit::TestCase
45
45
  end
46
46
 
47
47
  def render(scss)
48
- scss = %Q(@import "compass"; #{scss})
49
48
  options = Compass.sass_engine_options
50
49
  options[:line_comments] = false
51
50
  options[:style] = :expanded
@@ -931,6 +930,7 @@ class SpritesTest < Test::Unit::TestCase
931
930
 
932
931
  it "should replace text with images and dimensions using sprites" do
933
932
  css = render <<-SCSS
933
+ @import "compass/utilities/sprites/sprite-img";
934
934
  @import "colors/*.png";
935
935
  .blue {
936
936
  @include sprite-replace-text($colors-sprites, blue);
@@ -1082,4 +1082,33 @@ class SpritesTest < Test::Unit::TestCase
1082
1082
  assert_correct clean(css), clean(other_css)
1083
1083
  end
1084
1084
 
1085
+ it "should render correct sprite with focus selector" do
1086
+ css = render <<-SCSS
1087
+ @import "focus/*.png";
1088
+ @include all-focus-sprites;
1089
+ SCSS
1090
+ assert_correct css, <<-CSS
1091
+ .focus-sprite, .focus-ten-by-ten {
1092
+ background-image: url('/focus-sb5d1467be1.png');
1093
+ background-repeat: no-repeat;
1094
+ }
1095
+
1096
+ .focus-ten-by-ten {
1097
+ background-position: 0 0;
1098
+ }
1099
+ .focus-ten-by-ten:hover, .focus-ten-by-ten.ten-by-ten-hover {
1100
+ background-position: 0 -30px;
1101
+ }
1102
+ .focus-ten-by-ten:target, .focus-ten-by-ten.ten-by-ten-target {
1103
+ background-position: 0 -40px;
1104
+ }
1105
+ .focus-ten-by-ten:active, .focus-ten-by-ten.ten-by-ten-active {
1106
+ background-position: 0 -10px;
1107
+ }
1108
+ .focus-ten-by-ten:focus, .focus-ten-by-ten.ten-by-ten-focus {
1109
+ background-position: 0 -20px;
1110
+ }
1111
+ CSS
1112
+ end
1113
+
1085
1114
  end