compass 0.10.6 → 0.11.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. data/Rakefile +6 -6
  2. data/VERSION.yml +3 -3
  3. data/examples/blueprint_default/parts/forms.html.haml +8 -0
  4. data/examples/css3/src/main.scss +4 -0
  5. data/features/command_line.feature +20 -3
  6. data/features/step_definitions/command_line_steps.rb +7 -1
  7. data/frameworks/blueprint/stylesheets/_blueprint.scss +2 -12
  8. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +34 -34
  9. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -28
  10. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +3 -3
  11. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +2 -2
  12. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +14 -16
  13. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +39 -37
  14. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +17 -15
  15. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +53 -44
  16. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +26 -26
  17. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +13 -20
  18. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +32 -44
  19. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +10 -12
  20. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +18 -32
  21. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +50 -25
  22. data/frameworks/compass/stylesheets/compass/_css3.scss +1 -15
  23. data/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
  24. data/frameworks/compass/stylesheets/compass/_support.scss +4 -0
  25. data/frameworks/compass/stylesheets/compass/css3/_box-shadow-v2.scss +98 -0
  26. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +7 -40
  27. data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -1
  28. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +23 -18
  29. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +2 -3
  30. data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +66 -42
  31. data/frameworks/compass/stylesheets/compass/css3/_images.scss +52 -0
  32. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +1 -1
  33. data/frameworks/compass/stylesheets/compass/css3/_text-shadow-v2.scss +72 -0
  34. data/frameworks/compass/stylesheets/compass/css3/_transform-v2.scss +584 -0
  35. data/frameworks/compass/stylesheets/compass/css3/_version-1.scss +16 -0
  36. data/frameworks/compass/stylesheets/compass/css3/_version-2.scss +16 -0
  37. data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +24 -0
  38. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +4 -4
  39. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +5 -1
  40. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +7 -1
  41. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +7 -1
  42. data/lib/compass/actions.rb +1 -1
  43. data/lib/compass/app_integration/rails/actionpack3/railtie.rb +18 -0
  44. data/lib/compass/app_integration/rails/configuration_defaults.rb +22 -0
  45. data/lib/compass/app_integration/rails/installer.rb +77 -34
  46. data/lib/compass/app_integration/rails/runtime.rb +3 -0
  47. data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -1
  48. data/lib/compass/commands/print_version.rb +1 -1
  49. data/lib/compass/commands/update_project.rb +2 -2
  50. data/lib/compass/commands/write_configuration.rb +10 -1
  51. data/lib/compass/compiler.rb +1 -5
  52. data/lib/compass/configuration.rb +2 -1
  53. data/lib/compass/configuration/adapters.rb +2 -1
  54. data/lib/compass/configuration/comments.rb +34 -1
  55. data/lib/compass/configuration/helpers.rb +3 -7
  56. data/lib/compass/configuration/paths.rb +1 -1
  57. data/lib/compass/exec/project_options_parser.rb +4 -0
  58. data/lib/compass/installers/base.rb +1 -1
  59. data/lib/compass/logger.rb +4 -2
  60. data/lib/compass/sass_extensions/functions.rb +6 -3
  61. data/lib/compass/sass_extensions/functions/colors.rb +58 -0
  62. data/lib/compass/sass_extensions/functions/constants.rb +1 -1
  63. data/lib/compass/sass_extensions/functions/display.rb +4 -2
  64. data/lib/compass/sass_extensions/functions/gradient_support.rb +343 -25
  65. data/lib/compass/sass_extensions/functions/if.rb +9 -0
  66. data/lib/compass/sass_extensions/functions/inline_image.rb +9 -3
  67. data/lib/compass/sass_extensions/functions/trig.rb +27 -0
  68. data/lib/compass/version.rb +6 -1
  69. data/lib/rails/init.rb +2 -0
  70. data/test/command_line_test.rb +6 -9
  71. data/test/compass_test.rb +2 -0
  72. data/test/configuration_test.rb +20 -0
  73. data/test/fixtures/stylesheets/blueprint/css/ie.css +16 -0
  74. data/test/fixtures/stylesheets/blueprint/css/screen.css +37 -34
  75. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +5 -5
  76. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +7 -5
  77. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +5 -5
  78. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +16 -0
  79. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +12 -9
  80. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +23 -64
  81. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +13 -37
  82. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +5 -5
  83. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +4 -4
  84. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +12 -15
  85. data/test/fixtures/stylesheets/compass/config.rb +2 -0
  86. data/test/fixtures/stylesheets/compass/css/box.css +6 -13
  87. data/test/fixtures/stylesheets/compass/css/box_shadow.css +17 -0
  88. data/test/fixtures/stylesheets/compass/css/columns.css +47 -0
  89. data/test/fixtures/stylesheets/compass/css/gradients.css +240 -25
  90. data/test/fixtures/stylesheets/compass/css/lists.css +12 -4
  91. data/test/fixtures/stylesheets/compass/css/print.css +1 -1
  92. data/test/fixtures/stylesheets/compass/css/reset.css +2 -2
  93. data/test/fixtures/stylesheets/compass/css/stretching.css +66 -0
  94. data/test/fixtures/stylesheets/compass/css/transform.css +305 -0
  95. data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +5 -0
  96. data/test/fixtures/stylesheets/compass/sass/columns.scss +10 -0
  97. data/test/fixtures/stylesheets/compass/sass/gradients.sass +151 -19
  98. data/test/fixtures/stylesheets/compass/sass/stretching.sass +34 -0
  99. data/test/fixtures/stylesheets/compass/sass/transform.scss +87 -0
  100. data/test/sass_extensions_test.rb +44 -0
  101. metadata +42 -96
  102. data/frameworks/_blueprint_deprecated_imports/stylesheets/_blueprint.sass +0 -2
  103. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_buttons.sass +0 -2
  104. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_colors.sass +0 -2
  105. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_debug.sass +0 -2
  106. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_fancy_type.sass +0 -2
  107. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_form.sass +0 -2
  108. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_grid.sass +0 -2
  109. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_ie.sass +0 -2
  110. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_interaction.sass +0 -2
  111. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_link_icons.sass +0 -2
  112. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_liquid.sass +0 -2
  113. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_print.sass +0 -2
  114. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_reset.sass +0 -2
  115. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_rtl.sass +0 -2
  116. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_scaffolding.sass +0 -2
  117. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_screen.sass +0 -2
  118. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_typography.sass +0 -2
  119. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_utilities.sass +0 -2
  120. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_buttons.sass +0 -2
  121. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_colors.sass +0 -2
  122. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_debug.sass +0 -2
  123. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_fancy_type.sass +0 -2
  124. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_form.sass +0 -2
  125. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_grid.sass +0 -2
  126. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_interaction.sass +0 -2
  127. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_link_icons.sass +0 -2
  128. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_liquid.sass +0 -2
  129. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass +0 -2
  130. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_rtl.sass +0 -2
  131. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_scaffolding.sass +0 -2
  132. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_typography.sass +0 -2
  133. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_utilities.sass +0 -2
  134. data/frameworks/_compass_deprecated_imports/stylesheets/_compass.sass +0 -2
  135. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_css3.sass +0 -2
  136. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_layout.sass +0 -2
  137. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass +0 -1
  138. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.scss +0 -22
  139. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_reset.sass +0 -2
  140. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_utilities.sass +0 -2
  141. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_clip.sass +0 -2
  142. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_origin.sass +0 -2
  143. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_size.sass +0 -2
  144. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_border_radius.sass +0 -2
  145. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_shadow.sass +0 -2
  146. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_sizing.sass +0 -2
  147. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_columns.sass +0 -2
  148. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_font_face.sass +0 -2
  149. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_gradient.sass +0 -2
  150. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass +0 -2
  151. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_opacity.sass +0 -2
  152. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_text_shadow.sass +0 -2
  153. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transform.sass +0 -2
  154. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transition.sass +0 -2
  155. data/frameworks/_compass_deprecated_imports/stylesheets/compass/layout/_sticky_footer.sass +0 -2
  156. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_general.sass +0 -2
  157. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_links.sass +0 -2
  158. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_lists.sass +0 -2
  159. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_print.sass +0 -2
  160. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_sprites.sass +0 -2
  161. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_tables.sass +0 -2
  162. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_text.sass +0 -2
  163. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_clearfix.sass +0 -2
  164. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_float.sass +0 -2
  165. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_hacks.sass +0 -2
  166. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_min.sass +0 -2
  167. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_reset.sass +0 -2
  168. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  169. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tag_cloud.sass +0 -2
  170. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_hover_link.sass +0 -2
  171. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_link_colors.sass +0 -2
  172. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_unstyled_link.sass +0 -2
  173. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_bullets.sass +0 -2
  174. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_horizontal_list.sass +0 -2
  175. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_inline_list.sass +0 -2
  176. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/sprites/_sprite_img.sass +0 -2
  177. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +0 -2
  178. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_borders.sass +0 -2
  179. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_scaffolding.sass +0 -2
  180. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_ellipsis.sass +0 -2
  181. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_nowrap.sass +0 -2
  182. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_replacement.sass +0 -2
