compass-edge 0.9.5.0 → 0.10.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. data/CHANGELOG.markdown +0 -153
  2. data/README.markdown +2 -12
  3. data/REVISION +1 -1
  4. data/Rakefile +2 -37
  5. data/VERSION.yml +1 -1
  6. data/examples/blueprint_default/index.html.haml +3 -3
  7. data/examples/blueprint_default/parts/forms.html.haml +0 -2
  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/src/utilities.sass +2 -2
  17. data/examples/downloader.rb +2 -2
  18. data/lib/compass/app_integration.rb +0 -21
  19. data/lib/compass/app_integration/rails.rb +0 -18
  20. data/lib/compass/app_integration/rails/configuration_defaults.rb +0 -16
  21. data/lib/compass/app_integration/rails/installer.rb +6 -6
  22. data/lib/compass/app_integration/stand_alone.rb +1 -20
  23. data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -5
  24. data/lib/compass/app_integration/stand_alone/installer.rb +17 -29
  25. data/lib/compass/commands.rb +2 -2
  26. data/lib/compass/commands/create_project.rb +1 -10
  27. data/lib/compass/commands/generate_grid_background.rb +1 -1
  28. data/lib/compass/commands/help.rb +7 -34
  29. data/lib/compass/commands/installer_command.rb +11 -15
  30. data/lib/compass/commands/project_base.rb +2 -2
  31. data/lib/compass/commands/update_project.rb +1 -51
  32. data/lib/compass/commands/validate_project.rb +3 -59
  33. data/lib/compass/commands/watch_project.rb +2 -4
  34. data/lib/compass/commands/write_configuration.rb +3 -84
  35. data/lib/compass/compiler.rb +4 -13
  36. data/lib/compass/configuration.rb +18 -23
  37. data/lib/compass/configuration/adapters.rb +1 -1
  38. data/lib/compass/configuration/data.rb +2 -5
  39. data/lib/compass/configuration/defaults.rb +1 -32
  40. data/lib/compass/configuration/helpers.rb +10 -47
  41. data/lib/compass/configuration/inheritance.rb +1 -1
  42. data/lib/compass/configuration/serialization.rb +2 -2
  43. data/lib/compass/errors.rb +1 -4
  44. data/lib/compass/exec.rb +0 -1
  45. data/lib/compass/exec/project_options_parser.rb +0 -4
  46. data/lib/compass/frameworks.rb +1 -40
  47. data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +1 -29
  48. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
  49. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +4 -1
  50. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +2 -57
  51. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +29 -2
  52. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -2
  53. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -2
  54. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -2
  55. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -2
  56. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -2
  57. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -2
  58. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -2
  59. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -2
  60. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +140 -2
  61. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -2
  62. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +122 -2
  63. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -2
  64. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +160 -2
  65. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -2
  66. data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
  67. data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +0 -12
  68. data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
  69. data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +0 -13
  70. data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +0 -24
  71. data/lib/compass/frameworks/blueprint/templates/project/screen.sass +7 -1
  72. data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +1 -9
  73. data/lib/compass/frameworks/compass/stylesheets/_compass.sass +1 -2
  74. data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +1 -0
  75. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass +6 -0
  76. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_border_radius.sass +0 -0
  77. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass +12 -0
  78. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_box_sizing.sass +0 -0
  79. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_columns.sass +0 -0
  80. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_inline_block.sass +0 -0
  81. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_opacity.sass +0 -0
  82. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +2 -2
  83. data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +1 -26
  84. data/lib/compass/frameworks/compass/templates/extension/manifest.rb +2 -16
  85. data/lib/compass/frameworks/compass/templates/project/manifest.rb +0 -1
  86. data/lib/compass/grid_builder.rb +1 -1
  87. data/lib/compass/installers.rb +1 -1
  88. data/lib/compass/installers/base.rb +52 -13
  89. data/lib/compass/installers/manifest.rb +1 -33
  90. data/lib/compass/logger.rb +2 -28
  91. data/lib/compass/sass_extensions/functions.rb +1 -3
  92. data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
  93. data/lib/compass/sass_extensions/functions/inline_image.rb +1 -22
  94. data/lib/compass/sass_extensions/functions/urls.rb +0 -20
  95. data/lib/compass/sass_extensions/monkey_patches.rb +2 -2
  96. data/lib/compass/validator.rb +3 -2
  97. data/lib/vendor/fssm.rb +6 -19
  98. data/lib/vendor/fssm/backends/fsevents.rb +60 -19
  99. data/lib/vendor/fssm/backends/polling.rb +18 -20
  100. data/lib/vendor/fssm/ext.rb +0 -30
  101. data/lib/vendor/fssm/monitor.rb +6 -10
  102. data/lib/vendor/fssm/path.rb +21 -24
  103. data/lib/vendor/fssm/state.rb +29 -37
  104. data/lib/vendor/fssm/support.rb +7 -3
  105. data/test/command_line_helper.rb +4 -12
  106. data/test/command_line_test.rb +2 -2
  107. data/test/compass_test.rb +4 -14
  108. data/test/configuration_test.rb +5 -5
  109. data/test/fixtures/stylesheets/blueprint/css/typography.css +3 -5
  110. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
  111. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
  112. data/test/fixtures/stylesheets/compass/css/print.css +8 -2
  113. data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
  114. data/test/fixtures/stylesheets/image_urls/css/screen.css +0 -2
  115. data/test/io_helper.rb +1 -18
  116. data/test/rails_integration_test.rb +41 -3
  117. data/test/sass_extensions_test.rb +2 -2
  118. data/test/test_helper.rb +0 -1
  119. metadata +9 -124
  120. data/examples/compass/bootstrap.rb +0 -3
  121. data/examples/compass/extensions/yui/stylesheets/_yui.sass +0 -7
  122. data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +0 -70
  123. data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +0 -45
  124. data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +0 -385
  125. data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +0 -61
  126. data/examples/compass/extensions/yui/templates/project/manifest.rb +0 -1
  127. data/examples/compass/extensions/yui/templates/project/screen.sass +0 -4
  128. data/examples/css3/config.rb +0 -6
  129. data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
  130. data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
  131. data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +0 -7
  132. data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -5
  133. data/examples/css3/images/fresh-peas.jpg +0 -0
  134. data/examples/css3/index.html.haml +0 -55
  135. data/examples/css3/src/_base.sass +0 -14
  136. data/examples/css3/src/fancy-fonts.sass +0 -7
  137. data/examples/css3/src/gradient.sass +0 -10
  138. data/examples/css3/src/main.sass +0 -80
  139. data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
  140. data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
  141. data/examples/susy/bootstrap.rb +0 -3
  142. data/examples/susy/config.rb +0 -9
  143. data/examples/susy/extensions/susy/LICENSE.txt +0 -28
  144. data/examples/susy/extensions/susy/README.mkdn +0 -235
  145. data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +0 -35
  146. data/examples/susy/extensions/susy/docs/tutorial/build.sh +0 -141
  147. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +0 -100
  148. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +0 -98
  149. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +0 -147
  150. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +0 -19
  151. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +0 -147
  152. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +0 -48
  153. data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +0 -14
  154. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
  155. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
  156. data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +0 -63
  157. data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +0 -1450
  158. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +0 -100
  159. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +0 -91
  160. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
  161. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
  162. data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +0 -301
  163. data/examples/susy/extensions/susy/lib/susy.rb +0 -2
  164. data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +0 -5
  165. data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +0 -79
  166. data/examples/susy/extensions/susy/sass/susy/_grid.sass +0 -128
  167. data/examples/susy/extensions/susy/sass/susy/_reset.sass +0 -7
  168. data/examples/susy/extensions/susy/sass/susy/_susy.sass +0 -23
  169. data/examples/susy/extensions/susy/sass/susy/_text.sass +0 -15
  170. data/examples/susy/extensions/susy/sass/susy/_utils.sass +0 -81
  171. data/examples/susy/extensions/susy/templates/project/_base.sass +0 -62
  172. data/examples/susy/extensions/susy/templates/project/_defaults.sass +0 -147
  173. data/examples/susy/extensions/susy/templates/project/ie.sass +0 -9
  174. data/examples/susy/extensions/susy/templates/project/manifest.rb +0 -5
  175. data/examples/susy/extensions/susy/templates/project/print.sass +0 -7
  176. data/examples/susy/extensions/susy/templates/project/screen.sass +0 -44
  177. data/examples/susy/src/_base.sass +0 -62
  178. data/examples/susy/src/_defaults.sass +0 -148
  179. data/examples/susy/src/screen.sass +0 -114
  180. data/features/command_line.feature +0 -226
  181. data/features/extensions.feature +0 -20
  182. data/features/step_definitions/command_line_steps.rb +0 -223
  183. data/features/step_definitions/extension_steps.rb +0 -13
  184. data/lib/compass/commands/interactive.rb +0 -61
  185. data/lib/compass/commands/project_stats.rb +0 -162
  186. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +0 -84
  187. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +0 -33
  188. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +0 -9
  189. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +0 -82
  190. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +0 -56
  191. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +0 -179
  192. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +0 -58
  193. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +0 -44
  194. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +0 -141
  195. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +0 -123
  196. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +0 -49
  197. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +0 -162
  198. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +0 -37
  199. data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +0 -14
  200. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +0 -16
  201. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +0 -18
  202. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +0 -14
  203. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +0 -20
  204. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +0 -31
  205. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +0 -40
  206. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +0 -15
  207. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +0 -60
  208. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +0 -57
  209. data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +0 -32
  210. data/lib/compass/installers/bare_installer.rb +0 -58
  211. data/lib/compass/installers/manifest_installer.rb +0 -59
  212. data/lib/compass/sass_extensions/functions/color_stop.rb +0 -10
  213. data/lib/compass/sass_extensions/functions/font_files.rb +0 -11
  214. data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
  215. data/lib/compass/stats.rb +0 -92
  216. data/lib/vendor/fssm/cache.rb +0 -193
  217. data/lib/vendor/fssm/fsevents.rb +0 -129
  218. data/lib/vendor/fssm/tree.rb +0 -176
  219. data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
  220. data/test/fixtures/stylesheets/relative/config.rb +0 -9
  221. data/test/fixtures/stylesheets/relative/css/ie.css +0 -1
  222. data/test/fixtures/stylesheets/relative/css/print.css +0 -1
  223. data/test/fixtures/stylesheets/relative/css/screen.css +0 -1
  224. data/test/fixtures/stylesheets/relative/sass/ie.sass +0 -6
  225. data/test/fixtures/stylesheets/relative/sass/print.sass +0 -6
  226. data/test/fixtures/stylesheets/relative/sass/screen.sass +0 -3
  227. data/test/rails_helper.rb +0 -40
