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
data/Rakefile CHANGED
@@ -1,16 +1,16 @@
1
1
  require 'rubygems'
2
- require 'rake'
3
- $:.unshift File.join(File.dirname(__FILE__), 'lib')
2
+ require 'bundler'
3
+ Bundler.setup
4
4
  require 'compass'
5
5
 
6
6
  # ----- Default: Testing ------
7
7
 
8
- task :default => :run_tests
8
+ task :default => :test
9
9
 
10
10
  require 'rake/testtask'
11
11
  require 'fileutils'
12
12
 
13
- Rake::TestTask.new :run_tests do |t|
13
+ Rake::TestTask.new :test do |t|
14
14
  t.libs << 'lib'
15
15
  t.libs << 'test'
16
16
  test_files = FileList['test/**/*_test.rb']
@@ -33,8 +33,8 @@ task :examples do
33
33
  require 'haml'
34
34
  require 'sass'
35
35
  require 'pathname'
36
- require 'lib/compass'
37
- require 'lib/compass/exec'
36
+ require 'compass'
37
+ require 'compass/exec'
38
38
  FileList['examples/*'].each do |example|
39
39
  next unless File.directory?(example)
40
40
  puts "\nCompiling #{example}"
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 10
4
- :patch: 6
5
- #:build: pre.1
3
+ :minor: 11
4
+ :state: alpha
5
+ :build: 0
@@ -55,6 +55,14 @@
55
55
  %a{ :href => "#" }
56
56
  Link
57
57
  \.
58
+ .info
59
+ This is a &lt;div&gt; with the class
60
+ %strong
61
+ \.info
62
+ \.
63
+ %a{ :href => "#" }
64
+ Link
65
+ \.
58
66
  .success
59
67
  This is a &lt;div&gt; with the class
60
68
  %strong
@@ -32,6 +32,10 @@ h1 {
32
32
  margin: 0.5em 0 1em;
33
33
  text-align: center; } }
34
34
 
35
+ .inset {
36
+ @include box-shadow(darken($border_color, 40), 5px, 5px, 2px, 3px, inset);
37
+ }
38
+
35
39
  .gutter {
36
40
  display: block;
37
41
  float: left;
@@ -79,7 +79,6 @@ Feature: Command Line
79
79
  When I initialize a project using: compass init rails --sass-dir app/stylesheets --css-dir public/stylesheets/compiled
80
80
  Then a config file config/compass.rb is reported created
81
81
  Then a config file config/compass.rb is created
82
- And a sass file config/initializers/compass.rb is created
83
82
  And a sass file app/stylesheets/screen.scss is created
84
83
  And a sass file app/stylesheets/print.scss is created
85
84
  And a sass file app/stylesheets/ie.scss is created
@@ -248,6 +247,24 @@ Feature: Command Line
248
247
  | sass_dir | sass |
249
248
  | css_dir | assets/css |
250
249
 
250
+ @now
251
+ Scenario Outline: Print out a configuration value
252
+ Given I am using the existing project in test/fixtures/stylesheets/compass
253
+ When I run: compass config -p <property>
254
+ Then I should see the following output: <value>
255
+ And the command exits <exit>
256
+
257
+ Examples:
258
+ | property | value | exit |
259
+ | extensions_dir | extensions | normally |
260
+ | extensions_path | $PROJECT_PATH/extensions | normally |
261
+ | css_dir | tmp | normally |
262
+ | css_path | $PROJECT_PATH/tmp | normally |
263
+ | sass_dir | sass | normally |
264
+ | sass_path | $PROJECT_PATH/sass | normally |
265
+ | foobar | ERROR: configuration property 'foobar' does not exist | with a non-zero error code |
266
+
267
+ @validator
251
268
  Scenario: Validate the generated CSS
252
269
  Given I am using the existing project in test/fixtures/stylesheets/compass
253
270
  When I run: compass validate
@@ -268,12 +285,12 @@ Feature: Command Line
268
285
  | sass/images.scss | 3 | 3 | 0 | 0 | 3 | 3 |
269
286
  | sass/layout.sass | 0 | 0 | 0 | 1 | 5 | 10 |
270
287
  | sass/legacy_clearfix.scss | 2 | 0 | 0 | 2 | 5 | 11 |
271
- | sass/lists.scss | 9 | 0 | 0 | 9 | 35 | 111 |
288
+ | sass/lists.scss | 10 | 0 | 0 | 10 | 39 | 123 |
272
289
  | sass/print.sass | 0 | 0 | 0 | 2 | 61 | 61 |
273
290
  | sass/reset.sass | 4 | 1 | 0 | 2 | 190 | 664 |
274
291
  | sass/utilities.scss | 2 | 0 | 0 | 2 | 3 | 9 |
275
292
  | ------------------------- | ----- | ---------- | -------------- | ----------- | --------- | -------------- |
276
- | Total.* | 61 | 12 | 0 | 60 | 344 | 975 |
293
+ | Total.* | 62 | 12 | 0 | 61 | 348 | 987 |
277
294
 
278
295
  @listframeworks
279
296
  Scenario: List frameworks registered with compass
@@ -1,4 +1,3 @@
1
- require 'spec/expectations'
2
1
  $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '../../test')))
