compass 0.10.6 → 0.11.alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -15,19 +15,17 @@
15
15
  // +blueprint-scaffolding("body#page-1, body#page-2, body.a-special-page-type")
16
16
  // Alternatively, you can use the +blueprint-scaffolding-body and +blueprint-scaffolding-defaults
17
17
  // mixins to construct your own semantic style rules.
18
-
19
- @mixin blueprint-scaffolding($body_selector: body) {
20
- @if $body_selector != body {
21
- #{$body_selector} {
22
- @include blueprint-scaffolding-defaults;
23
- }
24
- } @else {
25
- @include blueprint-scaffolding-defaults;
18
+ // @deprecated It is no longer necessary to pass any argument.
19
+ @mixin blueprint-scaffolding($nested: deprecated) {
20
+ @if $nested != deprecated {
21
+ @warn "It is no longer necessary to pass any argument to the blueprint-scaffolding mixin."
26
22
  }
23
+ @include blueprint-scaffolding-defaults;
27
24
  }
28
25
 
29
- // The styles this mixin provides were deprecated in Blueprint 0.9 and is no longer part of the
30
- // main scaffolding, but the mixin is still available if you want to use it.
26
+ // The styles this mixin provides were deprecated in Blueprint 0.9 and is no
27
+ // longer part of the main scaffolding, but the mixin is still available if
28
+ // you want to use it.
31
29
  @mixin blueprint-scaffolding-body {
32
30
  margin: 1.5em 0; }
33
31
 
@@ -41,10 +39,10 @@
41
39
  .box {
42
40
  @include box; }
43
41
  // Border on right hand side of a column. You can comment this out if you don't plan to use it.
44
- div.border {
42
+ .border {
45
43
  @include border; }
46
44
  // Border with more whitespace, spans one column.
47
- div.colborder {
45
+ .colborder {
48
46
  @include colborder; }
49
47
  hr {
50
48
  @include colruler; }
@@ -25,27 +25,13 @@ $blueprint-font-size: 12px !default;
25
25
  // body#page-1, body#page-2, body.a-special-page-type
26
26
  // +blueprint-typography(true)
27
27
  // </pre>
28
- //
29
- // **Deprecated**:
30
- // You can pass the body selector as the first argument when used as a top-level mixin
31
- // <pre class="source-code sass">
32
- // +blueprint-typography("body#page-1, body#page-2, body.a-special-page-type")
33
- // </pre>
34
- @mixin blueprint-typography($body-selector: body) {
35
- @if $body-selector == true {
28
+ @mixin blueprint-typography($nested: false) {
29
+ @if $nested {
36
30
  @include blueprint-typography-body;
37
31
  @include blueprint-typography-defaults;
38
32
  } @else {
39
- #{$body-selector} {
40
- @include blueprint-typography-body;
41
- @if $body-selector != body {
42
- @warn "[DEPRECATED] To specify the selector \"#{$body-selector}\" to +blueprint-typography, pass true as the first argument and mix it into #{$body-selector}.";
43
- @include blueprint-typography-defaults;
44
- }
45
- }
46
- @if $body-selector == body {
47
- @include blueprint-typography-defaults;
48
- }
33
+ body { @include blueprint-typography-body; }
34
+ @include blueprint-typography-defaults;
49
35
  }
50
36
  }
51
37
 
@@ -63,42 +49,42 @@ $blueprint-font-size: 12px !default;
63
49
 
64
50
  @mixin blueprint-typography-defaults {
65
51
  #{headers(all)} { @include header-text;
66
- img { margin: 0; } }
52
+ img { margin: 0; } }
67
53
  h1 { font-size: 3em; line-height: 1; margin-bottom: 0.50em; }
68
54
  h2 { font-size: 2em; margin-bottom: 0.75em; }
69
55
  h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1.00em; }
70
56
  h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
71
57
  h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.50em; }
72
58
  h6 { font-size: 1em; font-weight: bold; }
73
- p { margin: 0 0 1.5em;
74
- img.left { @include float-left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
75
- img.right { @include float-right; margin: 1.5em 0 1.5em 1.5em; padding: 0; }
76
- }
59
+ p { margin: 0 0 1.5em;
60
+ .left { @include float-left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
61
+ .right { @include float-right; margin: 1.5em 0 1.5em 1.5em; padding: 0; } }
77
62
  a { text-decoration: underline; @include link-colors($link-color, $link-hover-color, $link-active-color, $link-visited-color, $link-focus-color); }
78
- blockquote { margin: 1.5em; color: $alt_text_color; font-style: italic; }
79
- strong { font-weight: bold; }
80
- em { font-style: italic; }
81
- dfn { font-style: italic; font-weight: bold; }
63
+ blockquote { margin: 1.5em; color: $alt-text-color; font-style: italic; }
64
+ strong, dfn { font-weight: bold; }
65
+ em, dfn { font-style: italic; }
82
66
  sup, sub { line-height: 0; }
83
67
  abbr, acronym { border-bottom: 1px dotted #666666; }
84
68
  address { margin: 0 0 1.5em; font-style: italic; }
85
- del { color: $alt_text_color; }
69
+ del { color: $alt-text-color; }
86
70
  pre { margin: 1.5em 0; white-space: pre; }
87
71
  pre, code, tt { @include fixed-width-text; }
88
72
  li ul, li ol { margin: 0; }
89
- ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 3.333em; }
73
+ ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 1.5em; }
90
74
  ul { list-style-type: disc; }
91
75
  ol { list-style-type: decimal; }
92
76
  dl { margin: 0 0 1.5em 0;
93
- dt { font-weight: bold; } }
77
+ dt { font-weight: bold; } }
94
78
  dd { margin-left: 1.5em; }
95
79
  table { margin-bottom: 1.4em; width: 100%; }
96
80
  th { font-weight: bold; }
97
81
  thead th { background: $blueprint-table-header-color; }
98
82
  th, td, caption { padding: 4px 10px 4px 5px; }
99
- tr.even td { background: $blueprint-table-stripe-color; }
83
+ table.striped tr:nth-child(even) td,
84
+ table tr.even td
85
+ { background: $blueprint-table-stripe-color; }
100
86
  tfoot { font-style: italic; }
101
- caption { background: $blueprint_background_color; }
87
+ caption { background: $blueprint-background-color; }
102
88
  .quiet { @include quiet; }
103
89
  .loud { @include loud; }
104
90
  }