@@ -156,7 +156,7 @@ module Compass
156
156
  :raw => (instance.send("raw_#{prop}") rescue nil),
157
157
  :value => (instance.send("#{prop}_without_default") rescue nil),
158
158
  :default => (instance.send("default_#{prop}") rescue nil),
159
- :resolved => instance.send(prop)
159
+ :resoved => instance.send(prop)
160
160
  }
161
161
  end
162
162
  normalized_attrs[prop] = values
@@ -9,13 +9,13 @@ module Compass
9
9
 
10
10
  module ClassMethods
11
11
  def new_from_file(config_file)
12
- data = Data.new(config_file)
12
+ data = Data.new
13
13
  data.parse(config_file)
14
14
  data
15
15
  end
16
16
 
17
17
  def new_from_string(contents, filename)
18
- data = Data.new(filename)
18
+ data = Data.new
19
19
  data.parse_string(contents, filename)
20
20
  data
21
21
  end
@@ -4,7 +4,4 @@ module Compass
4
4
 
5
5
  class FilesystemConflict < Error
6
6
  end
7
-
8
- class MissingDependency < Error
9
- end
10
- end
7
+ end
@@ -3,7 +3,6 @@ require 'optparse'
3
3
  require 'compass/logger'
4
4
  require 'compass/errors'