@@ -26,19 +26,15 @@
26
26
  //| <pre class="source-code sass">
27
27
  //| +blueprint-ie("body#page-1, body#page-2, body.a-special-page-type")
28
28
  //| </pre>
29
- @mixin blueprint-ie($body_selector: body) {
30
- @if $body_selector == true {
29
+ @mixin blueprint-ie($nested: false) {
30
+ @if $nested {
31
31
  @include blueprint-ie-body;
32
- @include blueprint-ie-defaults; }
33
- @else {
34
- #{$body_selector} {
35
- @include blueprint-ie-body;
36
- @if $body_selector != "body" {
37
- @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint-ie, pass true as the first argument and mix it into #{$body_selector}.";
38
- @include blueprint-ie-defaults; } }
39
- @if $body_selector == "body" {
40
- @include blueprint-ie-defaults; } } }
41
-
32
+ @include blueprint-ie-defaults;
33
+ } @else {
34
+ body { @include blueprint-ie-body; }
35
+ @include blueprint-ie-defaults;
36
+ }
37
+ }
42
38
  @mixin blueprint-ie-body {
43
39
  text-align: center;
44
40
  @include blueprint-ie-hacks; }
@@ -56,9 +52,6 @@
56
52
  @mixin blueprint-inline-form-ie {
57
53
  div, p {
58
54
  vertical-align: middle; }
59
- label {
60
- position: relative;
61
- top: -0.25em; }
62
55
  input {
63
56
  &.checkbox, &.radio, &.button, button {
64
57
  margin: 0.5em 0; } } }
