compass 0.13.alpha.0 → 0.13.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. data/README.markdown +6 -4
  2. data/Rakefile +9 -0
  3. data/VERSION.yml +2 -2
  4. data/bin/compass +2 -1
  5. data/features/command_line.feature +5 -27
  6. data/features/step_definitions/command_line_steps.rb +3 -2
  7. data/frameworks/compass/stylesheets/compass/_css3.scss +3 -0
  8. data/frameworks/compass/stylesheets/compass/_support.scss +6 -0
  9. data/frameworks/compass/stylesheets/compass/css3/_animation.scss +77 -76
  10. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +15 -9
  11. data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +35 -36
  12. data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +36 -34
  13. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +15 -15
  14. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +30 -48
  15. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +22 -27
  16. data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +13 -8
  17. data/frameworks/compass/stylesheets/compass/css3/_box.scss +60 -82
  18. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +145 -25
  19. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +44 -0
  20. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +77 -0
  21. data/frameworks/compass/stylesheets/compass/css3/_images.scss +2 -2
  22. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +14 -8
  23. data/frameworks/compass/stylesheets/compass/css3/_selection.scss +31 -0
  24. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +207 -21
  25. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +52 -13
  26. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +14 -14
  27. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +127 -60
  28. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +35 -15
  29. data/frameworks/compass/stylesheets/compass/typography/_units.scss +152 -0
  30. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +174 -98
  31. data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +5 -3
  32. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +6 -3
  33. data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +1 -1
  34. data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +35 -9
  35. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +7 -3
  36. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +2 -2
  37. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +25 -10
  38. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +14 -9
  39. data/lib/compass.rb +2 -2
  40. data/lib/compass/actions.rb +5 -1
  41. data/lib/compass/commands/project_base.rb +7 -1
  42. data/lib/compass/commands/update_project.rb +2 -2
  43. data/lib/compass/commands/watch_project.rb +6 -86
  44. data/lib/compass/compiler.rb +6 -0
  45. data/lib/compass/configuration/data.rb +1 -1
  46. data/lib/compass/configuration/helpers.rb +2 -0
  47. data/lib/compass/exec/global_options_parser.rb +1 -1
  48. data/lib/compass/exec/project_options_parser.rb +4 -0
  49. data/lib/compass/logger.rb +2 -0
  50. data/lib/compass/sass_extensions/functions/colors.rb +14 -0
  51. data/lib/compass/sass_extensions/functions/constants.rb +9 -0
  52. data/lib/compass/sass_extensions/functions/gradient_support.rb +44 -5
  53. data/lib/compass/sass_extensions/functions/image_size.rb +2 -1
  54. data/lib/compass/sass_extensions/functions/math.rb +14 -2
  55. data/lib/compass/sass_extensions/functions/sprites.rb +81 -14
  56. data/lib/compass/sass_extensions/functions/urls.rb +29 -2
  57. data/lib/compass/sass_extensions/sprites.rb +2 -0
  58. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +5 -1
  59. data/lib/compass/sass_extensions/sprites/image.rb +7 -2
  60. data/lib/compass/sass_extensions/sprites/image_methods.rb +5 -2
  61. data/lib/compass/sass_extensions/sprites/images.rb +29 -0
  62. data/lib/compass/sass_extensions/sprites/layout.rb +39 -0
  63. data/lib/compass/sass_extensions/sprites/layout/diagonal.rb +42 -0
  64. data/lib/compass/sass_extensions/sprites/layout/horizontal.rb +66 -0
  65. data/lib/compass/sass_extensions/sprites/layout/smart.rb +33 -0
  66. data/lib/compass/sass_extensions/sprites/layout/vertical.rb +68 -0
  67. data/lib/compass/sass_extensions/sprites/layout_methods.rb +9 -115
  68. data/lib/compass/sass_extensions/sprites/sprite_map.rb +5 -0
  69. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +9 -5
  70. data/lib/compass/sprite_importer.rb +3 -3
  71. data/lib/compass/sprite_importer/content.erb +14 -12
  72. data/lib/compass/version.rb +2 -1
  73. data/lib/compass/watcher.rb +11 -0
  74. data/lib/compass/watcher/compiler.rb +59 -0
  75. data/lib/compass/watcher/project_watcher.rb +108 -0
  76. data/lib/compass/watcher/watch.rb +33 -0
  77. data/test/fixtures/stylesheets/busted_font_urls/config.rb +32 -0
  78. data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +7 -0
  79. data/{examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf → test/fixtures/stylesheets/busted_font_urls/fonts/feed.ttf} +0 -0
  80. data/test/fixtures/stylesheets/busted_font_urls/fonts/grid.ttf +0 -0
  81. data/test/fixtures/stylesheets/busted_font_urls/fonts/sub/dk.ttf +0 -0
  82. data/test/fixtures/stylesheets/busted_font_urls/sass/screen.sass +11 -0
  83. data/test/fixtures/stylesheets/busted_font_urls/tmp/screen.css +7 -0
  84. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +0 -8
  85. data/test/fixtures/stylesheets/compass/css/animation.css +0 -8
  86. data/test/fixtures/stylesheets/compass/css/background-clip.css +5 -0
  87. data/test/fixtures/stylesheets/compass/css/background-origin.css +15 -0
  88. data/test/fixtures/stylesheets/compass/css/background-size.css +24 -0
  89. data/test/fixtures/stylesheets/compass/css/columns.css +81 -9
  90. data/test/fixtures/stylesheets/compass/css/filters.css +29 -0
  91. data/test/fixtures/stylesheets/compass/css/gradients.css +30 -27
  92. data/test/fixtures/stylesheets/compass/css/grid_background.css +7 -14
  93. data/test/fixtures/stylesheets/compass/css/hyphenation.css +16 -0
  94. data/test/fixtures/stylesheets/compass/css/lists.css +11 -13
  95. data/test/fixtures/stylesheets/compass/css/pie.css +0 -3
  96. data/test/fixtures/stylesheets/compass/css/replacement.css +59 -0
  97. data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
  98. data/test/fixtures/stylesheets/compass/css/selection.css +13 -0
  99. data/test/fixtures/stylesheets/compass/css/sprites.css +250 -250
  100. data/test/fixtures/stylesheets/compass/css/text_shadow.css +22 -4
  101. data/test/fixtures/stylesheets/compass/css/transition.css +67 -11
  102. data/test/fixtures/stylesheets/compass/css/units.css +30 -0
  103. data/test/fixtures/stylesheets/compass/css/user-interface.css +12 -1
  104. data/test/fixtures/stylesheets/compass/css/utilities.css +15 -0
  105. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +199 -27
  106. data/test/fixtures/stylesheets/compass/images/flag-s5b4f509715.png +0 -0
  107. data/test/fixtures/stylesheets/compass/sass/background-clip.scss +4 -2
  108. data/test/fixtures/stylesheets/compass/sass/background-origin.scss +10 -0
  109. data/test/fixtures/stylesheets/compass/sass/background-size.scss +12 -0
  110. data/test/fixtures/stylesheets/compass/sass/columns.scss +18 -0
  111. data/test/fixtures/stylesheets/compass/sass/filters.scss +24 -0
  112. data/test/fixtures/stylesheets/compass/sass/gradients.sass +10 -3
  113. data/test/fixtures/stylesheets/compass/sass/hyphenation.scss +11 -0
  114. data/test/fixtures/stylesheets/compass/sass/replacement.scss +22 -0
  115. data/test/fixtures/stylesheets/compass/sass/selection.scss +13 -0
  116. data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +6 -1
  117. data/test/fixtures/stylesheets/compass/sass/transition.scss +11 -0
  118. data/test/fixtures/stylesheets/compass/sass/units.scss +45 -0
  119. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +10 -5
  120. data/test/fixtures/stylesheets/compass/sass/utilities.scss +10 -0
  121. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss +208 -7
  122. data/test/fixtures/stylesheets/envtest/tmp/env.css +4 -4
  123. data/test/fixtures/stylesheets/valid/css/simple.css +4 -0
  124. data/test/helpers/test_case.rb +8 -1
  125. data/test/integrations/compass_test.rb +13 -13
  126. data/test/integrations/sprites_test.rb +173 -8
  127. data/test/test_helper.rb +4 -0
  128. data/test/units/command_line_test.rb +0 -2
  129. data/test/units/regressions_test.rb +35 -0
  130. data/test/units/sass_extensions_test.rb +23 -11
  131. data/test/units/sprites/image_test.rb +5 -0
  132. data/test/units/sprites/images_test.rb +46 -0
  133. data/test/units/sprites/layout_test.rb +18 -2
  134. data/test/units/watcher/compiler_test.rb +39 -0
  135. data/test/units/watcher/project_watcher_test.rb +65 -0
  136. data/test/units/watcher/watch_test.rb +42 -0
  137. metadata +83 -317
  138. data/bin/compass.compiled.rbc +0 -707
  139. data/examples/compass/images/emblem-a043c4f148.png +0 -0
  140. data/examples/compass/images/flag-03c3b29b35.png +0 -0
  141. data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
  142. data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
  143. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
  144. data/frameworks/blueprint/stylesheets/_blueprint.scss +0 -37
  145. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +0 -101
  146. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +0 -36
  147. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +0 -28
  148. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +0 -88
  149. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +0 -66
  150. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +0 -258
  151. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +0 -111
  152. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +0 -66
  153. data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +0 -37
  154. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +0 -152
  155. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +0 -86
  156. data/frameworks/blueprint/stylesheets/blueprint/_reset.scss +0 -3
  157. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +0 -121
  158. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +0 -52
  159. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +0 -90
  160. data/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +0 -37
  161. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +0 -80
  162. data/frameworks/blueprint/templates/basic/grid.png +0 -0
  163. data/frameworks/blueprint/templates/basic/ie.sass +0 -4
  164. data/frameworks/blueprint/templates/basic/manifest.rb +0 -30
  165. data/frameworks/blueprint/templates/basic/partials/_base.sass +0 -10
  166. data/frameworks/blueprint/templates/basic/print.sass +0 -4
  167. data/frameworks/blueprint/templates/basic/screen.sass +0 -12
  168. data/frameworks/blueprint/templates/buttons/buttons.sass +0 -49
  169. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  170. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  171. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  172. data/frameworks/blueprint/templates/buttons/manifest.rb +0 -17
  173. data/frameworks/blueprint/templates/link_icons/link_icons.sass +0 -13
  174. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  175. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  176. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  177. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  178. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  179. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  180. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  181. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  182. data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -23
  183. data/frameworks/blueprint/templates/project/grid.png +0 -0
  184. data/frameworks/blueprint/templates/project/ie.sass +0 -16
  185. data/frameworks/blueprint/templates/project/manifest.rb +0 -30
  186. data/frameworks/blueprint/templates/project/partials/_base.sass +0 -11
  187. data/frameworks/blueprint/templates/project/print.sass +0 -8
  188. data/frameworks/blueprint/templates/project/screen.sass +0 -46
  189. data/frameworks/blueprint/templates/semantic/grid.png +0 -0
  190. data/frameworks/blueprint/templates/semantic/ie.sass +0 -16
  191. data/frameworks/blueprint/templates/semantic/manifest.rb +0 -33
  192. data/frameworks/blueprint/templates/semantic/partials/_base.sass +0 -10
  193. data/frameworks/blueprint/templates/semantic/partials/_form.sass +0 -6
  194. data/frameworks/blueprint/templates/semantic/partials/_page.sass +0 -17
  195. data/frameworks/blueprint/templates/semantic/partials/_two_col.sass +0 -38
  196. data/frameworks/blueprint/templates/semantic/print.sass +0 -5
  197. data/frameworks/blueprint/templates/semantic/screen.sass +0 -14
  198. data/lib/compass.rbc +0 -796
  199. data/lib/compass/actions.rbc +0 -2736
  200. data/lib/compass/app_integration.rbc +0 -836
  201. data/lib/compass/app_integration/merb.rbc +0 -106
  202. data/lib/compass/app_integration/rails.rbc +0 -2096
  203. data/lib/compass/app_integration/rails/configuration_defaults.rbc +0 -2430
  204. data/lib/compass/app_integration/rails/installer.rbc +0 -3677
  205. data/lib/compass/app_integration/stand_alone.rbc +0 -589
  206. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +0 -721
  207. data/lib/compass/app_integration/stand_alone/installer.rbc +0 -1487
  208. data/lib/compass/browser_support.rbc +0 -1144
  209. data/lib/compass/commands.rbc +0 -307
  210. data/lib/compass/commands/base.rbc +0 -1044
  211. data/lib/compass/commands/clean_project.rbc +0 -1856
  212. data/lib/compass/commands/create_project.rbc +0 -2691
  213. data/lib/compass/commands/default.rbc +0 -1677
  214. data/lib/compass/commands/generate_grid_background.rbc +0 -1939
  215. data/lib/compass/commands/help.rbc +0 -1921
  216. data/lib/compass/commands/imports.rbc +0 -969
  217. data/lib/compass/commands/installer_command.rbc +0 -807
  218. data/lib/compass/commands/interactive.rbc +0 -1341
  219. data/lib/compass/commands/list_frameworks.rbc +0 -1111
  220. data/lib/compass/commands/print_version.rbc +0 -2478
  221. data/lib/compass/commands/project_base.rbc +0 -2085
  222. data/lib/compass/commands/project_stats.rbc +0 -4202
  223. data/lib/compass/commands/registry.rbc +0 -1350
  224. data/lib/compass/commands/sprite.rbc +0 -2212
  225. data/lib/compass/commands/stamp_pattern.rbc +0 -2011
  226. data/lib/compass/commands/unpack_extension.rbc +0 -2348
  227. data/lib/compass/commands/update_project.rbc +0 -3002
  228. data/lib/compass/commands/validate_project.rbc +0 -1686
  229. data/lib/compass/commands/watch_project.rbc +0 -4155
  230. data/lib/compass/commands/write_configuration.rbc +0 -2896
  231. data/lib/compass/compiler.rbc +0 -4913
  232. data/lib/compass/configuration.rbc +0 -1398
  233. data/lib/compass/configuration/adapters.rbc +0 -2088
  234. data/lib/compass/configuration/comments.rbc +0 -843
  235. data/lib/compass/configuration/data.rbc +0 -2633
  236. data/lib/compass/configuration/defaults.rbc +0 -3617
  237. data/lib/compass/configuration/file_data.rbc +0 -643
  238. data/lib/compass/configuration/helpers.rbc +0 -3500
  239. data/lib/compass/configuration/inheritance.rbc +0 -3592
  240. data/lib/compass/configuration/paths.rbc +0 -412
  241. data/lib/compass/configuration/serialization.rbc +0 -1996
  242. data/lib/compass/dependencies.rbc +0 -232
  243. data/lib/compass/errors.rbc +0 -176
  244. data/lib/compass/exec.rbc +0 -500
  245. data/lib/compass/exec/command_option_parser.rbc +0 -676
  246. data/lib/compass/exec/global_options_parser.rbc +0 -1306
  247. data/lib/compass/exec/helpers.rbc +0 -758
  248. data/lib/compass/exec/project_options_parser.rbc +0 -1515
  249. data/lib/compass/exec/sub_command_ui.rbc +0 -1191
  250. data/lib/compass/frameworks.rbc +0 -3640
  251. data/lib/compass/grid_builder.rbc +0 -0
  252. data/lib/compass/installers.rbc +0 -152
  253. data/lib/compass/installers/bare_installer.rbc +0 -939
  254. data/lib/compass/installers/base.rbc +0 -4427
  255. data/lib/compass/installers/manifest.rbc +0 -3335
  256. data/lib/compass/installers/manifest_installer.rbc +0 -1591
  257. data/lib/compass/installers/template_context.rbc +0 -1030
  258. data/lib/compass/logger.rbc +0 -2317
  259. data/lib/compass/quick_cache.rbc +0 -324
  260. data/lib/compass/sass_extensions.rbc +0 -213
  261. data/lib/compass/sass_extensions/functions.rbc +0 -808
  262. data/lib/compass/sass_extensions/functions/colors.rbc +0 -1279
  263. data/lib/compass/sass_extensions/functions/constants.rbc +0 -1921
  264. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +0 -1966
  265. data/lib/compass/sass_extensions/functions/display.rbc +0 -1227
  266. data/lib/compass/sass_extensions/functions/enumerate.rbc +0 -446
  267. data/lib/compass/sass_extensions/functions/env.rbc +0 -299
  268. data/lib/compass/sass_extensions/functions/font_files.rbc +0 -821
  269. data/lib/compass/sass_extensions/functions/gradient_support.rbc +0 -14147
  270. data/lib/compass/sass_extensions/functions/image_size.rbc +0 -3152
  271. data/lib/compass/sass_extensions/functions/inline_image.rbc +0 -1678
  272. data/lib/compass/sass_extensions/functions/lists.rbc +0 -2601
  273. data/lib/compass/sass_extensions/functions/selectors.rbc +0 -1592
  274. data/lib/compass/sass_extensions/functions/sprites.rbc +0 -3792
  275. data/lib/compass/sass_extensions/functions/trig.rbc +0 -811
  276. data/lib/compass/sass_extensions/functions/urls.rbc +0 -5248
  277. data/lib/compass/sass_extensions/monkey_patches.rbc +0 -134
  278. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +0 -2169
  279. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +0 -660
  280. data/lib/compass/sass_extensions/sprites.rbc +0 -363
  281. data/lib/compass/sass_extensions/sprites/base.rbc +0 -4529
  282. data/lib/compass/sass_extensions/sprites/engines.rbc +0 -662
  283. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +0 -1074
  284. data/lib/compass/sass_extensions/sprites/image.rbc +0 -2961
  285. data/lib/compass/sass_extensions/sprites/image_methods.rbc +0 -900
  286. data/lib/compass/sass_extensions/sprites/image_row.rbc +0 -1168
  287. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +0 -3236
  288. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +0 -2067
  289. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +0 -1991
  290. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +0 -3190
  291. data/lib/compass/sass_extensions/sprites/sprites.rbc +0 -1573
  292. data/lib/compass/sprite_importer.rbc +0 -3573
  293. data/lib/compass/util.rbc +0 -552
  294. data/lib/compass/version.rbc +0 -1245
  295. data/test/fixtures/stylesheets/blueprint/config.rb +0 -14
  296. data/test/fixtures/stylesheets/blueprint/css/ie.css +0 -76
  297. data/test/fixtures/stylesheets/blueprint/css/print.css +0 -56
  298. data/test/fixtures/stylesheets/blueprint/css/screen.css +0 -816
  299. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +0 -58
  300. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +0 -80
  301. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +0 -12
  302. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +0 -30
  303. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +0 -42
  304. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +0 -435
  305. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +0 -76
  306. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +0 -46
  307. data/test/fixtures/stylesheets/blueprint/css/single-imports/link-icons.css +0 -40
  308. data/test/fixtures/stylesheets/blueprint/css/single-imports/liquid.css +0 -651
  309. data/test/fixtures/stylesheets/blueprint/css/single-imports/print.css +0 -60
  310. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +0 -36
  311. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +0 -40
  312. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +0 -437
  313. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +0 -45
  314. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +0 -146
  315. data/test/fixtures/stylesheets/blueprint/css/single-imports/utilities.css +0 -35
  316. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  317. data/test/fixtures/stylesheets/blueprint/images/link_icons/doc.png +0 -0
  318. data/test/fixtures/stylesheets/blueprint/images/link_icons/email.png +0 -0
  319. data/test/fixtures/stylesheets/blueprint/images/link_icons/external.png +0 -0
  320. data/test/fixtures/stylesheets/blueprint/images/link_icons/feed.png +0 -0
  321. data/test/fixtures/stylesheets/blueprint/images/link_icons/im.png +0 -0
  322. data/test/fixtures/stylesheets/blueprint/images/link_icons/pdf.png +0 -0
  323. data/test/fixtures/stylesheets/blueprint/images/link_icons/visited.png +0 -0
  324. data/test/fixtures/stylesheets/blueprint/images/link_icons/xls.png +0 -0
  325. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +0 -3
  326. data/test/fixtures/stylesheets/blueprint/sass/print.sass +0 -3
  327. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +0 -18
  328. data/test/fixtures/stylesheets/blueprint/sass/single-imports/buttons.scss +0 -4
  329. data/test/fixtures/stylesheets/blueprint/sass/single-imports/colors.scss +0 -34
  330. data/test/fixtures/stylesheets/blueprint/sass/single-imports/debug.scss +0 -3
  331. data/test/fixtures/stylesheets/blueprint/sass/single-imports/fancy-type.scss +0 -3
  332. data/test/fixtures/stylesheets/blueprint/sass/single-imports/form.scss +0 -5
  333. data/test/fixtures/stylesheets/blueprint/sass/single-imports/grid.scss +0 -3
  334. data/test/fixtures/stylesheets/blueprint/sass/single-imports/ie.scss +0 -3
  335. data/test/fixtures/stylesheets/blueprint/sass/single-imports/interaction.scss +0 -3
  336. data/test/fixtures/stylesheets/blueprint/sass/single-imports/link-icons.scss +0 -13
  337. data/test/fixtures/stylesheets/blueprint/sass/single-imports/liquid.scss +0 -3
  338. data/test/fixtures/stylesheets/blueprint/sass/single-imports/print.scss +0 -5
  339. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset-utilities.scss +0 -5
  340. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset.scss +0 -1
  341. data/test/fixtures/stylesheets/blueprint/sass/single-imports/rtl.scss +0 -3
  342. data/test/fixtures/stylesheets/blueprint/sass/single-imports/scaffolding.scss +0 -5
  343. data/test/fixtures/stylesheets/blueprint/sass/single-imports/typography.scss +0 -3
  344. data/test/fixtures/stylesheets/blueprint/sass/single-imports/utilities.scss +0 -3
  345. data/test/fixtures/stylesheets/compass/images/flag-s4798b5a210.png +0 -0
  346. data/test/helpers/command_line.rbc +0 -2820
  347. data/test/helpers/diff.rbc +0 -1104
  348. data/test/helpers/io.rbc +0 -962
  349. data/test/helpers/rails.rbc +0 -1116
  350. data/test/helpers/test_case.rbc +0 -1255
  351. data/test/integrations/compass_test.rbc +0 -6589
  352. data/test/integrations/rails_integration_test.rbc +0 -1342
  353. data/test/integrations/sprites_test.rbc +0 -6192
  354. data/test/test_helper.rbc +0 -1694
  355. data/test/units/actions_test.rbc +0 -644
  356. data/test/units/command_line_test.rbc +0 -1532
  357. data/test/units/compass_png_test.rbc +0 -0
  358. data/test/units/configuration_test.rbc +0 -3833
  359. data/test/units/rails_configuration_test.rbc +0 -1032
  360. data/test/units/sass_extensions_test.rbc +0 -3586
  361. data/test/units/sprites/engine_test.rbc +0 -962
  362. data/test/units/sprites/image_row_test.rbc +0 -1578
  363. data/test/units/sprites/image_test.rbc +0 -2836
  364. data/test/units/sprites/importer_test.rbc +0 -2620
  365. data/test/units/sprites/row_fitter_test.rbc +0 -1479
  366. data/test/units/sprites/sprite_command_test.rbc +0 -1147
  367. data/test/units/sprites/sprite_map_test.rbc +0 -6515