5
5
  require 'compass/actions'
6
- require 'compass/installers'
7
6
  require 'compass/commands'
8
7
 
9
8
  module Compass::Exec
@@ -8,10 +8,6 @@ module Compass::Exec::ProjectOptionsParser
8
8
  self.options[:configuration_file] = configuration_file
9
9
  end
10
10
 
11
- opts.on('--app APP', 'Tell compass what kind of application it is integrating with. E.g. rails') do |project_type|
12
- self.options[:project_type] = project_type.to_sym
13
- end
14
-
15
11
  opts.on('--sass-dir SRC_DIR', "The source directory where you keep your sass stylesheets.") do |sass_dir|
16
12
  self.options[:sass_dir] = sass_dir
17
13
  end
@@ -15,24 +15,10 @@ module Compass
15
15
  @templates_directory = options[:templates_directory] || File.join(path, 'templates')
16
16
  @stylesheets_directory = options[:stylesheets_directory] || File.join(path, 'stylesheets')
17
17
  end
18
- def template_directories
19
- Dir.glob(File.join(templates_directory, "*")).map{|f| File.basename(f)}
20
- end
21
- def manifest_file(pattern)
22
- File.join(templates_directory, pattern.to_s, "manifest.rb")
23
- end
24
- def manifest(pattern, options = {})
25
- options[:pattern_name] ||= pattern
26
- Compass::Installers::Manifest.new(manifest_file(pattern), options)
27
- end
28
18
  end