3
2
 
4
3
  require 'test_helper'
@@ -155,6 +154,9 @@ Then /^the command exits with a non\-zero error code$/ do
155
154
  @last_exit_code.should_not == 0
156
155
  end
157
156
 
157
+ Then /^the command exits normally$/ do
158
+ @last_exit_code.should == 0
159
+ end
158
160
 
159
161
  Then /^I am congratulated$/ do
160
162
  @last_result.should =~ /Congratulations!/
@@ -235,3 +237,7 @@ end
235
237
  Then /^I should see the following lines of output:$/ do |table|
236
238
  table.diff!([['blueprint'],['compass']])
237
239
  end
240
+
241
+ Then /^I should see the following output: (.+)$/ do |expected|
242
+ (@last_result.strip + @last_error.strip).should == expected.gsub(/\$PROJECT_PATH/,Dir.pwd).strip
243
+ end
@@ -26,19 +26,9 @@
26
26
  // body#page-1, body#page-2, body.a-special-page-type
27
27
  // +blueprint(true)
28
28
  // </pre>
29
- //
30
- // #### Deprecated:
31
- // You use to be able to pass the body selector as the first argument when used as a top-level mixin
32
- // <pre class="source-code sass">
33
- // +blueprint("body#page-1, body#page-2, body.a-special-page-type")
34
- // </pre>
35
29
 