@@ -76,8 +69,17 @@
76
69
  -ms-interpolation-mode: bicubic; }
77
70
  fieldset {
78
71
  padding-top: 0; }
72
+ legend {
73
+ margin-top: -0.2em;
74
+ margin-bottom: 1em;
75
+ margin-left: -0.5em; }
76
+ fieldset, #IE8#HACK {padding-top:1.4em;}
77
+ legend, #IE8#HACK {margin-top:0;margin-bottom:0;}
79
78
  textarea {
80
79
  overflow: auto; }
80
+ label {
81
+ position: relative;
82
+ top: -0.25em; }
81
83
  input {
82
84
  &.text {
83
85
  margin: 0.5em 0;
@@ -1,57 +1,66 @@
1
1
  @import "colors";
2
2
 
3
3
  @mixin blueprint-interaction {
4
- .error {
5
- @include error; }
6
- .notice {
7
- @include notice; }
8
- .success {
9
- @include success; }
10
- .hide {
11
- display: none; }
12
- .highlight {
13
- @include highlight; }
14
- .added {
15
- @include added; }
16
- .removed {
17
- @include removed; } }
4
+ .feedback { @include feedback-base; }
5
+ .error { @include error(feedback); }
6
+ .alert { @extend .error; }
7
+ .notice { @include notice(feedback); }
8
+ .success { @include success(feedback); }
9
+ .info { @include info(feedback); }
10
+ .hide { display: none; }
11
+ .highlight { @include highlight; }
12
+ .added { @include added; }
13
+ .removed { @include removed; }
14
+ }
18
15
 
19
16
  @mixin feedback-base {
20
17
  padding: 0.8em;
21
18
  margin-bottom: 1em;
22
- border: 2px solid $feedback_border_color; }
23
-
24
- @mixin error {
25
- @include feedback-base;
26
- background: $error_bg_color;
27
- color: $error_color;
28
- border-color: $error_border_color;
29
- a {
30
- color: $error_color; } }
31
-
32
- @mixin notice {
33
- @include feedback-base;
34
- background: $notice_bg_color;
35
- color: $notice_color;
36
- border-color: $notice_border_color;
37
- a {
38
- color: $notice_color; } }
39
-
40
- @mixin success {
41
- @include feedback-base;
42
- background: $success_bg_color;
43
- color: $success_color;
44
- border-color: $success_border_color;
45
- a {
46
- color: $success_color; } }
19
+ border: 2px solid $feedback-border-color; }
20
+
21
+ @mixin error($feedback-base-class: false) {
22
+ @if $feedback-base-class { @extend .#{$feedback-base-class}; }
23
+ @else { @include feedback-base; }
24
+ background: $error-bg-color;
25
+ color: $error-color;
26
+ border-color: $error-border-color;
27
+ a { color: $error-color; }
28
+ }
29
+
30
+ @mixin notice($feedback-base-class: false) {
31
+ @if $feedback-base-class { @extend .#{$feedback-base-class}; }
32
+ @else { @include feedback-base; }
33
+ background: $notice-bg-color;
34
+ color: $notice-color;
35
+ border-color: $notice-border-color;
36
+ a { color: $notice-color; }
37
+ }
38
+
39
+ @mixin success($feedback-base-class: false) {
40
+ @if $feedback-base-class { @extend .#{$feedback-base-class}; }
41
+ @else { @include feedback-base; }
42
+ background: $success-bg-color;
43
+ color: $success-color;
44
+ border-color: $success-border-color;
45
+ a { color: $success-color; }
46
+ }
47
+
48
+ @mixin info($feedback-base-class: false) {
49
+ @if $feedback-base-class { @extend .#{$feedback-base-class}; }
50
+ @else { @include feedback-base; }
51
+ background: $info-bg-color;
52
+ color: $info-color;
53
+ border-color: $info-border-color;
54
+ a { color: $info-color; }
55
+ }
47
56
 
48
57
  @mixin highlight {
49
- background: $highlight_color; }
58
+ background: $highlight-color; }
50
59
 
51
60
  @mixin added {
52
- background: $added_bg_color;
53
- color: $added_color; }
61
+ background: $added-bg-color;
62
+ color: $added-color; }
54
63
 
55
64
  @mixin removed {
56
- background: $removed_bg_color;
57
- color: $removed_color; }
65
+ background: $removed-bg-color;
66
+ color: $removed-color; }
@@ -18,7 +18,7 @@
18
18
  // * Andrei Michael Herasimchuk
19
19
  // Involution Studios, http://www.involutionstudios.com
20
20
  // Read more about using a grid here:
21
- // * subtraction.com/archives/2007/0318_oh_yeeaahh.php
21
+ // * subtraction.com/archives/2007/0318-oh-yeeaahh.php
22
22
  // -----
23
23
  // By default, the grid is 80% of window width, with 24 columns.
24
24
  //
@@ -36,58 +36,58 @@
36
36
 
37
37
  // Main layout grid, override these constants to build your grid and container sizes.
38
38
  // The width shown gives the right floored percentage values.
39
- $blueprint_liquid_grid_columns: 24 !default;
39
+ $blueprint-liquid-grid-columns: 24 !default;
40
40
 
41
- $blueprint_liquid_grid_width: 3.167% !default;
41
+ $blueprint-liquid-grid-width: 3.167% !default;
42
42
 
43
- $blueprint_liquid_grid_margin: 1.042% !default;
43
+ $blueprint-liquid-grid-margin: 1.042% !default;
44
44
 
45
45
  // Do not edit below this line unless you really know what you're doing.
46
- $blueprint_liquid_container_width: 80% !default;
46
+ $blueprint-liquid-container-width: 80% !default;
47
47
 
48
- $blueprint_liquid_container_min_width: 950px !default;
48
+ $blueprint-liquid-container-min-width: 950px !default;
49
49
 
50
- $blueprint_liquid_grid_push_pull: -($blueprint_liquid_grid_margin + $blueprint_liquid_grid_width) !default;
50
+ $blueprint-liquid-grid-push-pull: -($blueprint-liquid-grid-margin + $blueprint-liquid-grid-width) !default;
51
51
 
52
52
  @mixin blueprint-liquid-grid {
53
53
  // A container should group all your columns
54
54
  .container {
55
55
  @include container; }
56
56
  // Use these classes (or mixins) to set the width of a column.
57
- @for $n from 1 to $blueprint_liquid_grid_columns + 1 {
57
+ @for $n from 1 to $blueprint-liquid-grid-columns + 1 {
58
58
  .span-#{$n} {
59
59
  @include span($n); }
60
60
  div {
61
61
  &.span-#{$n} {
62
- @include column($n, $n == $blueprint_liquid_grid_columns); } } }
62
+ @include column($n, $n == $blueprint-liquid-grid-columns); } } }
63
63
  // The last column in a row needs this class (or mixin) or it will end up on the next row.