29
19
 
30
20
  def register(name, *arguments)
31
- if idx = ALL.index(self[name])
32
- ALL[idx] = Framework.new(name, *arguments)
33
- else
34
- ALL << Framework.new(name, *arguments)
35
- end
21
+ ALL << Framework.new(name, *arguments)
36
22
  end
37
23
 
38
24
  def [](name)
@@ -61,31 +47,6 @@ module Compass
61
47
  end
62
48
  end
63
49
 
64
- def template_exists?(template)
65
- framework_name, template = template.split(%r{/}, 2)
66
- template ||= "project"
67
- if framework = self[framework_name]
68
- return File.directory?(File.join(framework.templates_directory, template))
69
- end
70
- false
71
- end
72
-
73
- def template_usage(template)
74
- framework_name, template = template.split(%r{/}, 2)
75
- framework = self[framework_name]
76
- template ||= "project"
77
- usage_file = File.join(framework.templates_directory, template, "USAGE.markdown")
78
- if File.exists?(usage_file)
79
- File.read(usage_file)
80
- elsif help = framework.manifest(template).help
81
- help
82
- else
83
- <<-END.gsub(/^ {8}/, '')
84
- No Usage!
85
- END
86
- end
87
- end
88
-
89
50
  end
90
51
  end
91
52
 
@@ -1,31 +1,3 @@
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
1
+ @import blueprint/screen.sass
8
2
  @import blueprint/print.sass
9
3
  @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
@@ -56,6 +56,8 @@
56
56
  =blueprint-ie-defaults
57
57
  .container
58
58
  text-align: left
59
+ ol
60
+ margin-left: 2em
59
61
  sup
60
62
  vertical-align: text-top
61
63
  sub
@@ -66,8 +68,6 @@
66
68
  -ms-interpolation-mode: bicubic
67
69
  fieldset
68
70
  padding-top: 0
69
- textarea
70
- overflow: auto
71
71
  input
72
72
  &.text
73
73
  margin: 0.5em 0
@@ -1,4 +1,4 @@
1
- @import typography.sass
1
+ @import modules/typography.sass
2
2
  @import compass/utilities/general/float.sass
3
3
 
4
4
 
@@ -62,6 +62,9 @@
62
62
  font:
63
63
  size: .9em
64
64
  family= !blueprint_fixed_font_family
65
+ img
66
+ +float-left
67
+ margin: 1.5em 1.5em 1.5em 0
65
68
  a
66
69
  img
67
70
  border: none