@@ -1,58 +1,83 @@
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, body {
5
- @include blueprint-reset; }
6
- html {
7
- font-size: 100.01%; }
4
+ html { @include blueprint-reset-box-model; }
5
+ body { @extend .bp-reset-element; }
8
6
  @include blueprint-nested-reset; }
9
7
 
10
8
  // Reset all elements within some selector scope.To reset the selector itself,
11
9
  // mixin the appropriate reset mixin for that element type as well. This could be
12
10
  // useful if you want to style a part of your page in a dramatically different way.
13
11
  @mixin blueprint-nested-reset {
14
- div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
15
- pre, a, abbr, acronym, address, code, del, dfn, em, img,
16
- dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
17
- @include blueprint-reset; }
18
- blockquote, q {
19
- @include blueprint-reset-quotation; }
20
- th, td, caption {
21
- @include blueprint-reset-table-cell; }
22
- table {
23
- @include blueprint-reset-table; }
24
- a img {
25
- border: none; } }
12
+ .bp-reset-element,
13
+ div, span, object, iframe, p,
14
+ pre, a, abbr, acronym, address,
15
+ code, del, dfn, em, img,
16
+ dl, dt, dd, ol, ul, li, fieldset,
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)} { @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; }
25
+ }
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; }
30
+ display: block;
31
+ }
26
32
 
27
33
  @mixin blueprint-reset-box-model {
28
34
  margin: 0;
29
35
  padding: 0;
30
- border: 0; }
36
+ border: 0;
37
+ }
31
38
 
32
39
  @mixin blueprint-reset {
33
- @include blueprint-reset-box-model;
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
+ }
51
+ }
52
+
53
+ @mixin blueprint-reset-typography {
34
54
  font: {
35
55
  weight: inherit;
36
56
  style: inherit;
37
57
  size: 100%;
38
58
  family: inherit; };
39
- vertical-align: baseline; }
59
+ vertical-align: baseline;
60
+ }
40
61
 