64
64
  div.last {
65
65
  @include last; }
66
66
  // Add these to a column to append empty cols.
67
- @for $n from 1 to $blueprint_liquid_grid_columns {
67
+ @for $n from 1 to $blueprint-liquid-grid-columns {
68
68
  .append-#{$n} {
69
69
  @include append($n); } }
70
70
  // Add these to a column to prepend empty cols.
71
- @for $n from 1 to $blueprint_liquid_grid_columns {
71
+ @for $n from 1 to $blueprint-liquid-grid-columns {
72
72
  .prepend-#{$n} {
73
73
  @include prepend($n); } }
74
74
  // Use these classes on an element to push it into the
75
75
  // next column, or to pull it into the previous column.
76
- @for $n from 1 to $blueprint_liquid_grid_columns + 1 {
76
+ @for $n from 1 to $blueprint-liquid-grid-columns + 1 {
77
77
  .pull-#{$n} {
78
78
  @include pull($n); } }
79
- @for $n from 1 to $blueprint_liquid_grid_columns + 1 {
79
+ @for $n from 1 to $blueprint-liquid-grid-columns + 1 {
80
80
  .push-#{$n} {
81
81
  @include push($n); } } }
82
82
 
83
83
  @mixin container {
84
- min-width: $blueprint_liquid_container_min_width;
85
- width: $blueprint_liquid_container_width;
84
+ min-width: $blueprint-liquid-container-min-width;
85
+ width: $blueprint-liquid-container-width;
86
86
  margin: 0 auto;
87
87
  @include clearfix; }