@@ -1,58 +1,3 @@
1
- // Global reset rules.
2
- // For more specific resets, use the reset mixins provided below
3
- =blueprint-global-reset
4
- html, body
5
- +blueprint-reset
6
- html
7
- font-size: 100.01%
8
- +blueprint-nested-reset
1
+ @import modules/reset.sass
9
2
 
10
- // Reset all elements within some selector scope.To reset the selector itself,
11
- // mixin the appropriate reset mixin for that element type as well. This could be
12
- // useful if you want to style a part of your page in a dramatically different way.
13
- =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
- +blueprint-reset
18
- blockquote, q
19
- +blueprint-reset-quotation
20
- th, td, caption
21
- +blueprint-reset-table-cell
22
- table
23
- +blueprint-reset-table
24
- a img
25
- border: none
26
-
27
- =blueprint-reset-box-model
28
- margin: 0
29
- padding: 0
30
- border: 0
31
-
32
- =blueprint-reset
33
- +blueprint-reset-box-model
34
- font:
35
- weight: inherit
36
- style: inherit
37
- size: 100%
38
- family: inherit
39
- vertical-align: baseline
40
-
41
- =blueprint-reset-quotation
42
- +blueprint-reset
43
- quotes: "" ""
44
- &:before,
45
- &:after
46
- content: ""
47
-
48
- =blueprint-reset-table-cell
49
- +blueprint-reset
50
- text-align: left
51
- font-weight: normal
52
- vertical-align: middle
53
-
54
- =blueprint-reset-table
55
- +blueprint-reset
56
- border-collapse: separate
57
- border-spacing: 0
58
- vertical-align: middle
3
+ +blueprint-global-reset
@@ -1,2 +1,29 @@
1
- @debug "DEPRECATION WARNING: The blueprint/screen.sass will be removed. Please import blueprint.sass instead."
2
- @import blueprint.sass
1
+ @import modules/colors.sass
2
+ @import modules/grid.sass
3
+ @import modules/typography.sass
4
+ @import modules/utilities.sass
5
+ @import modules/form.sass
6
+ @import modules/interaction.sass
7
+ @import modules/debug.sass
8
+
9
+ // Usage examples:
10
+ // As a top-level mixin, apply to any page that includes the stylesheet:
11
+ // +blueprint
12
+ // Scoped by a presentational class:
13
+ // body.blueprint
14
+ // +blueprint(true)
15
+ // Scoped by semantic selectors:
16
+ // body#page-1, body#page-2, body.a-special-page-type
17
+ // +blueprint(true)
18
+ // Deprecated:
19
+ // You can pass the body selector as the first argument when used as a top-level mixin
20
+ // +blueprint("body#page-1, body#page-2, body.a-special-page-type")
21
+ =blueprint(!body_selector = "body")
22
+ @if not (!body_selector == "body" or !body_selector == true)
23
+ @debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +blueprint, pass true as the first argument and mix it into #{!body_selector}."
24
+ +blueprint-typography(!body_selector)
25
+ +blueprint-utilities
26
+ +blueprint-grid
27
+ +blueprint-debug
28
+ +blueprint-interaction
29
+ +blueprint-form
@@ -1,2 +1,84 @@
1
- @debug "DEPRECATION WARINING: blueprint/modules/buttons.sass has moved to blueprint/buttons.sass"
2
- @import blueprint/buttons.sass
1
+ @import compass/utilities/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
@@ -1,2 +1,33 @@
1
- @debug "DEPRECATION WARINING: blueprint/modules/colors.sass has moved to blueprint/colors.sass"
2
- @import blueprint/colors.sass
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
@@ -1,2 +1,9 @@
1
- @debug "DEPRECATION WARINING: blueprint/modules/debug.sass has moved to blueprint/debug.sass"
2
- @import blueprint/debug.sass
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
+
@@ -1,2 +1,82 @@
1
- @debug "DEPRECATION WARINING: blueprint/modules/fancy_type.sass has moved to blueprint/fancy_type.sass"
2
- @import blueprint/fancy_type.sass
1
+ @import typography.sass
2
+
3
+ //
4
+ To install the fancy type plugin:
5
+ 1. import the fancy_type module: @import blueprint/modules/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