compass-edge 0.9.4 → 0.9.5.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 (187) hide show
  1. data/CHANGELOG.markdown +32 -2
  2. data/README.markdown +12 -2
  3. data/REVISION +1 -1
  4. data/Rakefile +3 -1
  5. data/VERSION.yml +1 -2
  6. data/examples/blueprint_default/index.html.haml +3 -3
  7. data/examples/blueprint_default/parts/forms.html.haml +2 -0
  8. data/examples/blueprint_default/src/screen.sass +1 -1
  9. data/examples/blueprint_plugins/index.html.haml +6 -6
  10. data/examples/blueprint_plugins/src/buttons.sass +2 -2
  11. data/examples/blueprint_plugins/src/link_icons.sass +1 -1
  12. data/examples/blueprint_plugins/src/rtl_screen.sass +3 -3
  13. data/examples/blueprint_plugins/src/screen.sass +2 -2
  14. data/examples/blueprint_semantic/src/liquid.sass +4 -4
  15. data/examples/blueprint_semantic/src/screen.sass +3 -3
  16. data/examples/compass/bootstrap.rb +3 -0
  17. data/examples/compass/extensions/yui/stylesheets/_yui.sass +7 -0
  18. data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
  19. data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
  20. data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
  21. data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
  22. data/examples/compass/extensions/yui/templates/project/manifest.rb +1 -0
  23. data/examples/compass/extensions/yui/templates/project/screen.sass +4 -0
  24. data/examples/compass/src/utilities.sass +2 -2
  25. data/examples/css3/config.rb +6 -0
  26. data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
  27. data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
  28. data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +7 -0
  29. data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +5 -0
  30. data/examples/css3/images/fresh-peas.jpg +0 -0
  31. data/examples/css3/index.html.haml +55 -0
  32. data/examples/css3/src/_base.sass +14 -0
  33. data/examples/css3/src/fancy-fonts.sass +7 -0
  34. data/examples/css3/src/gradient.sass +10 -0
  35. data/examples/css3/src/main.sass +80 -0
  36. data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
  37. data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
  38. data/examples/downloader.rb +2 -2
  39. data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
  40. data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
  41. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
  42. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
  43. data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
  44. data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
  45. data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
  46. data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
  47. data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
  48. data/examples/susy/bootstrap.rb +3 -0
  49. data/examples/susy/config.rb +9 -0
  50. data/examples/susy/extensions/susy/LICENSE.txt +28 -0
  51. data/examples/susy/extensions/susy/README.mkdn +235 -0
  52. data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +35 -0
  53. data/examples/susy/extensions/susy/docs/tutorial/build.sh +141 -0
  54. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +100 -0
  55. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +98 -0
  56. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +147 -0
  57. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +19 -0
  58. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +147 -0
  59. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +48 -0
  60. data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +14 -0
  61. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
  62. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
  63. data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +63 -0
  64. data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +1450 -0
  65. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +100 -0
  66. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +91 -0
  67. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
  68. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
  69. data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +301 -0
  70. data/examples/susy/extensions/susy/lib/susy.rb +2 -0
  71. data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +5 -0
  72. data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +79 -0
  73. data/examples/susy/extensions/susy/sass/susy/_grid.sass +128 -0
  74. data/examples/susy/extensions/susy/sass/susy/_reset.sass +7 -0
  75. data/examples/susy/extensions/susy/sass/susy/_susy.sass +23 -0
  76. data/examples/susy/extensions/susy/sass/susy/_text.sass +15 -0
  77. data/examples/susy/extensions/susy/sass/susy/_utils.sass +81 -0
  78. data/examples/susy/extensions/susy/templates/project/_base.sass +62 -0
  79. data/examples/susy/extensions/susy/templates/project/_defaults.sass +147 -0
  80. data/examples/susy/extensions/susy/templates/project/ie.sass +9 -0
  81. data/examples/susy/extensions/susy/templates/project/manifest.rb +5 -0
  82. data/examples/susy/extensions/susy/templates/project/print.sass +7 -0
  83. data/examples/susy/extensions/susy/templates/project/screen.sass +44 -0
  84. data/examples/susy/src/_base.sass +62 -0
  85. data/examples/susy/src/_defaults.sass +148 -0
  86. data/examples/susy/src/screen.sass +114 -0
  87. data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
  88. data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
  89. data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
  90. data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
  91. data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
  92. data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
  93. data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
  94. data/lib/compass/app_integration/rails/configuration_defaults.rb +9 -1
  95. data/lib/compass/commands/watch_project.rb +1 -1
  96. data/lib/compass/compiler.rb +9 -1
  97. data/lib/compass/configuration.rb +23 -18
  98. data/lib/compass/configuration/adapters.rb +1 -1
  99. data/lib/compass/configuration/defaults.rb +30 -0
  100. data/lib/compass/frameworks.rb +1 -1
  101. data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +29 -1
  102. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +84 -0
  103. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +33 -0
  104. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +9 -0
  105. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +82 -0
  106. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +56 -0
  107. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +179 -0
  108. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
  109. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +58 -0
  110. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +44 -0
  111. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +141 -0
  112. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +1 -4
  113. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +57 -2
  114. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +123 -0
  115. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +49 -0
  116. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -29
  117. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +162 -0
  118. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +37 -0
  119. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +2 -84
  120. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +2 -33
  121. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +2 -9
  122. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +2 -82
  123. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +2 -55
  124. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +2 -178
  125. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +2 -58
  126. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +2 -44
  127. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +2 -140
  128. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +2 -56
  129. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +2 -122
  130. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +2 -47
  131. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +2 -160
  132. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +2 -37
  133. data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
  134. data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
  135. data/lib/compass/frameworks/blueprint/templates/project/screen.sass +1 -7
  136. data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +5 -2
  137. data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +8 -0
  138. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +16 -0
  139. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +18 -0
  140. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +14 -0
  141. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +18 -10
  142. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +31 -0
  143. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +40 -0
  144. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +15 -0
  145. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +60 -0
  146. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +57 -0
  147. data/lib/compass/grid_builder.rb +1 -1
  148. data/lib/compass/installers/base.rb +5 -1
  149. data/lib/compass/installers/manifest.rb +1 -0
  150. data/lib/compass/logger.rb +28 -2
  151. data/lib/compass/sass_extensions/functions.rb +3 -1
  152. data/lib/compass/sass_extensions/functions/color_stop.rb +10 -0
  153. data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
  154. data/lib/compass/sass_extensions/functions/font_files.rb +11 -0
  155. data/lib/compass/sass_extensions/functions/inline_image.rb +22 -1
  156. data/lib/compass/sass_extensions/functions/urls.rb +20 -0
  157. data/lib/vendor/fssm.rb +19 -6
  158. data/lib/vendor/fssm/backends/fsevents.rb +19 -60
  159. data/lib/vendor/fssm/backends/polling.rb +20 -18
  160. data/lib/vendor/fssm/cache.rb +193 -0
  161. data/lib/vendor/fssm/ext.rb +30 -0
  162. data/lib/vendor/fssm/fsevents.rb +129 -0
  163. data/lib/vendor/fssm/monitor.rb +10 -6
  164. data/lib/vendor/fssm/path.rb +24 -21
  165. data/lib/vendor/fssm/state.rb +37 -29
  166. data/lib/vendor/fssm/support.rb +3 -7
  167. data/lib/vendor/fssm/tree.rb +176 -0
  168. data/test/command_line_helper.rb +8 -4
  169. data/test/command_line_test.rb +2 -2
  170. data/test/compass_test.rb +14 -4
  171. data/test/configuration_test.rb +5 -5
  172. data/test/fixtures/stylesheets/blueprint/css/typography.css +5 -3
  173. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
  174. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
  175. data/test/fixtures/stylesheets/compass/css/print.css +2 -8
  176. data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
  177. data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
  178. data/test/fixtures/stylesheets/relative/config.rb +9 -0
  179. data/test/fixtures/stylesheets/relative/css/ie.css +1 -0
  180. data/test/fixtures/stylesheets/relative/css/print.css +1 -0
  181. data/test/fixtures/stylesheets/relative/css/screen.css +1 -0
  182. data/test/fixtures/stylesheets/relative/sass/ie.sass +6 -0
  183. data/test/fixtures/stylesheets/relative/sass/print.sass +6 -0
  184. data/test/fixtures/stylesheets/relative/sass/screen.sass +3 -0
  185. data/test/rails_integration_test.rb +1 -1
  186. data/test/sass_extensions_test.rb +2 -2
  187. metadata +120 -2