88
88
 
89
89
  @mixin span($n, $override: false) {
90
- $width: $blueprint_liquid_grid_width * $n + $blueprint_liquid_grid_margin * ($n - 1);
90
+ $width: $blueprint-liquid-grid-width * $n + $blueprint-liquid-grid-margin * ($n - 1);
91
91
  @if $override {
92
92
  width: $width !important; }
93
93
  @else {
@@ -103,31 +103,31 @@ $blueprint_liquid_grid_push_pull: -($blueprint_liquid_grid_margin + $blueprint_l
103
103
  @if $last {
104
104
  @include last; }
105
105
  @else {
106
- margin-right: $blueprint_liquid_grid_margin; } }
106
+ margin-right: $blueprint-liquid-grid-margin; } }
107
107
 
108
108
  @mixin append($n) {
109
- padding-right: ($blueprint_liquid_grid_width + $blueprint_liquid_grid_margin) * $n; }
109
+ padding-right: ($blueprint-liquid-grid-width + $blueprint-liquid-grid-margin) * $n; }
110
110
 
111
111
  @mixin prepend($n) {
112
- padding-left: ($blueprint_liquid_grid_width + $blueprint_liquid_grid_margin) * $n; }
112
+ padding-left: ($blueprint-liquid-grid-width + $blueprint-liquid-grid-margin) * $n; }
113
113
 