41
- @mixin blueprint-reset-quotation {
42
- @include blueprint-reset;
62
+ @mixin blueprint-reset-quotation($reset-base-class: false) {
63
+ @if $reset-base-class { @extend .#{$reset-base-class}; }
64
+ @else { @include blueprint-reset; }
43
65
  quotes: "" "";
44
66
  &:before,
45
67
  &:after {
46
68
  content: ""; } }
47
69
 
48
- @mixin blueprint-reset-table-cell {
49
- @include blueprint-reset;
70
+ @mixin blueprint-reset-table-cell($reset-base-class: false) {
71
+ @if $reset-base-class { @extend .#{$reset-base-class}; }
72
+ @else { @include blueprint-reset; }
73
+ float: none !important;
50
74
  text-align: left;
51
75
  font-weight: normal;
52
76
  vertical-align: middle; }
53
77
 
54
- @mixin blueprint-reset-table {
55
- @include blueprint-reset;
78
+ @mixin blueprint-reset-table($reset-base-class: false) {
79
+ @if $reset-base-class { @extend .#{$reset-base-class}; }
80
+ @else { @include blueprint-reset; }
56
81
  border-collapse: separate;
57
82
  border-spacing: 0;
58
83
  vertical-align: middle; }
@@ -1,15 +1 @@
1
- @import "css3/border-radius";
2
- @import "css3/inline-block";
3
- @import "css3/opacity";
4
- @import "css3/box-shadow";
5
- @import "css3/text-shadow";
6
- @import "css3/columns";
7
- @import "css3/box-sizing";
8
- @import "css3/box";
9
- @import "css3/gradient";
10
- @import "css3/background-clip";
11
- @import "css3/background-origin";
12
- @import "css3/background-size";
13
- @import "css3/font-face";
14
- @import "css3/transform";
15
- @import "css3/transition";
1
+ @import "css3/version-1";
@@ -1 +1,2 @@
1
1
  @import "layout/sticky-footer";
2
+ @import "layout/stretching";
@@ -23,3 +23,7 @@ $experimental-support-for-opera : true !default;
23
23
  $experimental-support-for-microsoft : true !default;
24
24
  // Support for khtml in experimental css3 properties.
25
25
  $experimental-support-for-khtml : true !default;
26
+ // Support for svg in experimental css3 properties.
27
+ // Setting this to true might add significant size to your
28
+ // generated stylesheets.
29
+ $experimental-support-for-svg : false !default;
@@ -0,0 +1,98 @@
1
+ // @doc off
2
+ // These defaults make the arguments optional for this mixin
3
+ // If you like, set different defaults before importing.
4
+ // @doc on
5
+
6
+ @import "shared";
7
+
8
+
9
+ // The default color for box shadows
10
+ $default-box-shadow-color: #333333 !default;
11
+
12
+ // The default horizontal offset. Positive is to the right.
13
+ $default-box-shadow-h-offset: 0px !default;
14
+
15
+ // The default vertical offset. Positive is down.
16
+ $default-box-shadow-v-offset: 0px !default;
17
+
18
+ // The default blur length.
19
+ $default-box-shadow-blur: 5px !default;
20
+
21
+ // The default spread length.
22
+ $default-box-shadow-spread : false !default;
23
+
24
+ // The default shadow instet: inset or false (for standard shadow).
25
+ $default-box-shadow-inset : false !default;
26
+
27
+ // Provides cross-browser CSS box shadows for Webkit, Gecko, and CSS3.
28
+ // Arguments are color, horizontal offset, vertical offset, blur length, spread length, and inset.
29
+ @mixin single-box-shadow(
30
+ $color : $default-box-shadow-color,
31
+ $hoff : $default-box-shadow-h-offset,
32
+ $voff : $default-box-shadow-v-offset,
33
+ $blur : $default-box-shadow-blur,
34
+ $spread : $default-box-shadow-spread,
35
+ $inset : $default-box-shadow-inset
36
+ ) {
37
+ @if not ($inset == true or $inset == false or $inset == inset) {
38
+ @warn "$inset expected to be true or the inset keyword. Got #{$inset} instead. Using: inset";
39
+ }
40
+
41
+ @if $color == none {
42
+ @include multiple-box-shadows(none);
43
+ } @else {
44
+ $full : $hoff $voff;
45
+ @if $blur { $full: $full $blur; }
46
+ @if $spread { $full: $full $spread; }
47
+ @if $color { $full: $full $color; }
48
+ @if $inset { $full: inset $full; }
49
+ @include multiple-box-shadows($full);
50
+ }
51
+ }
52
+
53
+ // Provides cross-browser box shadows when one or more box shadows are needed.
54
+ @mixin multiple-box-shadows(
55
+ $shadow-1 : default,
56
+ $shadow-2 : false,
57
+ $shadow-3 : false,
58
+ $shadow-4 : false,
59
+ $shadow-5 : false,
60
+ $shadow-6 : false,
61
+ $shadow-7 : false,
62
+ $shadow-8 : false,
63
+ $shadow-9 : false,
64
+ $shadow-10: false
65
+ ) {
66
+
67
+ @if not ($default-box-shadow-inset == true or $default-box-shadow-inset == false or $default-box-shadow-inset == inset) {
68
+ @warn "$default-box-shadow-inset expected to be true or the inset keyword. Got #{$default-box-shadow-inset} instead. Using: inset";
69
+ }
70
+
71
+ @if $shadow-1 == default {
72
+ $shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
73
+ }
74
+
75
+ $shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
76
+ @include experimental(box-shadow, $shadow,
77
+ -moz, -webkit, -o, not -ms, not -khtml, official
78
+ );
79
+ }
80
+
81
+ @mixin box-shadow(
82
+ $shadow-1 : default,
83
+ $shadow-2 : false,
84
+ $shadow-3 : false,
85
+ $shadow-4 : false,
86
+ $shadow-5 : false,
87
+ $shadow-6 : false,
88
+ $shadow-7 : false,
89
+ $shadow-8 : false,
90
+ $shadow-9 : false,
91
+ $shadow-10: false
92
+ ) {
93
+ @include multiple-box-shadows(
94
+ $shadow-1, $shadow-2, $shadow-3,
95
+ $shadow-4, $shadow-5, $shadow-6,
96
+ $shadow-7, $shadow-8, $shadow-9, $shadow-10
97
+ );
98
+ }
@@ -1,31 +1,8 @@
1
- // @doc off
2
- // These defaults make the arguments optional for this mixin
3
- // If you like, set different defaults before importing.
4
- // @doc on
5
-
6
- @import "shared";
7
-
8
- // The default color for box shadows
9
- $default-box-shadow-color: #333333 !default;
10
-
11
- // The default horizontal offset. Positive is to the right.
12
- $default-box-shadow-h-offset: 1px !default;
13
-
14
- // The default vertical offset. Positive is down.
15
- $default-box-shadow-v-offset: 1px !default;
16
-
17
- // The default blur length.
18
- $default-box-shadow-blur: 5px !default;
19
-
20
- // The default spread length.
21
- $default-box-shadow-spread : 0 !default;
22
-
23
- // The default shadow instet: inset or false (for standard shadow).
24
- $default-box-shadow-inset : false !default;
25
-
26
- // Provides cross-browser CSS box shadows for Webkit, Gecko, and CSS3.
27
- // Arguments are color, horizontal offset, vertical offset, blur length, spread length, and inset.
1
+ @import "box-shadow-v2";
28
2
 
3
+ // This mixin is deprecated.
4
+ // Use the box-shadow mixin from compass/css3/box-shadow-v2 instead.
5
+ // @deprecated
29
6
  @mixin box-shadow(
30
7
  $color : $default-box-shadow-color,
31
8
  $hoff : $default-box-shadow-h-offset,
@@ -34,17 +11,7 @@ $default-box-shadow-inset : false !default;
34
11
  $spread : $default-box-shadow-spread,
35
12
  $inset : $default-box-shadow-inset
36
13
  ) {
37
- $full : $color $hoff $voff $blur $spread;
38
- @if $inset {
39
- $full: $full $inset;
40
- }
41
- @if $color == none {
42
- @include experimental(box-shadow, none,
43
- -moz, -webkit, -o, not -ms, not -khtml, official
44
- );
45
- } @else {
46
- @include experimental(box-shadow, $full,
47
- -moz, -webkit, -o, not -ms, not -khtml, official
48
- );
49
- }
14
+ @warn "This version of the box-shadow mixin has been deprecated. Please read: http://compass-style.org/docs/upgrading/css3-v2/#box-shadow for details.";
15
+ @include single-box-shadow($color, $hoff, $voff, $blur, $spread, $inset);
50
16
  }
17
+
@@ -45,7 +45,6 @@ $default-box-flex: 0 !default;
45
45
  @include experimental(box-flex, $flex,
46
46
  -moz, -webkit, not -o, not -ms, not -khtml, official
47
47
  );
48
- display: block;
49
48
  }
50
49
 
51
50
  // Default flex group
@@ -1,55 +1,60 @@
1
1
  @import "shared";
2
2
 
3
3
  // Specify the number of columns
4
- @mixin column-count($n) {
5
- @include experimental(column-count, $n,
4
+ @mixin column-count($count) {
5
+ @include experimental(column-count, $count,
6
6
  -moz, -webkit, -o, not -ms, not -khtml, official
7
7
  );
8
8
  }
9
9
 
10
10
  // Specify the gap between columns e.g. `20px`
11
- @mixin column-gap($u) {
12
- @include experimental(column-gap, $u,
11
+ @mixin column-gap($width) {
12
+ @include experimental(column-gap, $width,
13
13
  -moz, -webkit, -o, not -ms, not -khtml, official
14
14
  );
15
15
  }
16
16
 
17
17
  // Specify the width of columns e.g. `100px`
18
- @mixin column-width($u) {
19
- @include experimental(column-width, $u,
18
+ @mixin column-width($width) {
19
+ @include experimental(column-width, $width,
20
20
  -moz, -webkit, -o, not -ms, not -khtml, official
21
21
  );
22
22
  }
23
23
 
24
24
  // Specify the width of the rule between columns e.g. `1px`
25
- @mixin column-rule-width($w) {
26
- @include experimental(rule-width, $w,
25
+ @mixin column-rule-width($width) {
26
+ @include experimental(rule-width, $width,
27
27
  -moz, -webkit, -o, not -ms, not -khtml, official
28
28
  );
29
29
  }
30
30
 
31
31
  // Specify the style of the rule between columns e.g. `dotted`.
32
32
  // This works like border-style.
33
- @mixin column-rule-style($s) {
34
- @include experimental(rule-style, unquote($s),
33
+ @mixin column-rule-style($style) {
34
+ @include experimental(rule-style, unquote($style),
35
35
  -moz, -webkit, -o, not -ms, not -khtml, official
36
36
  );
37
37
  }
38
38
 
39
- // Specify the style of the rule between columns e.g. `dotted`.
39
+ // Specify the color of the rule between columns e.g. `blue`.
40
40
  // This works like border-color.
41
-
42
- @mixin column-rule-color($c) {
43
- @include experimental(rule-color, unquote($s),
41
+ @mixin column-rule-color($color) {
42
+ @include experimental(rule-color, $color,
44
43
  -moz, -webkit, -o, not -ms, not -khtml, official
45
44
  );
46
45
  }
47
46
 
48
- // Mixin encompassing all column rule rules
47
+ // Mixin encompassing all column rule properties
49
48
  // For example:
50
- // +column-rule(1px, solid, #c00)
51
- @mixin column-rule($w, $s: solid, $c: black) {
52
- @include experimental(column-rule, $w $s $c,
49
+ //
50
+ // @include column-rule(1px, solid, #c00)
51
+ //
52
+ // Or the values can be space separated:
53
+ //
54
+ // @include column-rule(1px solid #c00)
55
+ @mixin column-rule($width, $style: false, $color: false) {
56
+ $full : -compass-space-list(compact($width, $style, $color));
57
+ @include experimental(column-rule, $full,
53
58
  -moz, -webkit, -o, not -ms, not -khtml, official
54
59
  );
55
60
  }