@@ -0,0 +1 @@
1
+ stylesheet 'screen.sass', :media => "screen, projection"
@@ -0,0 +1,4 @@
1
+ @import yui.sass
2
+ @import compass/reset.sass
3
+
4
+ +yui
@@ -3,7 +3,7 @@ module Compass
3
3
  module Rails
4
4
  module ConfigurationDefaults
5
5
 
6
- def default_project_type
6
+ def project_type_without_default
7
7
  :rails
8
8
  end
9
9
 
@@ -11,6 +11,10 @@ module Compass
11
11
  File.join("public", "images")
12
12
  end
13
13
 
14
+ def default_fonts_dir
15
+ File.join("public", "fonts")
16
+ end
17
+
14
18
  def default_javascripts_dir
15
19
  File.join("public", "javascripts")
16
20
  end
@@ -23,6 +27,10 @@ module Compass
23
27
  "/javascripts"
24
28
  end
25
29
 
30
+ def default_http_fonts_path
31
+ "/fonts"
32
+ end
33
+
26
34
  def default_http_stylesheets_path
27
35
  "/stylesheets"
28
36
  end
@@ -61,7 +61,7 @@ module Compass
61
61
  puts ">>> Change detected to: #{file}"
62
62
  compiler.run
63
63
  rescue StandardError => e