114
114
  @mixin pull($n, $last: false) {
115
- margin-left: $blueprint_liquid_grid_push_pull * $n; }
115
+ margin-left: $blueprint-liquid-grid-push-pull * $n; }
116
116
 
117
117
  @mixin push($n) {
118
118
  @include float-right;
119
119
  margin: {
120
120
  top: 0;
121
- left: $blueprint_liquid_grid_margin;
122
- right: $blueprint_liquid_grid_push_pull * $n;
121
+ left: $blueprint-liquid-grid-margin;
122
+ right: $blueprint-liquid-grid-push-pull * $n;
123
123
  bottom: 0; }; }
124
124
 
125
125
  @mixin border {
126
126
  border-right: 1px solid #eeeeee; }
127
127
 
128
128
  @mixin colborder {
129
- padding-right: $blueprint_liquid_grid_margin * 2;
130
- margin-right: $blueprint_liquid_grid_margin * 2;
129
+ padding-right: $blueprint-liquid-grid-margin * 2;
130
+ margin-right: $blueprint-liquid-grid-margin * 2;
131
131
  @include border; }
132
132
 
133
133
  @mixin colruler {
@@ -137,8 +137,8 @@ $blueprint_liquid_grid_push_pull: -($blueprint_liquid_grid_margin + $blueprint_l
137
137
  width: 100%;
138
138
  height: 0.083em;
139
139
  margin: 0;
140
- margin-left: $blueprint_liquid_grid_margin * 2;
141
- margin-right: $blueprint_liquid_grid_margin * 2;
140
+ margin-left: $blueprint-liquid-grid-margin * 2;
141
+ margin-right: $blueprint-liquid-grid-margin * 2;
142
142
  border: none; }
143
143
 
144
144
  @mixin colspacer {
@@ -16,25 +16,18 @@
16
16
  // body#page-1, body#page-2, body.a-special-page-type
17
17
  // +blueprint-print(true)
18
18
  // </pre>
19
- // Deprecated:
20
- // You can pass the body selector as the first argument when used as a top-level mixin
21
- // <pre class="source-code sass">
22
- // +blueprint-print("body#page-1, body#page-2, body.a-special-page-type")
23
- // </pre>
24
- @mixin blueprint-print($body_selector: body) {
25
- @if $body_selector == true {
19
+ @mixin blueprint-print($nested: false) {
20
+ @if $nested {
26
21
  @include blueprint-print-body;
27
- @include blueprint-print-defaults; }
28
- @else {
29
- #{$body_selector} {
30
- @include blueprint-print-body;
31
- @if $body_selector != "body" {
32
- @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint-print, pass true as the first argument and mix it into #{$body_selector}.";
33
- @include blueprint-print-defaults; } }
34
- @if $body_selector == "body" {
35
- @include blueprint-print-defaults; } } }
22
+ @include blueprint-print-defaults;
23
+ } @else {
24
+ body { @include blueprint-print-body; }
25
+ @include blueprint-print-defaults;
26
+ }
27
+ }
36
28
 
37
- // This style is in blueprint, but I think it's annoying and it doesn't work in all browsers.
29
+ // This style is in blueprint, but it can be annoying and
30
+ // it doesn't work in all browsers.
38
31
  // Feel free to mix it into anchors where you want it.
39
32
  @mixin blueprint-show-link-urls {
40
33
  &:after {
@@ -43,7 +36,7 @@
43
36
 
44
37
  @mixin blueprint-print-body {
45
38
  line-height: 1.5;
46
- font-family: $blueprint_font_family;
39
+ font-family: $blueprint-font-family;
47
40
  color: black;
48
41
  background: none;
49
42
  font-size: 10pt; }
@@ -63,11 +56,11 @@
63
56
  background: white;
64
57
  color: white; } }
65
58
  h1, h2, h3, h4, h5, h6 {
66
- font-family: $blueprint_font_family; }
59
+ font-family: $blueprint-font-family; }
67
60
  code {
68
61
  font: {
69
62
  size: 0.9em;
70
- family: $blueprint_fixed_font_family; }; }
63
+ family: $blueprint-fixed-font-family; }; }
71
64
  a {
72
65
  img {
73
66
  border: none; }
@@ -2,21 +2,21 @@
2
2
  @import "compass/utilities/general/float";
3
3
 
4
4
  // Main layout grid, override these constants to build your grid and container sizes.
5
- $blueprint_grid_columns: 24 !default;
5
+ $blueprint-grid-columns: 24 !default;
6
6
 
7
- $blueprint_grid_width: 30px !default;
7
+ $blueprint-grid-width: 30px !default;
8
8
 
9
- $blueprint_grid_margin: 10px !default;
9
+ $blueprint-grid-margin: 10px !default;
10
10
 
11
- $blueprint_grid_outer_width: $blueprint_grid_width + $blueprint_grid_margin;
11
+ $blueprint-grid-outer-width: $blueprint-grid-width + $blueprint-grid-margin;
12
12
 
13
- $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns - $blueprint_grid_margin;
13
+ $blueprint-container-size: $blueprint-grid-outer-width * $blueprint-grid-columns - $blueprint-grid-margin;
14
14
 
15
15
  // Columns
16
16
  // Note: If you use this mixin without the class and want to support ie6
17
17
  // you must set text-align left on your container element in an IE stylesheet.
18
18
  @mixin container {
19
- width: $blueprint_container_size;
19
+ width: $blueprint-container-size;
20
20
  margin: 0 auto;
21
21
  direction: rtl;
22
22
  @include clearfix; }
@@ -31,26 +31,26 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
31
31
  @if $last {
32
32
  @include last; }
33
33
  @else {
34
- margin-left: $blueprint_grid_margin; }
34
+ margin-left: $blueprint-grid-margin; }
35
35
  text-align: right;