@@ -1,37 +0,0 @@
1
- @import "blueprint/colors";
2
- @import "blueprint/grid";
3
- @import "blueprint/typography";
4
- @import "blueprint/utilities";
5
- @import "blueprint/form";
6
- @import "blueprint/interaction";
7
- @import "blueprint/debug";
8
- @import "blueprint/print";
9
- @import "blueprint/ie";
10
-
11
- // ### Usage examples:
12
- //
13
- // As a top-level mixin, apply to any page that includes the stylesheet:
14
- // <pre class="source-code sass">
15
- // +blueprint
16
- // </pre>
17
- //
18
- // Scoped by a presentational class:
19
- // <pre class="source-code sass">
20
- // body.blueprint
21
- // +blueprint(true)
22
- // </pre>
23
- //
24
- // Scoped by semantic selectors:
25
- // <pre class="source-code sass">
26
- // body#page-1, body#page-2, body.a-special-page-type
27
- // +blueprint(true)
28
- // </pre>
29
-
30
- @mixin blueprint($nested: false) {
31
- @include blueprint-typography($nested);
32
- @include blueprint-utilities;
33
- @include blueprint-grid;
34
- @include blueprint-debug;
35
- @include blueprint-interaction;
36
- @include blueprint-form;
37
- }
@@ -1,101 +0,0 @@
1
- @import "compass/css3/inline-block";
2
- @import "compass/utilities/general/float";
3
-
4
- // Button Font
5
- $blueprint-button-font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif !default;
6
-
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;
11
-
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;
16
-
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;
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
- @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
31
- ) {
32
- background-color: $bg-color;
33
- border-color: $border-highlight-color $border-color $border-color $border-highlight-color;
34
- color: $font-color;
35
- }
36
-
37
- //**
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.
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
46
- ) {
47
- &:active {
48
- @include button-colors($font-color, $bg-color, $border-color, $border-highlight-color);
49
- }
50
- }
51
-
52
- //**
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.
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
61
- ) {
62
- &:hover {
63
- @include button-colors($font-color, $bg-color, $border-color, $border-highlight-color);
64
- }
65
- }
66
-
67
- @mixin button-base($float: false) {
68
- @if $float { @include float($float); display: block; }
69
- @else { @include inline-block; }
70
- margin: 0.7em 0.5em 0.7em 0;
71
- border-width: 1px; border-style: solid;
72
- font-family: $blueprint-button-font-family; font-size: 100%; line-height: 130%; font-weight: bold;
73
- text-decoration: none;
74
- cursor: pointer;
75
- img {
76
- margin: 0 3px -3px 0 !important;
77
- padding: 0;
78
- border: none;
79
- width: 16px;
80
- height: 16px;
81
- float: none;
82
- }
83
- }
84
-
85
- @mixin anchor-button($float: false) {
86
- @include button-base($float);
87
- padding: 5px 10px 5px 7px;
88
- }
89
-
90
- @mixin button-button($float: false) {
91
- @include button-base($float);
92
- width: auto;
93
- overflow: visible;
94
- padding: 4px 10px 3px 7px;
95
- &[type] {
96
- padding: 4px 10px 4px 7px;
97
- line-height: 17px; }
98
- *:first-child+html &[type] {
99
- padding: 4px 10px 3px 7px;
100
- }
101
- }
@@ -1,36 +0,0 @@
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;
8
-
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;
14
-
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;
28
-
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;
34
-
35
- $blueprint-table-header-color: #c3d9ff !default;
36
- $blueprint-table-stripe-color: #e5ecf9 !default;
@@ -1,28 +0,0 @@
1
- @import "compass/layout/grid-background";
2
- @import "grid", "typography";
3
-
4
- // Shows a background that can be used to check grid alignment.
5
- // By default this is a pure css version that only works in browsers
6
- // that support gradients and multiple backgrounds, but you can pass
7
- // an image url if you prefer.
8
- @mixin showgrid($image: false) {
9
- @if $image {
10
- background: image-url($image);
11
- }
12
- @else {
13
- @include grid-background(
14
- $total : $blueprint-grid-columns,
15
- $column : $blueprint-grid-width,
16
- $gutter : $blueprint-grid-margin,
17
- $baseline : $blueprint-font-size * 1.5
18
- );
19
- }
20
- }
21
-
22
- @mixin blueprint-debug($grid-image: false) {
23
- // Use this class on any column or container to see the grid.
24
- // TODO: prefix this with the project path.
25
- .showgrid {
26
- @include showgrid($grid-image);
27
- }
28
- }
@@ -1,88 +0,0 @@
1
- @charset "utf-8";
2
- @import "typography";
3
-
4
- $alternate-text-font : "Warnock Pro", "Goudy Old Style", "Palatino", "Book Antiqua", Georgia, serif !default;
5
-
6
- // To install the fancy type plugin:
7
- //
8
- // 1. Import the fancy-type module: `@import "blueprint/fancy-type"`
9
- // 2. Mix in `fancy-type` to your project's body or at the top level of your stylesheet:<br>
10
- // `body { @include fancy-type; }`
11
- @mixin fancy-type {
12
- @include fancy-paragraphs;
13
- .caps { @include caps; }
14
- .dquo { @include dquo; }
15
- .alt { @include alt; }
16
- }
17
-
18
- // For great looking type, use this code instead of asdf:
19
- // `<span class="alt">asdf</span>`
20
- // Best used on prepositions and ampersands.
21
-
22
- @mixin alt {
23
- color: $alt-text-color;
24
- font-family: $alternate-text-font;
25
- font-style: italic;
26
- font-weight: normal;
27
- }
28
-
29
- // For great looking quote marks in titles, replace "asdf" with:
30
- // `<span class="dquo">&#8220;</span>asdf&#8221;`
31
- // (That is, when the title starts with a quote mark).
32
- // Note: you may have to change this value depending on your font size.
33
-
34
- @mixin dquo($offset: 0.5em) {
35
- margin-left: -$offset;
36
- }
37
-
38
- // Reduced size type with [incremental leading](http://www.markboulton.co.uk/journal/comments/incremental-leading/)
39
- //
40
- // This could be used for side notes. For smaller type, you don't necessarily want to
41
- // follow the 1.5x vertical rhythm -- the line-height is too much.
42
- //
43
- // Using this mixin, reduces your font size and line-height so that for
44
- // every four lines of normal sized type, there is five lines of the sidenote. eg:
45
- //
46
- // Arguments:
47
- // * `$font-size` - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
48
- // * `$base-font-size` - The base font size in pixels. Defaults to 12px
49
- // * `$old-line-height` - The old line height. Defaults to 1.5 times the base-font-size
50
-
51
- @mixin incr(
52
- $font-size: 10px,
53
- $base-font-size: $blueprint-font-size,
54
- $old-line-height: $base-font-size * 1.5
55
- ) {
56
- font-size: 1em * $font-size / $base-font-size;
57
- line-height: 1em * $old-line-height / $font-size * 4 / 5;
58
- margin-bottom: 1.5em;
59
- }
60
-
61
- // Surround uppercase words and abbreviations with this class.
62
- // Based on work by [Jørgen Arnor Gårdsø Lom](http://twistedintellect.com/)
63
-
64
- @mixin caps {
65
- font-variant: small-caps;
66
- letter-spacing: 1px;
67
- text-transform: lowercase;
68
- font-size: 1.2em;
69
- line-height: 1%;
70
- font-weight: bold;
71
- padding: 0 2px;
72
- }
73
-
74
- // This mixin is automatically included when you include `fancy-type`
75
- @mixin fancy-paragraphs {
76
- p + p { @include sibling-indentation; }
77
- p.incr,
78
- .incr p { @include incr; }
79
- }
80
-
81
- // Indentation instead of line shifts for sibling paragraphs. Mixin to a selector like `p + p`
82
- @mixin sibling-indentation {
83
- text-indent: 2em;
84
- margin-top: -1.5em;
85
- /* Don't want this in forms. */
86
- form & { text-indent: 0; }
87
- }
88
-
@@ -1,66 +0,0 @@
1
- @import "colors";
2
-
3
- // Mixin for producing Blueprint "inline" forms. Should be used with the blueprint-form mixin.
4
- @mixin blueprint-inline-form {
5
- line-height: 3;
6
- p {
7
- margin-bottom: 0;
8
- }
9
- }
10
-
11
- @mixin blueprint-form {
12
- @include blueprint-form-layout;
13
- @include blueprint-form-borders;
14
- @include blueprint-form-sizes;
15
- }
16
-
17
- @mixin blueprint-form-layout {
18
- label { font-weight: bold; }
19
- fieldset { padding: 1.4em; margin: 0 0 1.5em 0; }
20
- legend { font-weight: bold; font-size: 1.2em; }
21
- input {
22
- &.text,
23
- &.title,
24
- &[type=email],
25
- &[type=text],
26
- &[type=password] { margin: 0.5em 0; background-color: white; padding: 5px; }
27
- &.title { font-size: 1.5em; }
28
- }
29
- textarea { margin: 0.5em 0; padding: 5px; }
30
- select { margin: 0.5em 0; }
31
- }
32
-
33
- @mixin blueprint-form-sizes
34
- (
35
- $input-width: 300px,
36
- $textarea-width: 390px,
37
- $textarea-height: 250px
38
- ) {
39
- input {
40
- &.text,
41
- &.title,
42
- &[type=email],
43
- &[type=text],
44
- &[type=password] { width: $input-width; }
45
- }
46
- textarea { width: $textarea-width; height: $textarea-height; }
47
- }
48
-
49
- @mixin blueprint-form-borders
50
- (
51
- $unfocused-border-color: #bbbbbb,
52
- $focus-border-color: #666666,
53
- $fieldset-border-color: #cccccc
54
- ) {
55
- fieldset {
56
- border: 1px solid $fieldset-border-color; }
57
- input.text, input.title, input[type=email], input[type=text], input[type=password],
58
- textarea {
59
- background-color:#fff;
60
- border: 1px solid $unfocused-border-color;
61
- &:focus {
62
- border-color: $focus-border-color;
63
- }
64
- }
65
- select { background-color:#fff; border-width:1px; border-style:solid; }
66
- }
@@ -1,258 +0,0 @@
1
- // --------------------------------------------------------------
2
- // SASS Gridification
3
- // * Author: Chris Eppstein
4
- // A SASS adaptation of Blueprint CSS
5
- // * Version: 0.7.1 (2008-02-25)
6
- // * Website: http://code.google.com/p/blueprintcss/
7
- // Based on work by:
8
- // * Lorin Tackett [lorintackett.com]
9
- // * Olav Bjorkoy [bjorkoy.com]
10
- // * Nathan Borror [playgroundblues.com]
11
- // * Jeff Croft [jeffcroft.com]
12
- // * Christian Metts [mintchaos.com]
13
- // * Khoi Vinh [subtraction.com]
14
- // Read more about using a grid here:
15
- // * http://www.subtraction.com/2007/03/18/oh-yeeaahh
16
- // --------------------------------------------------------------
17
-
18
- @import "compass/utilities/general/float";
19
- @import "compass/utilities/general/clearfix";
20
-
21
- // The number of columns in the grid.
22
- $blueprint-grid-columns: 24 !default;
23
-
24
- // The width of a column
25
- $blueprint-grid-width: 30px !default;
26
-
27
- // The amount of margin between columns
28
- $blueprint-grid-margin: 10px !default;
29
-
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;
32
-
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;
35
-
36
- // Generates presentational class names that you can use
37
- // in your html to layout your pages.
38
- //
39
- // #### Note:
40
- // Best practices discourage using this mixin,
41
- // but it is provided to support legacy websites
42
- // and to test the sass port against blueprint's example pages.
43
-
44
- @mixin blueprint-grid {
45
- // A container should group all your columns
46
- .container {
47
- @include container; }
48
- .column {
49
- @include column-base; }
50
- // The last column in a row needs this class (or mixin) or it will end up on the next row.
51
- .last {
52
- @include last; }
53
- // Use these classes (or mixins) to set the width of a column.
54
- @for $n from 1 to $blueprint-grid-columns {
55
- .span-#{$n} {
56
- @extend .column;
57
- width: span($n); } }
58
- .span-#{$blueprint-grid-columns} {
59
- @extend .column;
60
- width: span($blueprint-grid-columns);
61
- margin: 0; }
62
- input, textarea, select {
63
- @for $n from 1 through $blueprint-grid-columns {
64
- &.span-#{$n} {
65
- width: span($n); } } }
66
- // Add these to a column to append empty cols.
67
- @for $n from 1 to $blueprint-grid-columns {
68
- .append-#{$n} {
69
- @include append($n); } }
70
- // Add these to a column to prepend empty cols.
71
- @for $n from 1 to $blueprint-grid-columns {
72
- .prepend-#{$n} {
73
- @include prepend($n); } }
74
- // Use these classes on an element to push it into the
75
- // next column, or to pull it into the previous column.
76
- #{enumerate(".pull", 1, $blueprint-grid-columns)} {
77
- @include pull-base; }
78
- @for $n from 1 through $blueprint-grid-columns {
79
- .pull-#{$n} {
80
- @include pull-margins($n); } }
81
- #{enumerate(".push", 1, $blueprint-grid-columns)} {
82
- @include push-base; }
83
- @for $n from 1 through $blueprint-grid-columns {
84
- .push-#{$n} {
85
- @include push-margins($n); } }
86
- .prepend-top {
87
- @include prepend-top; }
88
- .append-bottom {
89
- @include append-bottom; } }
90
-
91
- // A container for your columns.
92
- //
93
- // #### Note:
94
- // If you use this mixin without the class and want to support ie6
95
- // you must set text-align left on your container element in an IE stylesheet.
96
- @mixin container {
97
- width: $blueprint-container-size;
98
- margin: 0 auto;
99
- @include clearfix; }
100
-
101
- // The last column in a row needs this mixin or it will end up
102
- // on the next row in some browsers.
103
- @mixin last {
104
- margin-right: 0; }
105
-
106
- // Use this mixins to set the width of n columns.
107
- @mixin column($n, $last: false) {
108
- @include column-base($last);
109
- width: span($n); }
110
-
111
- // Return the width in pixels of `$n` columns.
112
- @function span($n) {
113
- @return $blueprint-grid-width * $n + $blueprint-grid-margin * ($n - 1);
114
- }
115
-
116
- // Set only the width of an element to align it with the grid.
117
- // Most of the time you'll want to use `+column` instead.
118
- //
119
- // This mixin is especially useful for aligning tables to the grid.
120
- //
121
- // @deprecated Please use the span function with the width property instead.
122
- @mixin span($n, $important: false) {
123
- @warn "The span mixin is deprecated. Please use the span function instead. E.g. width: span(#{$n})";
124
- @if $important {
125
- width: span($n) !important; }
126
- @else {
127
- width: span($n); } }
128
-
129
- // The basic set of styles needed to make an element
130
- // behave like a column:
131
- //
132
- // * floated to left
133
- // * gutter margin on the right (unless the last column)
134
- // * Some IE fixes
135
- //
136
- // #### Note:
137
- // This mixin gets applied automatically when using `+column`
138
- // so you probably don't need to use it directly unless
139
- // you need to deviate from the grid or are trying
140
- // to reduce the amount of generated CSS.
141
- @mixin column-base($last: false) {
142
- @include float-left;
143
- @if $last {
144
- @include last; }
145
- @else {
146
- margin-right: $blueprint-grid-margin; }
147
- * html & {
148
- overflow-x: hidden; } }
149
-
150
- // Mixin to a column to append n empty columns to the right
151
- // by adding right padding to the column.
152
- @mixin append($n) {
153
- padding-right: $blueprint-grid-outer-width * $n; }
154
-
155
- // Mixin to a column to append n empty columns to the left
156
- // by adding left padding to the column.
157
- @mixin prepend($n) {
158
- padding-left: $blueprint-grid-outer-width * $n; }
159
-
160
- // Adds trailing margin.
161
- @mixin append-bottom($amount: 1.5em) {
162
- margin-bottom: $amount; }
163
-
164
- // Adds leading margin.
165
- @mixin prepend-top($amount: 1.5em) {
166
- margin-top: $amount; }
167
-
168
- // Base styles that make it possible to pull an element to the left.
169
- // #### Note:
170
- // This mixin gets applied automatically when using `+pull`
171
- // so you probably don't need to use it directly unless
172
- // you need to deviate from the grid or are trying
173
- // to reduce the amount of generated CSS.
174
- @mixin pull-base {
175
- @include float-left;
176
- position: relative; }
177
-
178
- // The amount of pulling for element to the left.
179
- // #### Note:
180
- // This mixin gets applied automatically when using `+pull`
181
- // so you probably don't need to use it directly unless
182
- // you need to deviate from the grid or are trying
183
- // to reduce the amount of generated CSS.
184
- @mixin pull-margins($n, $last: false) {
185
- @if $last {
186
- margin-left: -$blueprint-grid-outer-width * $n + $blueprint-grid-margin; }
187
- @else {
188
- margin-left: -$blueprint-grid-outer-width * $n; } }
189
-
190
- // Moves a column `n` columns to the left.
191
- //
192
- // This mixin can also be used to change the display order of columns.
193
- //
194
- // If pulling past the last (visually) element in a row,
195
- // pass `true` as the second argument so the calculations can adjust
196
- // accordingly.
197
-
198
- // For example:
199
- //
200
- // HTML:
201
- // <pre class="source-code html">
202
- // <div id="one">One</div>
203
- // <div id="two">Two</div>
204
- // </pre>
205
- // Sass:
206
- // <pre class="source-code sass">
207
- // #one
208
- // +column(18, true)
209
- // +prepend(6)
210
- // #two
211
- // +column(6)
212
- // +pull(18, true)
213
- // </pre>
214
- @mixin pull($n, $last: false) {
215
- @include pull-base;
216
- @include pull-margins($n, $last); }
217
-
218
- @mixin push-base {
219
- @include float-left;
220
- position: relative; }
221
-
222
- @mixin push-margins($n) {
223
- margin: 0 (-$blueprint-grid-outer-width * $n) 1.5em $blueprint-grid-outer-width * $n; }
224
-
225
- // mixin to a column to push it n columns to the right
226
- @mixin push($n) {
227
- @include push-base;
228
- @include push-margins($n); }
229
-
230
- // Border on right hand side of a column.
231
- @mixin border($border-color: $blueprint-border-color, $border-width: 1px) {
232
- padding-right: $blueprint-grid-margin / 2 - $border-width;
233
- margin-right: $blueprint-grid-margin / 2;
234
- border-right: #{$border-width} solid #{$border-color}; }
235
-
236
- // Border with more whitespace, spans one column.
237
- @mixin colborder($border-color: $blueprint-border-color, $border-width: 1px) {
238
- padding-right: floor(($blueprint-grid-width + 2 * $blueprint-grid-margin - $border-width) / 2);
239
- margin-right: ceil(($blueprint-grid-width + 2 * $blueprint-grid-margin - $border-width) / 2);
240
- border-right: #{$border-width} solid #{$border-color}; }
241
-
242
- // Mixin this to an hr to make a horizontal ruler across a column.
243
- @mixin colruler($border-color: #dddddd) {
244
- background: $border-color;
245
- color: $border-color;
246
- clear: both;
247
- float: none;
248
- width: 100%;
249
- height: 0.1em;
250
- margin: 0 0 1.45em;
251
- border: none; }
252
-
253
- // Mixin this to an hr to make a horizontal spacer across a column.
254
- @mixin colspacer {
255
- @include colruler;
256
- background: white;
257
- color: white;
258
- visibility: hidden; }