64
- ::Compass::Exec.report_error(e, options)
64
+ ::Compass::Exec::Helpers.report_error(e, options)
65
65
  end
66
66
  end
67
67
  end
@@ -48,7 +48,15 @@ module Compass
48
48
  directory dir
49
49
  end
50
50
  sass_files.zip(css_files).each do |sass_filename, css_filename|
51
- compile sass_filename, css_filename, options
51
+ begin
52
+ compile sass_filename, css_filename, options
53
+ rescue Sass::SyntaxError => e
54
+ full_exception = Compass.configuration.environment == :development
55
+ logger.record :error, basename(sass_filename), "(Line #{e.sass_line}: #{e.message})"
56
+ write_file(css_filename,
57
+ Sass::SyntaxError.exception_to_css(e, :full_exception => full_exception),
58
+ options.merge(:force => true))
59
+ end
52
60
  end
53
61
  end
54
62
  end
@@ -1,34 +1,39 @@
1
1
  module Compass
2
2
  module Configuration
3
3
 
4
+ def self.attributes_for_directory(dir_name, http_dir_name = dir_name)
5
+ [
6
+ "#{dir_name}_dir",
7
+ "#{dir_name}_path",
8
+ ("http_#{http_dir_name}_dir" if http_dir_name),
9
+ ("http_#{http_dir_name}_path" if http_dir_name)
10
+ ].compact.map{|a| a.to_sym}
11
+ end
12
+
4
13
  ATTRIBUTES = [
14
+ # What kind of project?
5
15
  :project_type,
16
+ # Where is the project?
6
17
  :project_path,
7
- :css_dir,
8
- :sass_dir,
9
- :images_dir,
10
- :javascripts_dir,
11
- :extensions_dir,
12
- :css_path,
13
- :sass_path,
14
- :images_path,
15
- :javascripts_path,
16
- :extensions_path,
17
18
  :http_path,
18
- :http_images_dir,
19
- :http_stylesheets_dir,
20
- :http_javascripts_dir,
21
- :http_images_path,
22
- :http_stylesheets_path,
23
- :http_javascripts_path,
19
+ # Where are the various bits of the project
20
+ attributes_for_directory(:css, :stylesheets),
21
+ attributes_for_directory(:sass, nil),
22
+ attributes_for_directory(:images),
23
+ attributes_for_directory(:javascripts),
24
+ attributes_for_directory(:fonts),
25
+ attributes_for_directory(:extensions, nil),
26
+ # Compilation options
24
27
  :output_style,
25
28
  :environment,
26
29
  :relative_assets,
27
30
  :additional_import_paths,
28
31
  :sass_options,
29
32
  :asset_host,
30
- :asset_cache_buster
31
- ]
33
+ :asset_cache_buster,
34
+ :line_comments,
35
+ :color_output
36
+ ].flatten
32
37
 