36
36
  * html & {
37
37
  overflow-x: hidden; } }
38
38
 
39
39
  // Mixin to a column to append n empty cols.
40
40
  @mixin append($n) {
41
- padding-left: $blueprint_grid_outer_width * $n; }
41
+ padding-left: $blueprint-grid-outer-width * $n; }
42
42
 
43
43
  // Mixin to a column to prepend n empty cols.
44
44
  @mixin prepend($n) {
45
- padding-right: $blueprint_grid_outer_width * $n; }
45
+ padding-right: $blueprint-grid-outer-width * $n; }
46
46
 
47
47
  // mixin to a column to move it n columns to the left
48
48
  @mixin pull($n, $last: false) {
49
49
  position: relative;
50
50
  @if $last {
51
- margin-right: -$blueprint_grid_outer_width * $n + $blueprint_grid_margin; }
51
+ margin-right: -$blueprint-grid-outer-width * $n + $blueprint-grid-margin; }
52
52
  @else {
53
- margin-right: -$blueprint_grid_outer_width * $n; } }
53
+ margin-right: -$blueprint-grid-outer-width * $n; } }
54
54
 
55
55
  // mixin to a column to push it n columns to the right
56
56
  @mixin push($n) {
@@ -58,20 +58,20 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
58
58
  position: relative;
59
59
  margin: {
60
60
  top: 0;
61
- left: -$blueprint_grid_outer_width * $n;
61
+ left: -$blueprint-grid-outer-width * $n;
62
62
  bottom: 1.5em;
63
- right: $blueprint_grid_outer_width * $n; }; }
63
+ right: $blueprint-grid-outer-width * $n; }; }
64
64
 