36
- @mixin blueprint($body_selector: body) {
37
- //@doc off
38
- @if not ($body_selector == "body" or $body_selector == true) {
39
- @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint, pass true as the first argument and mix it into #{$body_selector}."; }
40
- //@doc on
41
- @include blueprint-typography($body_selector);
30
+ @mixin blueprint($nested: false) {
31
+ @include blueprint-typography($nested);
42
32
  @include blueprint-utilities;
43
33
  @include blueprint-grid;
44
34
  @include blueprint-debug;
@@ -2,65 +2,65 @@
2
2
  @import "compass/utilities/general/float";
3
3
 
4
4
  // Button Font
5
- $blueprint_button_font_family: unquote('"Lucida Grande", Tahoma, Arial, Verdana, sans-serif') !default;
5
+ $blueprint-button-font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif !default;
6
6
 
7
7
  // Default Button Colors
8
- $blueprint_button_border_color: #dedede !default;
9
- $blueprint_button_background_color: #f5f5f5 !default;
10
- $blueprint_button_font_color: #565656 !default;
8
+ $blueprint-button-border-color: #dedede !default;
9
+ $blueprint-button-background-color: #f5f5f5 !default;
10
+ $blueprint-button-font-color: #565656 !default;
11
11
 
12
12
  // Default Button Hover Colors
13
- $blueprint_button_hover_border_color: #c2e1ef !default;
14
- $blueprint_button_hover_background_color: #dff4ff !default;
15
- $blueprint_button_hover_font_color: #336699 !default;
13
+ $blueprint-button-hover-border-color: #c2e1ef !default;
14
+ $blueprint-button-hover-background-color: #dff4ff !default;
15
+ $blueprint-button-hover-font-color: #336699 !default;
16
16
 
17
17
  // Default Button Active Colors
18
- $blueprint_button_active_border_color: #6299c5 !default;
19
- $blueprint_button_active_background_color: #6299c5 !default;
20
- $blueprint_button_active_font_color: white !default;
18
+ $blueprint-button-active-border-color: #6299c5 !default;
19
+ $blueprint-button-active-background-color: #6299c5 !default;
20
+ $blueprint-button-active-font-color: white !default;
21
21
 
22
22
  //**
23
23
  // Sets the colors for a button
24
- // @param border_highlight_color
25
- // The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
24
+ // @param border-highlight-color
25
+ // The highlight color defaults to whatever is the value of the border-color but it's one shade lighter.
26
26
  @mixin button-colors(
27
- $font_color: $blueprint_button_font_color,
28
- $bg_color: $blueprint_button_background_color,
29
- $border_color: $blueprint_button_border_color,
30
- $border_highlight_color: $border_color + #101010
27
+ $font-color: $blueprint-button-font-color,
28
+ $bg-color: $blueprint-button-background-color,
29
+ $border-color: $blueprint-button-border-color,
30
+ $border-highlight-color: $border-color + #101010
31
31
  ) {
32
- background-color: $bg_color;
33
- border-color: $border_highlight_color $border_color $border_color $border_highlight_color;
34
- color: $font_color;
32
+ background-color: $bg-color;
33
+ border-color: $border-highlight-color $border-color $border-color $border-highlight-color;
34
+ color: $font-color;
35
35
  }
36
36
 
37
37
  //**
38
38
  // Sets the colors for a button in the active state
39
- // @param border_highlight_color
40
- // The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
39
+ // @param border-highlight-color
40
+ // The highlight color defaults to whatever is the value of the border-color but it's one shade lighter.
41
41
  @mixin button-active-colors(
42
- $font_color: $blueprint_button_active_font_color,
43
- $bg_color: $blueprint_button_active_background_color,
44
- $border_color: $blueprint_button_active_border_color,
45
- $border_highlight_color: $border_color + #101010
42
+ $font-color: $blueprint-button-active-font-color,
43
+ $bg-color: $blueprint-button-active-background-color,
44
+ $border-color: $blueprint-button-active-border-color,
45
+ $border-highlight-color: $border-color + #101010
46
46
  ) {
47
47
  &:active {
48
- @include button-colors($font_color, $bg_color, $border_color, $border_highlight_color);
48
+ @include button-colors($font-color, $bg-color, $border-color, $border-highlight-color);
49
49
  }
50
50
  }
51
51
 
52
52
  //**
53
53
  // Sets the colors for a button in the hover state.
54
- // @param border_highlight_color
55
- // The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
54
+ // @param border-highlight-color
55
+ // The highlight color defaults to whatever is the value of the border-color but it's one shade lighter.
56
56
  @mixin button-hover-colors(
57
- $font_color: $blueprint_button_hover_font_color,
58
- $bg_color: $blueprint_button_hover_background_color,
59
- $border_color: $blueprint_button_hover_border_color,
60
- $border_highlight_color: $border_color + #101010
57
+ $font-color: $blueprint-button-hover-font-color,
58
+ $bg-color: $blueprint-button-hover-background-color,
59
+ $border-color: $blueprint-button-hover-border-color,
60
+ $border-highlight-color: $border-color + #101010
61
61
  ) {
62
62
  &:hover {
63
- @include button-colors($font_color, $bg_color, $border_color, $border_highlight_color);
63
+ @include button-colors($font-color, $bg-color, $border-color, $border-highlight-color);
64
64
  }
65
65
  }
66
66
 
@@ -69,7 +69,7 @@ $blueprint_button_active_font_color: white !default;
69
69
  @else { @include inline-block; }
70
70
  margin: 0.7em 0.5em 0.7em 0;
71
71
  border-width: 1px; border-style: solid;
72
- font-family: $blueprint_button_font_family; font-size: 100%; line-height: 130%; font-weight: bold;
72
+ font-family: $blueprint-button-font-family; font-size: 100%; line-height: 130%; font-weight: bold;
73
73
  text-decoration: none;
74
74
  cursor: pointer;
75
75
  img {
@@ -1,32 +1,36 @@
1
- $font_color: #333333 !default;
2
- $quiet_color: $font_color + #333333 !default;
3
- $loud_color: $font_color - #222222 !default;
4
- $header_color: $font_color - #111111 !default;
5
- $alt_text_color: #666666 !default;
6
- $blueprint_background_color: #eeeeee !default;
1
+ $font-color: #333333 !default;
2
+ $quiet-color: lighten($font-color, 20%) !default;
3
+ $loud-color: darken($font-color, 13.33%) !default;
4
+ $header-color: darken($font-color, 6.67%) !default;
5
+ $alt-text-color: #666666 !default;
6
+ $blueprint-background-color: #eeeeee !default;
7
+ $blueprint-border-color: #ddd !default;
7
8
 
8
- $link_color: #000099 !default;
9
- $link_hover_color: black !default;
10
- $link_focus_color: $link_hover_color !default;
11
- $link_active_color: $link_color + #cc0000 !default;
12
- $link_visited_color: $link_color - #333333 !default;
9
+ $link-color: #06c !default;
10
+ $link-hover-color: #09f !default;
11
+ $link-focus-color: $link-hover-color !default;
12
+ $link-active-color: lighten(adjust-hue($link-color, 75deg), 10%) !default;
13
+ $link-visited-color: darken($link-color, 10%) !default;
13
14
 
14
- $feedback_border_color: #dddddd !default;
15
- $success_color: #264409 !default;
16
- $success_bg_color: #e6efc2 !default;
17
- $success_border_color: #c6d880 !default;
18
- $notice_color: #514721 !default;
19
- $notice_bg_color: #fff6bf !default;
20
- $notice_border_color: #ffd324 !default;
21
- $error_color: #8a1f11 !default;
22
- $error_bg_color: #fbe3e4 !default;
23
- $error_border_color: #fbc2c4 !default;
15
+ $feedback-border-color: #dddddd !default;
16
+ $success-color: #264409 !default;
17
+ $success-bg-color: #e6efc2 !default;
18
+ $success-border-color: #c6d880 !default;
19
+ $notice-color: #514721 !default;
20
+ $notice-bg-color: #fff6bf !default;
21
+ $notice-border-color: #ffd324 !default;
22
+ $info-color: #205791 !default;
23
+ $info-bg-color: #d5edf8 !default;
24
+ $info-border-color: #92cae4 !default;
25
+ $error-color: #8a1f11 !default;
26
+ $error-bg-color: #fbe3e4 !default;
27
+ $error-border-color: #fbc2c4 !default;
24
28
 
25
- $highlight_color: yellow !default;
26
- $added_color: white !default;
27
- $added_bg_color: #006600 !default;
28
- $removed_color: white !default;
29
- $removed_bg_color: #990000 !default;
29
+ $highlight-color: yellow !default;
30
+ $added-color: white !default;
31
+ $added-bg-color: #006600 !default;
32
+ $removed-color: white !default;
33
+ $removed-bg-color: #990000 !default;
30
34
 
31
- $blueprint_table_header_color: #c3d9ff !default;
32
- $blueprint_table_stripe_color: #e5ecf9 !default;
35
+ $blueprint-table-header-color: #c3d9ff !default;
36
+ $blueprint-table-stripe-color: #e5ecf9 !default;
@@ -1,11 +1,11 @@
1
1
  @mixin showgrid($image: "grid.png") {
2
- background: image_url($image);
2
+ background: image-url($image);
3
3
  }
4
4
 
5
- @mixin blueprint-debug($grid_image: unquote("grid.png")) {
5
+ @mixin blueprint-debug($grid-image: "grid.png") {
6
6
  // Use this class on any column or container to see the grid.
7
7
  // TODO: prefix this with the project path.
8
8
  .showgrid {
9
- @include showgrid($grid_image);
9
+ @include showgrid($grid-image);
10
10
  }
11
11
  }
@@ -4,7 +4,7 @@ $alternate-text-font : "Warnock Pro", "Goudy Old Style", "Palatino", "Book Antiq
4
4
 
5
5
  // To install the fancy type plugin:
6
6
  //
7
- // 1. Import the fancy_type module: `@import "blueprint/fancy_type"`
7
+ // 1. Import the fancy-type module: `@import "blueprint/fancy-type"`
8
8
  // 2. Mix in `fancy-type` to your project's body or at the top level of your stylesheet:<br>
9
9
  // `body { @include fancy-type; }`
10
10
  @mixin fancy-type {
@@ -34,7 +34,7 @@ $alternate-text-font : "Warnock Pro", "Goudy Old Style", "Palatino", "Book Antiq
34
34
  margin-left: -$offset;
35
35
  }
36
36
 
37
- // Reduced size type with [incremental leading](http://www.markboulton.co.uk/journal/comments/incremental_leading/)
37
+ // Reduced size type with [incremental leading](http://www.markboulton.co.uk/journal/comments/incremental-leading/)
38
38
  //
39
39
  // This could be used for side notes. For smaller type, you don't necessarily want to
40
40
  // follow the 1.5x vertical rhythm -- the line-height is too much.
@@ -25,10 +25,6 @@
25
25
  &[type=text],
26
26
  &[type=password] { margin: 0.5em 0; background-color: white; padding: 5px; }
27
27
  &.title { font-size: 1.5em; }
28
- &[type=checkbox],
29
- &.checkbox,
30
- &[type=radio],
31
- &.radio { position: relative; top: 0.25em; }
32
28
  }
33
29
  textarea { margin: 0.5em 0; padding: 5px; }
34
30
  select { margin: 0.5em 0; }
@@ -36,33 +32,35 @@
36
32
 
37
33
  @mixin blueprint-form-sizes
38
34
  (
39
- $input_width: 300px,
40
- $textarea_width: 390px,
41
- $textarea_height: 250px
35
+ $input-width: 300px,
36
+ $textarea-width: 390px,
37
+ $textarea-height: 250px
42
38
  ) {
43
39
  input {
44
40
  &.text,
45
41
  &.title,
46
42
  &[type=email],
47
43
  &[type=text],
48
- &[type=password] { width: $input_width; }
44
+ &[type=password] { width: $input-width; }
49
45
  }
50
- textarea { width: $textarea_width; height: $textarea_height; }
46
+ textarea { width: $textarea-width; height: $textarea-height; }
51
47
  }
52
48
 
53
49
  @mixin blueprint-form-borders
54
50
  (
55
- $unfocused_border_color: #bbbbbb,
56
- $focus_border_color: #666666,
57
- $fieldset_border_color: #cccccc
51
+ $unfocused-border-color: #bbbbbb,
52
+ $focus-border-color: #666666,
53
+ $fieldset-border-color: #cccccc
58
54
  ) {
59
55
  fieldset {
60
- border: 1px solid $fieldset_border_color; }
56
+ border: 1px solid $fieldset-border-color; }
61
57
  input.text, input.title, input[type=email], input[type=text], input[type=password],
62
- textarea, select {
63
- border: 1px solid $unfocused_border_color;
58
+ textarea {
59
+ background-color:#fff;
60
+ border: 1px solid $unfocused-border-color;
64
61
  &:focus {
65
- border: 1px solid $focus_border_color;
62
+ border: 1px solid $focus-border-color;
66
63
  }
67
64
  }
65
+ select { background-color:#fff; border-width:1px; border-style:solid; }
68
66
  }
@@ -19,19 +19,19 @@
19
19
  @import "compass/utilities/general/clearfix";
20
20
 
21
21
  // The number of columns in the grid.
22
- $blueprint_grid_columns: 24 !default;
22
+ $blueprint-grid-columns: 24 !default;
23
23
 
24
24
  // The width of a column
25
- $blueprint_grid_width: 30px !default;
25
+ $blueprint-grid-width: 30px !default;
26
26
 
27
27
  // The amount of margin between columns
28
- $blueprint_grid_margin: 10px !default;
28
+ $blueprint-grid-margin: 10px !default;
29
29
 
30
30
  // The width of a column including the margin. With default settings this is `40px`.
31
- $blueprint_grid_outer_width: $blueprint_grid_width + $blueprint_grid_margin;
31
+ $blueprint-grid-outer-width: $blueprint-grid-width + $blueprint-grid-margin;
32
32
 
33
33
  // The width of the container. With default settings this is `950px`.
34
- $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns - $blueprint_grid_margin;
34
+ $blueprint-container-size: $blueprint-grid-outer-width * $blueprint-grid-columns - $blueprint-grid-margin;
35
35
 
36
36
  // Generates presentational class names that you can use
37
37
  // in your html to layout your pages.
@@ -45,40 +45,42 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
45
45
  // A container should group all your columns
46
46
  .container {
47
47
  @include container; }
48
- .column, #{enumerate("div.span", 1, $blueprint_grid_columns)} {
48
+ .column {
49
49
  @include column-base; }
50
50
  // The last column in a row needs this class (or mixin) or it will end up on the next row.
51
- .last, div.last {
51
+ .last {
52
52
  @include last; }
53
53
  // Use these classes (or mixins) to set the width of a column.
54
- @for $n from 1 to $blueprint_grid_columns {
54
+ @for $n from 1 to $blueprint-grid-columns {
55
55
  .span-#{$n} {
56
+ @extend .column;
56
57
  @include span($n); } }
57
- .span-#{$blueprint_grid_columns}, div.span-#{$blueprint_grid_columns} {
58
- @include span($blueprint_grid_columns);
58
+ .span-#{$blueprint-grid-columns} {
59
+ @extend .column;
60
+ @include span($blueprint-grid-columns);
59
61
  margin: 0; }
60
62
  input, textarea, select {
61
- @for $n from 1 through $blueprint_grid_columns {
63
+ @for $n from 1 through $blueprint-grid-columns {
62
64
  &.span-#{$n} {
63
65
  @include span($n, true); } } }
64
66
  // Add these to a column to append empty cols.
65
- @for $n from 1 to $blueprint_grid_columns {
67
+ @for $n from 1 to $blueprint-grid-columns {
66
68
  .append-#{$n} {
67
69
  @include append($n); } }
68
70
  // Add these to a column to prepend empty cols.
69
- @for $n from 1 to $blueprint_grid_columns {
71
+ @for $n from 1 to $blueprint-grid-columns {
70
72
  .prepend-#{$n} {
71
73
  @include prepend($n); } }
72
74
  // Use these classes on an element to push it into the
73
75
  // next column, or to pull it into the previous column.
74
- #{enumerate(".pull", 1, $blueprint_grid_columns)} {
76
+ #{enumerate(".pull", 1, $blueprint-grid-columns)} {
75
77
  @include pull-base; }
76
- @for $n from 1 through $blueprint_grid_columns {
78
+ @for $n from 1 through $blueprint-grid-columns {
77
79
  .pull-#{$n} {
78
80
  @include pull-margins($n); } }
79
- #{enumerate(".push", 1, $blueprint_grid_columns)} {
81
+ #{enumerate(".push", 1, $blueprint-grid-columns)} {
80
82
  @include push-base; }
81
- @for $n from 1 through $blueprint_grid_columns {
83
+ @for $n from 1 through $blueprint-grid-columns {
82
84
  .push-#{$n} {
83
85
  @include push-margins($n); } }
84
86
  .prepend-top {
@@ -92,7 +94,7 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
92
94
  // If you use this mixin without the class and want to support ie6
93
95
  // you must set text-align left on your container element in an IE stylesheet.
94
96
  @mixin container {
95
- width: $blueprint_container_size;
97
+ width: $blueprint-container-size;
96
98
  margin: 0 auto;
97
99
  @include clearfix; }
98
100
 
@@ -111,7 +113,7 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
111
113
  //
112
114
  // This mixin is especially useful for aligning tables to the grid.
113
115
  @mixin span($n, $override: false) {
114
- $width: $blueprint_grid_width * $n + $blueprint_grid_margin * ($n - 1);
116
+ $width: $blueprint-grid-width * $n + $blueprint-grid-margin * ($n - 1);
115
117
  @if $override {
116
118
  width: $width !important; }
117
119
  @else {
@@ -134,19 +136,19 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
134
136
  @if $last {
135
137
  @include last; }
136
138
  @else {
137
- margin-right: $blueprint_grid_margin; }
139
+ margin-right: $blueprint-grid-margin; }
138
140
  * html & {
139
141
  overflow-x: hidden; } }
140
142
 
141
143
  // Mixin to a column to append n empty columns to the right
142
144
  // by adding right padding to the column.
143
145
  @mixin append($n) {
144
- padding-right: $blueprint_grid_outer_width * $n; }
146
+ padding-right: $blueprint-grid-outer-width * $n; }
145
147
 
146
148
  // Mixin to a column to append n empty columns to the left
147
149
  // by adding left padding to the column.
148
150
  @mixin prepend($n) {
149
- padding-left: $blueprint_grid_outer_width * $n; }
151
+ padding-left: $blueprint-grid-outer-width * $n; }
150
152
 
151
153
  // Adds trailing margin.
152
154
  @mixin append-bottom($amount: 1.5em) {
@@ -174,9 +176,9 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
174
176
  // to reduce the amount of generated CSS.
175
177
  @mixin pull-margins($n, $last: false) {
176
178
  @if $last {
177
- margin-left: -$blueprint_grid_outer_width * $n + $blueprint_grid_margin; }
179
+ margin-left: -$blueprint-grid-outer-width * $n + $blueprint-grid-margin; }
178
180
  @else {
179
- margin-left: -$blueprint_grid_outer_width * $n; } }
181
+ margin-left: -$blueprint-grid-outer-width * $n; } }
180
182
 