33
38
  end
34
39
  end
@@ -49,7 +49,7 @@ module Compass
49
49
  load_paths = []
50
50
  load_paths << sass_path if sass_path
51
51
  Compass::Frameworks::ALL.each do |framework|
52
- load_paths << framework.stylesheets_directory
52
+ load_paths << framework.stylesheets_directory if File.exists?(framework.stylesheets_directory)
53
53
  end
54
54
  load_paths += resolve_additional_import_paths
55
55
  load_paths
@@ -14,6 +14,14 @@ module Compass
14
14
  "extensions"
15
15
  end
16
16
 
17
+ def default_fonts_dir
18
+ File.join(top_level.css_dir, "fonts")
19
+ end
20
+
21
+ def default_environment
22
+ :development
23
+ end
24
+
17
25
  def default_output_style
18
26
  if top_level.environment == :development
19
27
  :expanded
@@ -26,6 +34,10 @@ module Compass
26
34
  top_level.environment == :development
27
35
  end
28
36
 
37
+ def default_color_output
38
+ true
39
+ end
40
+
29
41
  def default_sass_path
30
42
  if (pp = top_level.project_path) && (dir = top_level.sass_dir)
31
43
  File.join(pp, dir)
@@ -56,6 +68,12 @@ module Compass
56
68
  end
57
69
  end
58
70
 
71
+ def default_fonts_path
72
+ if (pp = top_level.project_path) && (dir = top_level.fonts_dir)
73
+ File.join(pp, dir)
74
+ end
75
+ end
76
+
59
77
 
60
78
  def default_http_images_dir
61
79
  top_level.images_dir
@@ -73,6 +91,18 @@ module Compass
73
91
  http_root_relative top_level.http_stylesheets_dir
74
92
  end
75
93
 
94
+ def default_http_fonts_dir
95
+ if fd = top_level.fonts_dir_without_default
96
+ fd
97
+ else
98
+ "#{top_level.http_stylesheets_dir}/fonts"
99
+ end
100
+ end
101
+
102
+ def default_http_fonts_path
103
+ http_root_relative top_level.http_fonts_dir
104
+ end
105
+
76
106
  def default_http_javascripts_dir
77
107
  top_level.javascripts_dir
78
108
  end
@@ -28,7 +28,7 @@ module Compass
28
28
  end
29
29
 
30
30
  def register(name, *arguments)
31
- if idx = ALL.index{|f| f.name.to_s == name.to_s}
31
+ if idx = ALL.index(self[name])
32
32
  ALL[idx] = Framework.new(name, *arguments)
33
33
  else
34
34
  ALL << Framework.new(name, *arguments)
@@ -1,3 +1,31 @@
1
- @import blueprint/screen.sass
1
+ @import blueprint/colors.sass
2
+ @import blueprint/grid.sass
3
+ @import blueprint/typography.sass
4
+ @import blueprint/utilities.sass
5
+ @import blueprint/form.sass
6
+ @import blueprint/interaction.sass
7
+ @import blueprint/debug.sass
2
8
  @import blueprint/print.sass
3
9
  @import blueprint/ie.sass