65
65
  // Border on left hand side of a column.
66
66
  @mixin border {
67
- padding-left: $blueprint_grid_margin / 2 - 1;
68
- margin-left: $blueprint_grid_margin / 2;
67
+ padding-left: $blueprint-grid-margin / 2 - 1;
68
+ margin-left: $blueprint-grid-margin / 2;
69
69
  border-left: 1px solid #eeeeee; }
70
70
 
71
71
  // Border with more whitespace, spans one column.
72
72
  @mixin colborder {
73
- padding-left: ($blueprint_grid_width - 2 * $blueprint_grid_margin - 1) / 2;
74
- margin-left: ($blueprint_grid_width - 2 * $blueprint_grid_margin) / 2;
73
+ padding-left: ($blueprint-grid-width - 2 * $blueprint-grid-margin - 1) / 2;
74
+ margin-left: ($blueprint-grid-width - 2 * $blueprint-grid-margin) / 2;
75
75
  border-left: 1px solid #eeeeee; }
76
76
 
77
77
  // Usage examples:
@@ -91,41 +91,29 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
91
91
  // body#page-1, body#page-2, body.a-special-page-type
92
92
  // +rtl-typography(true)
93
93
  // </pre>
94
- //
95
- // **Deprecated**:
96
- // You can pass the body selector as the first argument when used as a top-level mixin
97
- // <pre class="source-code sass">
98
- // +rtl-typography("body#page-1, body#page-2, body.a-special-page-type")
99
- // </pre>
100
- @mixin rtl-typography($body_selector: body) {
101
- @if $body_selector == true {
102
- html & {
103
- font-family: Arial, sans-serif; }
94
+ @mixin rtl-typography($nested: false) {
95
+ @if $nested {
96
+ html & { font-family: Arial, sans-serif; }
104
97
  @include rtl-typography-defaults; }
105
98
  @else {
106
- html #{$body_selector} {
107
- font-family: Arial, sans-serif;
108
- @if $body_selector != "body" {
109
- @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +rtl-typography, pass true as the first argument and mix it into #{$body_selector}.";
110
- @include rtl-typography-defaults; } }
111
- @if $body_selector == "body" {
112
- body {
113
- @include rtl-typography-defaults; } } } }
99
+ html body { font-family: Arial, sans-serif; }
100
+ body { @include rtl-typography-defaults; }
101
+ }
102
+ }
114
103
 
115
104
  @mixin rtl-typography-defaults {
116
105
  h1, h2, h3, h4, h5, h6 {
117
106
  font-family: Arial, sans-serif; }
118
107
  pre, code, tt {
119
108
  font-family: monospace; }
120
- p {
121
- img.right {
122
- @include float-left;
123
- margin: 1.5em 1.5em 1.5em 0;
124
- padding: 0; }
125
- img.left {
126
- @include float-right;
127
- margin: 1.5em 0 1.5em 1.5em;
128
- padding: 0; } }
109
+ .right {
110
+ @include float-left;
111
+ margin: 1.5em 1.5em 1.5em 0;
112
+ padding: 0; }
113
+ .left {
114
+ @include float-right;
115
+ margin: 1.5em 0 1.5em 1.5em;
116
+ padding: 0; }
129
117
  dd, ul, ol {
130
118
  margin-left: 0;
131
119
  margin-right: 1.5em; }