181
183
  // Moves a column `n` columns to the left.
182
184
  //
@@ -207,11 +209,11 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
207
209
  @include pull-margins($n, $last); }
208
210
 
209
211
  @mixin push-base {
210
- @include float-right;
212
+ @include float-left;
211
213
  position: relative; }
212
214
 
213
215
  @mixin push-margins($n) {
214
- margin: 0 (-$blueprint_grid_outer_width * $n) 1.5em $blueprint_grid_outer_width * $n; }
216
+ margin: 0 (-$blueprint-grid-outer-width * $n) 1.5em $blueprint-grid-outer-width * $n; }
215
217
 
216
218
  // mixin to a column to push it n columns to the right
217
219
  @mixin push($n) {
@@ -219,21 +221,21 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
219
221
  @include push-margins($n); }
220
222
 
221
223
  // Border on right hand side of a column.
222
- @mixin border($border_color: #eeeeee, $border_width: 1px) {
223
- padding-right: $blueprint_grid_margin / 2 - $border_width;
224
- margin-right: $blueprint_grid_margin / 2;
225
- border-right: #{$border_width} solid #{$border_color}; }
224
+ @mixin border($border-color: $blueprint-border-color, $border-width: 1px) {
225
+ padding-right: $blueprint-grid-margin / 2 - $border-width;
226
+ margin-right: $blueprint-grid-margin / 2;
227
+ border-right: #{$border-width} solid #{$border-color}; }
226
228
 
227
229
  // Border with more whitespace, spans one column.
228
- @mixin colborder($border_color: #eeeeee, $border_width: 1px) {
229
- padding-right: floor(($blueprint_grid_width + 2 * $blueprint_grid_margin - $border_width) / 2);
230
- margin-right: ceil(($blueprint_grid_width + 2 * $blueprint_grid_margin - $border_width) / 2);
231
- border-right: #{$border_width} solid #{$border_color}; }
230
+ @mixin colborder($border-color: $blueprint-border-color, $border-width: 1px) {
231
+ padding-right: floor(($blueprint-grid-width + 2 * $blueprint-grid-margin - $border-width) / 2);
232
+ margin-right: ceil(($blueprint-grid-width + 2 * $blueprint-grid-margin - $border-width) / 2);
233
+ border-right: #{$border-width} solid #{$border-color}; }
232
234
 
233
235
  // Mixin this to an hr to make a horizontal ruler across a column.
234
- @mixin colruler($border_color: #dddddd) {
235
- background: $border_color;
236
- color: $border_color;
236
+ @mixin colruler($border-color: #dddddd) {
237
+ background: $border-color;
238
+ color: $border-color;
237
239
  clear: both;
238
240
  float: none;
239
241
  width: 100%;