10
+
11
+ // Usage examples:
12
+ // As a top-level mixin, apply to any page that includes the stylesheet:
13
+ // +blueprint
14
+ // Scoped by a presentational class:
15
+ // body.blueprint
16
+ // +blueprint(true)
17
+ // Scoped by semantic selectors:
18
+ // body#page-1, body#page-2, body.a-special-page-type
19
+ // +blueprint(true)
20
+ // Deprecated:
21
+ // You can pass the body selector as the first argument when used as a top-level mixin
22
+ // +blueprint("body#page-1, body#page-2, body.a-special-page-type")
23
+ =blueprint(!body_selector = "body")
24
+ @if not (!body_selector == "body" or !body_selector == true)
25
+ @debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +blueprint, pass true as the first argument and mix it into #{!body_selector}."
26
+ +blueprint-typography(!body_selector)
27
+ +blueprint-utilities
28
+ +blueprint-grid
29
+ +blueprint-debug
30
+ +blueprint-interaction
31
+ +blueprint-form
@@ -0,0 +1,84 @@
1
+ @import compass/css3/inline_block.sass
2
+ @import compass/utilities/general/float.sass
3
+
4
+ // Button Font
5
+ !blueprint_button_font_family ||= "\"Lucida Grande\", Tahoma, Arial, Verdana, sans-serif"
6
+
7
+ // Default Button Colors
8
+ !blueprint_button_border_color ||= #DEDEDE
9
+ !blueprint_button_background_color ||= #F5F5F5
10
+ !blueprint_button_font_color ||= #565656
11
+
12
+ // Default Button Hover Colors
13
+ !blueprint_button_hover_border_color ||= #C2E1EF
14
+ !blueprint_button_hover_background_color ||= #DFF4FF
15
+ !blueprint_button_hover_font_color ||= #336699
16
+
17
+ // Default Button Active Colors
18
+ !blueprint_button_active_border_color ||= #6299C5
19
+ !blueprint_button_active_background_color ||= #6299C5
20
+ !blueprint_button_active_font_color ||= #FFF
21
+
22
+ //**
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.
26
+ =button-colors(!font_color = !blueprint_button_font_color, !bg_color = !blueprint_button_background_color, !border_color = !blueprint_button_border_color, !border_highlight_color = !border_color + #101010)
27
+ background-color= !bg_color
28
+ border-color= !border_highlight_color !border_color !border_color !border_highlight_color
29
+ color= !font_color
30
+
31
+ //**
32
+ Sets the colors for a button in the active state
33
+ @param border_highlight_color
34
+ The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
35
+ =button-active-colors(!font_color = !blueprint_button_active_font_color, !bg_color = !blueprint_button_active_background_color, !border_color = !blueprint_button_active_border_color, !border_highlight_color = !border_color + #101010)
36
+ &:active
37
+ +button-colors(!font_color, !bg_color, !border_color, !border_highlight_color)
38
+
39
+ //**
40
+ Sets the colors for a button in the hover state.
41
+ @param border_highlight_color
42
+ The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
43
+ =button-hover-colors(!font_color = !blueprint_button_hover_font_color, !bg_color = !blueprint_button_hover_background_color, !border_color = !blueprint_button_hover_border_color, !border_highlight_color = !border_color + #101010)
44
+ &:hover
45
+ +button-colors(!font_color, !bg_color, !border_color, !border_highlight_color)
46
+
47
+ =button-base(!float = false)
48
+ @if !float
49
+ display: block
50
+ +float(!float)
51
+ @else
52
+ +inline-block
53
+ margin: 0.7em 0.5em 0.7em 0
54
+ border-width: 1px
55
+ border-style: solid
56
+ font-family= !blueprint_button_font_family
57
+ font-size: 100%
58
+ line-height: 130%
59
+ text-decoration: none
60
+ font-weight: bold
61
+ cursor: pointer
62
+ img
63
+ margin: 0 3px -3px 0 !important
64
+ padding: 0
65
+ border: none
66
+ width: 16px
67
+ height: 16px
68
+ float: none
69
+
70
+
71
+ =anchor-button(!float = false)
72
+ +button-base(!float)
73
+ padding: 5px 10px 5px 7px
74
+
75
+ =button-button(!float = false)
76
+ +button-base(!float)
77
+ width: auto
78
+ overflow: visible
79
+ padding: 4px 10px 3px 7px
80
+ &[type]
81
+ padding: 4px 10px 4px 7px
82
+ line-height: 17px
83
+ *:first-child+html &[type]
84
+ padding: 4px 10px 3px 7px
@@ -0,0 +1,33 @@
1
+ !font_color ||= #333
2
+ !quiet_color ||= !font_color + #333
3
+ !loud_color ||= !font_color - #222
4
+
5
+ !header_color ||= !font_color - #111
6
+
7
+ !link_color ||= #009
8
+ !link_hover_color ||= #000
9
+ !link_focus_color ||= !link_hover_color
10
+ !link_active_color ||= !link_color + #C00
11
+ !link_visited_color ||= !link_color - #333
12
+
13
+ !feedback_border_color ||= #DDD
14
+ !success_color ||= #264409
15
+ !success_bg_color ||= #E6EFC2
16
+ !success_border_color ||= #C6D880
17
+
18
+ !notice_color ||= #514721
19
+ !notice_bg_color ||= #FFF6BF
20
+ !notice_border_color ||= #FFD324
21
+
22
+ !error_color ||= #8A1F11
23
+ !error_bg_color ||= #FBE3E4
24
+ !error_border_color ||= #FBC2C4
25
+
26
+ !highlight_color ||= #FF0
27
+ !added_color ||= #FFF
28
+ !added_bg_color ||= #060
29
+ !removed_color ||= #FFF
30
+ !removed_bg_color ||= #900
31
+
32
+ !blueprint_table_header_color ||= #C3D9FF
33
+ !blueprint_table_stripe_color ||= #E5ECF9
@@ -0,0 +1,9 @@
1
+ =showgrid(!image = "grid.png")
2
+ background= image_url(!image)
3
+
4
+ =blueprint-debug(!grid_image = "grid.png")
5
+ // Use this class on any column or container to see the grid.
6
+ // TODO: prefix this with the project path.
7
+ .showgrid
8
+ +showgrid(!grid_image)
9
+
@@ -0,0 +1,82 @@
1
+ @import typography.sass
2
+
3
+ //
4
+ To install the fancy type plugin:
5
+ 1. import the fancy_type module: @import blueprint/fancy_type
6
+ 2. mixin +fancy-type to your project's body or at the top level of your stylesheet:
7
+ body
8
+ +fancy-type
9
+
10
+ =fancy-type
11
+ +fancy-paragraphs
12
+ .caps
13
+ +caps
14
+ .dquo
15
+ +dquo
16
+ .alt
17
+ +alt
18
+
19
+ // Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
20
+ =sibling-indentation
21
+ text-indent: 2em
22
+ margin-top: -1.5em
23
+ /* Don't want this in forms.
24
+ form &
25
+ text-indent: 0
26
+
27
+ //
28
+ For great looking type, use this code instead of asdf:
29
+ <span class="alt">asdf</span>
30
+ Best used on prepositions and ampersands.
31
+
32
+ =alt
33
+ color: #666
34
+ font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif
35
+ font-style: italic
36
+ font-weight: normal
37
+
38
+ //
39
+ For great looking quote marks in titles, replace "asdf" with:
40
+ <span class="dquo">&#8220;</span>asdf&#8221;
41
+ (That is, when the title starts with a quote mark).
42
+ (You may have to change this value depending on your font size).
43
+ =dquo(!offset = 0.5em)
44
+ margin-left: -!offset
45
+
46
+ //
47
+ Reduced size type with incremental leading
48
+ (http://www.markboulton.co.uk/journal/comments/incremental_leading/)
49
+
50
+ This could be used for side notes. For smaller type, you don't necessarily want to
51
+ follow the 1.5x vertical rhythm -- the line-height is too much.
52
+
53
+ Using this mixin, reduces your font size and line-height so that for
54
+ every four lines of normal sized type, there is five lines of the sidenote. eg:
55
+
56
+ Arguments:
57
+ font_size - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
58
+ base_font_size - The base font size in pixels. Defaults to 12px
59
+ old_line_height - The old line height. Defaults to 1.5 times the base_font_size
60
+ =incr(!font_size = 10px, !base_font_size = !blueprint_font_size, !old_line_height = !base_font_size * 1.5)
61
+ font-size= 1em * !font_size / !base_font_size
62
+ line-height= 1em * !old_line_height / !font_size * 4 / 5
63
+ margin-bottom: 1.5em
64
+
65
+ //
66
+ Surround uppercase words and abbreviations with this class.
67
+ Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/]
68
+ =caps
69
+ font-variant: small-caps
70
+ letter-spacing: 1px
71
+ text-transform: lowercase
72
+ font-size: 1.2em
73
+ line-height: 1%
74
+ font-weight: bold
75
+ padding: 0 2px
76
+
77
+ =fancy-paragraphs
78
+ p + p
79
+ +sibling-indentation
80
+ p.incr,
81
+ .incr p
82
+ +incr