compass 0.8.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. data/CHANGELOG.markdown +551 -0
  2. data/LICENSE.markdown +29 -0
  3. data/README.markdown +44 -0
  4. data/REVISION +1 -0
  5. data/Rakefile +127 -0
  6. data/VERSION.yml +4 -0
  7. data/bin/compass +8 -0
  8. data/deps.rip +1 -0
  9. data/examples/README.markdown +4 -0
  10. data/examples/blueprint_default/config.rb +7 -0
  11. data/examples/blueprint_default/images/grid.png +0 -0
  12. data/examples/blueprint_default/index.html.haml +85 -0
  13. data/examples/blueprint_default/parts/elements.html.haml +282 -0
  14. data/examples/blueprint_default/parts/forms.html.haml +190 -0
  15. data/examples/blueprint_default/parts/grid.html.haml +274 -0
  16. data/examples/blueprint_default/parts/test-small.jpg +0 -0
  17. data/examples/blueprint_default/parts/test.jpg +0 -0
  18. data/examples/blueprint_default/parts/valid.png +0 -0
  19. data/examples/blueprint_default/src/ie.sass +3 -0
  20. data/examples/blueprint_default/src/images/grid.png +0 -0
  21. data/examples/blueprint_default/src/print.sass +3 -0
  22. data/examples/blueprint_default/src/screen.sass +8 -0
  23. data/examples/blueprint_plugins/config.rb +8 -0
  24. data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
  25. data/examples/blueprint_plugins/images/buttons/key.png +0 -0
  26. data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
  27. data/examples/blueprint_plugins/images/grid.png +0 -0
  28. data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
  29. data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
  30. data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
  31. data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
  32. data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
  33. data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
  34. data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
  35. data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
  36. data/examples/blueprint_plugins/images/test-small.jpg +0 -0
  37. data/examples/blueprint_plugins/images/test.jpg +0 -0
  38. data/examples/blueprint_plugins/images/valid.png +0 -0
  39. data/examples/blueprint_plugins/index.html.haml +96 -0
  40. data/examples/blueprint_plugins/plugins/buttons.html.haml +67 -0
  41. data/examples/blueprint_plugins/plugins/fancy_type.html.haml +100 -0
  42. data/examples/blueprint_plugins/plugins/link_icons.html.haml +61 -0
  43. data/examples/blueprint_plugins/plugins/rtl.html.haml +100 -0
  44. data/examples/blueprint_plugins/src/buttons.sass +49 -0
  45. data/examples/blueprint_plugins/src/ie.sass +3 -0
  46. data/examples/blueprint_plugins/src/images/grid.png +0 -0
  47. data/examples/blueprint_plugins/src/link_icons.sass +13 -0
  48. data/examples/blueprint_plugins/src/print.sass +3 -0
  49. data/examples/blueprint_plugins/src/rtl_screen.sass +13 -0
  50. data/examples/blueprint_plugins/src/screen.sass +11 -0
  51. data/examples/blueprint_scoped/images/grid.png +0 -0
  52. data/examples/blueprint_scoped/src/ie.sass +3 -0
  53. data/examples/blueprint_scoped/src/print.sass +3 -0
  54. data/examples/blueprint_scoped/src/screen.sass +4 -0
  55. data/examples/blueprint_scoped_form/images/grid.png +0 -0
  56. data/examples/blueprint_scoped_form/src/ie.sass +3 -0
  57. data/examples/blueprint_scoped_form/src/print.sass +3 -0
  58. data/examples/blueprint_scoped_form/src/screen.sass +10 -0
  59. data/examples/blueprint_semantic/config.rb +7 -0
  60. data/examples/blueprint_semantic/images/grid.png +0 -0
  61. data/examples/blueprint_semantic/index.html.haml +86 -0
  62. data/examples/blueprint_semantic/parts/fancy_type.html.haml +100 -0
  63. data/examples/blueprint_semantic/parts/liquid.html.haml +100 -0
  64. data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
  65. data/examples/blueprint_semantic/parts/test.jpg +0 -0
  66. data/examples/blueprint_semantic/parts/valid.png +0 -0
  67. data/examples/blueprint_semantic/src/ie.sass +3 -0
  68. data/examples/blueprint_semantic/src/images/grid.png +0 -0
  69. data/examples/blueprint_semantic/src/liquid.sass +70 -0
  70. data/examples/blueprint_semantic/src/print.sass +3 -0
  71. data/examples/blueprint_semantic/src/screen.sass +71 -0
  72. data/examples/compass/compass.html.haml +39 -0
  73. data/examples/compass/config.rb +7 -0
  74. data/examples/compass/images/blue_arrow.gif +0 -0
  75. data/examples/compass/src/compass.sass +47 -0
  76. data/examples/compass/src/images/blue_arrow.gif +0 -0
  77. data/examples/compass/src/sticky_footer.sass +11 -0
  78. data/examples/compass/src/utilities.sass +108 -0
  79. data/examples/compass/sticky_footer.html.haml +14 -0
  80. data/examples/compass/utilities.html.haml +189 -0
  81. data/examples/logo/logo.html.haml +40 -0
  82. data/examples/logo/src/ie.sass +6 -0
  83. data/examples/logo/src/print.sass +6 -0
  84. data/examples/logo/src/screen.sass +29 -0
  85. data/examples/yui/divisions.html.haml +179 -0
  86. data/examples/yui/index.html.haml +19 -0
  87. data/examples/yui/src/screen.sass +13 -0
  88. data/examples/yui/sub_divisions.html.haml +169 -0
  89. data/examples/yui/templates.html.haml +54 -0
  90. data/examples/yui/test.jpg +0 -0
  91. data/examples/yui/typography.html.haml +132 -0
  92. data/frameworks/blueprint.rb +2 -0
  93. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  94. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +93 -0
  95. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +83 -0
  96. data/frameworks/blueprint/stylesheets/blueprint/_reset.sass +3 -0
  97. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  98. data/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -0
  99. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -0
  100. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  101. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -0
  102. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -0
  103. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -0
  104. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  105. data/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -0
  106. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +141 -0
  107. data/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -0
  108. data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +104 -0
  109. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -0
  110. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +155 -0
  111. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  112. data/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
  113. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  114. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  115. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  116. data/frameworks/blueprint/templates/buttons/manifest.rb +5 -0
  117. data/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
  118. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  119. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  120. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  121. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  122. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  123. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  124. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  125. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  126. data/frameworks/blueprint/templates/link_icons/manifest.rb +10 -0
  127. data/frameworks/blueprint/templates/project/grid.png +0 -0
  128. data/frameworks/blueprint/templates/project/ie.sass +15 -0
  129. data/frameworks/blueprint/templates/project/manifest.rb +6 -0
  130. data/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
  131. data/frameworks/blueprint/templates/project/print.sass +3 -0
  132. data/frameworks/blueprint/templates/project/screen.sass +40 -0
  133. data/frameworks/compass.rb +2 -0
  134. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  135. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  136. data/frameworks/compass/stylesheets/compass/_misc.sass +24 -0
  137. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  138. data/frameworks/compass/stylesheets/compass/_utilities.sass +6 -0
  139. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  140. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +6 -0
  141. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  142. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  143. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  144. data/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
  145. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
  146. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  147. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +24 -0
  148. data/frameworks/compass/stylesheets/compass/utilities/general/_float.sass +17 -0
  149. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +6 -0
  150. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  151. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +134 -0
  152. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  153. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  154. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  155. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  156. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  157. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  158. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +52 -0
  159. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  160. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +12 -0
  161. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
  162. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
  163. data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
  164. data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass +13 -0
  165. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  166. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +17 -0
  167. data/frameworks/compass/templates/ellipsis/ellipsis.sass +6 -0
  168. data/frameworks/compass/templates/ellipsis/manifest.rb +2 -0
  169. data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
  170. data/frameworks/compass/templates/project/ie.sass +6 -0
  171. data/frameworks/compass/templates/project/manifest.rb +3 -0
  172. data/frameworks/compass/templates/project/print.sass +6 -0
  173. data/frameworks/compass/templates/project/screen.sass +13 -0
  174. data/frameworks/yui.rb +2 -0
  175. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  176. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  177. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  178. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  179. data/frameworks/yui/stylesheets/yui/modules/_reset.sass +61 -0
  180. data/frameworks/yui/templates/project/manifest.rb +1 -0
  181. data/frameworks/yui/templates/project/screen.sass +4 -0
  182. data/lib/compass.rb +23 -0
  183. data/lib/compass/actions.rb +110 -0
  184. data/lib/compass/app_integration.rb +5 -0
  185. data/lib/compass/app_integration/merb.rb +43 -0
  186. data/lib/compass/app_integration/rails.rb +12 -0
  187. data/lib/compass/app_integration/rails/action_controller.rb +15 -0
  188. data/lib/compass/app_integration/rails/sass_plugin.rb +5 -0
  189. data/lib/compass/app_integration/rails/templates/compass-install-rails.rb +80 -0
  190. data/lib/compass/app_integration/rails/urls.rb +14 -0
  191. data/lib/compass/commands/base.rb +33 -0
  192. data/lib/compass/commands/create_project.rb +19 -0
  193. data/lib/compass/commands/generate_grid_background.rb +24 -0
  194. data/lib/compass/commands/installer_command.rb +31 -0
  195. data/lib/compass/commands/list_frameworks.rb +16 -0
  196. data/lib/compass/commands/print_version.rb +23 -0
  197. data/lib/compass/commands/project_base.rb +112 -0
  198. data/lib/compass/commands/stamp_pattern.rb +33 -0
  199. data/lib/compass/commands/update_project.rb +34 -0
  200. data/lib/compass/commands/validate_project.rb +21 -0
  201. data/lib/compass/commands/watch_project.rb +64 -0
  202. data/lib/compass/commands/write_configuration.rb +28 -0
  203. data/lib/compass/compiler.rb +54 -0
  204. data/lib/compass/configuration.rb +324 -0
  205. data/lib/compass/core_ext.rb +14 -0
  206. data/lib/compass/dependencies.rb +10 -0
  207. data/lib/compass/errors.rb +7 -0
  208. data/lib/compass/exec.rb +251 -0
  209. data/lib/compass/frameworks.rb +29 -0
  210. data/lib/compass/grid_builder.rb +72 -0
  211. data/lib/compass/installers.rb +5 -0
  212. data/lib/compass/installers/base.rb +158 -0
  213. data/lib/compass/installers/manifest.rb +58 -0
  214. data/lib/compass/installers/rails.rb +135 -0
  215. data/lib/compass/installers/stand_alone.rb +60 -0
  216. data/lib/compass/logger.rb +42 -0
  217. data/lib/compass/sass_extensions.rb +5 -0
  218. data/lib/compass/sass_extensions/functions.rb +19 -0
  219. data/lib/compass/sass_extensions/functions/display.rb +22 -0
  220. data/lib/compass/sass_extensions/functions/enumerate.rb +6 -0
  221. data/lib/compass/sass_extensions/functions/inline_image.rb +35 -0
  222. data/lib/compass/sass_extensions/functions/selectors.rb +39 -0
  223. data/lib/compass/sass_extensions/functions/urls.rb +105 -0
  224. data/lib/compass/sass_extensions/monkey_patches.rb +3 -0
  225. data/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb +23 -0
  226. data/lib/compass/test_case.rb +38 -0
  227. data/lib/compass/validator.rb +10 -0
  228. data/lib/compass/version.rb +57 -0
  229. data/lib/vendor/fssm.rb +41 -0
  230. data/lib/vendor/fssm/backends/fsevents.rb +37 -0
  231. data/lib/vendor/fssm/backends/polling.rb +26 -0
  232. data/lib/vendor/fssm/cache.rb +193 -0
  233. data/lib/vendor/fssm/ext.rb +37 -0
  234. data/lib/vendor/fssm/fsevents.rb +129 -0
  235. data/lib/vendor/fssm/monitor.rb +25 -0
  236. data/lib/vendor/fssm/path.rb +91 -0
  237. data/lib/vendor/fssm/state.rb +54 -0
  238. data/lib/vendor/fssm/support.rb +22 -0
  239. data/lib/vendor/fssm/tree.rb +176 -0
  240. data/test/command_line_helper.rb +102 -0
  241. data/test/command_line_test.rb +66 -0
  242. data/test/compass_test.rb +141 -0
  243. data/test/configuration_test.rb +118 -0
  244. data/test/fixtures/stylesheets/blueprint/config.rb +9 -0
  245. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  246. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  247. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  248. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  249. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  250. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  251. data/test/fixtures/stylesheets/compass/config.rb +9 -0
  252. data/test/fixtures/stylesheets/compass/css/layout.css +13 -0
  253. data/test/fixtures/stylesheets/compass/css/print.css +18 -0
  254. data/test/fixtures/stylesheets/compass/css/reset.css +60 -0
  255. data/test/fixtures/stylesheets/compass/css/utilities.css +17 -0
  256. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  257. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  258. data/test/fixtures/stylesheets/compass/sass/reset.sass +10 -0
  259. data/test/fixtures/stylesheets/compass/sass/utilities.sass +6 -0
  260. data/test/fixtures/stylesheets/image_urls/config.rb +17 -0
  261. data/test/fixtures/stylesheets/image_urls/css/screen.css +3 -0
  262. data/test/fixtures/stylesheets/image_urls/images/grid.png +0 -0
  263. data/test/fixtures/stylesheets/image_urls/sass/screen.sass +6 -0
  264. data/test/fixtures/stylesheets/yui/config.rb +9 -0
  265. data/test/fixtures/stylesheets/yui/css/mixins.css +13 -0
  266. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  267. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  268. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  269. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  270. data/test/rails_integration_test.rb +83 -0
  271. data/test/sass_extensions_test.rb +31 -0
  272. data/test/test_case_helper.rb +13 -0
  273. data/test/test_helper.rb +21 -0
  274. data/test/test_rails_helper.rb +20 -0
  275. metadata +372 -0
@@ -0,0 +1,54 @@
1
+ !!! Transitional
2
+ %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
3
+ %head
4
+ %title YUI Template Presets Example
5
+ %link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
6
+ :javascript
7
+ function changeTemplate() {
8
+ var templateClass = document.getElementById("current-template").value;
9
+ document.getElementById("doc4").className = templateClass;
10
+ }
11
+ %style{:type => "text/css"}
12
+ :sass
13
+ .yui-b
14
+ border: 1px dotted #ccc
15
+ %body
16
+ #doc4.yui-t2
17
+ #hd
18
+ %h1 Yahoo Template Presets Example
19
+ #bd
20
+ .yui-b
21
+ %h3 YUI Examples
22
+ %ul
23
+ %li
24
+ %a{:href=>"templates.html"} Template Presets
25
+ %li
26
+ %a{:href=>"typography.html"} Typography
27
+ #yui-main
28
+ .yui-b
29
+ %h2 Main Content
30
+ %label{:for => "current-template"} Select Template Preset
31
+ %select{:id=>"current-template", :onchange => "changeTemplate()"}
32
+ %option{:value => "yui-t1"}= ".yui-t1"
33
+ %option{:value => "yui-t2", :selected => "selected"}= ".yui-t2"
34
+ %option{:value => "yui-t3"}= ".yui-t3"
35
+ %option{:value => "yui-t4"}= ".yui-t4"
36
+ %option{:value => "yui-t5"}= ".yui-t5"
37
+ %option{:value => "yui-t6"}= ".yui-t6"
38
+ %hr
39
+ %p
40
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
41
+ .yui-g
42
+ .yui-u.first
43
+ %h3 50/50 Left Side
44
+ %p
45
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
46
+ .yui-u
47
+ %h3 50/50 Right Side
48
+ %p
49
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
50
+ %p
51
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
52
+ #ft
53
+ Copyright © 2008. All Rights Reserved.
54
+
Binary file
@@ -0,0 +1,132 @@
1
+ !!! Transitional
2
+ %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
3
+ %head
4
+ %title YUI Typography Demo
5
+ %link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
6
+ %body
7
+ #doc4.yui-t2
8
+ #yui-main
9
+ .yui-b
10
+ %h1 Typography Demo
11
+ %h2 This is a Sub Title.
12
+
13
+ %p
14
+ Lorem ipsum dolor sit amet,
15
+ %em emphasized adipisicing
16
+ elit, sed do
17
+ %strong strong tempor
18
+ incididunt ut labore et
19
+ %b bold magna
20
+ aliqua. Ut enim ad
21
+ %i<
22
+ italic veniam,
23
+ quis nostrud exercitation ullamco
24
+ %a{:href=>'#'} link nisi ut aliquip ex ea commodo consequat.
25
+ Duis aute irure dolor in
26
+ %abbr abbreviation repre
27
+ in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
28
+
29
+ %h3 Third Level Header
30
+ %p
31
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
32
+ %p
33
+ Subsequent paragraph, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
34
+
35
+ %h4 Fourth Level Header
36
+ %p
37
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est quotation:
38
+ %blockquote
39
+ Block Quotem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
40
+
41
+ %h5 Fifth Level Header
42
+ %img{:src => "test.jpg", :style => 'float: right;'}
43
+ %p
44
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
45
+ %span.bigger<
46
+ voluptate velit esse
47
+ %span.biggest cillum dolore
48
+ eu fugiat nulla pariatur.
49
+ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
50
+ %p
51
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
52
+
53
+ %h6 Sixth Level Header
54
+ %p
55
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
56
+
57
+ %table
58
+ %caption
59
+ This is the table caption
60
+ %thead
61
+ %tr
62
+ %th
63
+ %th Table Header 1
64
+ %th Table Header 2
65
+ %th Table Header 3
66
+ %tbody
67
+ %tr
68
+ %th Row Header 1
69
+ %td Lorem ipsum dolor sit amet.
70
+ %td Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
71
+ %td Lorem ipsum dolor sit amet.
72
+ %tr
73
+ %th Row Header 2
74
+ %td Lorem ipsum dolor sit amet.
75
+ %td Lorem ipsum dolor sit amet.
76
+ %td Lorem ipsum dolor sit amet.
77
+ %tr
78
+ %th Row Header 3
79
+ %td Lorem ipsum dolor sit amet.
80
+ %td Lorem ipsum dolor sit amet.
81
+ %td Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
82
+ %tr
83
+ %th Row Header 4
84
+ %td Lorem ipsum dolor sit amet.
85
+ %td Lorem ipsum dolor sit amet.
86
+ %td Lorem ipsum dolor sit amet.
87
+ %tr
88
+ %th Row Header 5
89
+ %td Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
90
+ %td Lorem ipsum dolor sit amet.
91
+ %td Lorem ipsum dolor sit amet.
92
+
93
+ %h3 Unordered Lists
94
+ %ul
95
+ %li List Element #1
96
+ %li<
97
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
98
+ %li List Element #3
99
+ %li<
100
+ Nested List
101
+ %ul
102
+ %li Nested 1
103
+ %li Nested 2
104
+ %li Nested 3
105
+
106
+ %h3 Ordered Lists
107
+ %ol
108
+ %li List Element #1
109
+ %li<
110
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
111
+ %li List Element #3
112
+ %li<
113
+ Nested List
114
+ %ol
115
+ %li Nested 1
116
+ %li Nested 2
117
+ %li Nested 3
118
+
119
+ %h3 Definition Lists
120
+ %dl
121
+ %dt Term 1
122
+ %dd Definition 1: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
123
+ %dd Definition 2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
124
+ %dt Term 2
125
+ %dd Another Definition
126
+ .yui-b
127
+ %h3 YUI Examples
128
+ %ul
129
+ %li
130
+ %a{:href=>"templates.html"} Template Presets
131
+ %li
132
+ %a{:href=>"typography.html"} Typography
@@ -0,0 +1,2 @@
1
+ blueprint_dir = File.join(Compass.base_directory, 'frameworks', 'blueprint')
2
+ Compass::Frameworks.register('blueprint', blueprint_dir)
@@ -0,0 +1,3 @@
1
+ @import blueprint/screen.sass
2
+ @import blueprint/print.sass
3
+ @import blueprint/ie.sass
@@ -0,0 +1,93 @@
1
+ // The blueprint IE mixins should be mixed into a stylesheet that gets conditionally included
2
+ // into IE like so:
3
+ // <!--[if IE]><link rel="stylesheet" href="ie.css"
4
+ // type="text/css" media="screen, projection"><![endif]-->
5
+
6
+ // The +blueprint-ie mixin must be mixed into the top level of your stylesheet.
7
+ // However, you can customize the body selector if you wish to control the scope
8
+ // of this mixin. Examples:
9
+ // Apply to any page including the stylesheet:
10
+ // +blueprint-ie
11
+ // Scoped by a single presentational body class:
12
+ // +blueprint-ie("body.blueprint")
13
+ // Semantically:
14
+ // +blueprint-ie("body#page-1, body#page-2, body.a-special-page-type")
15
+ // Alternatively, you can use the +blueprint-ie-body and +blueprint-ie-defaults
16
+ // mixins to construct your own semantic style rules.
17
+
18
+ =blueprint-ie(!body_selector = "body")
19
+ #{!body_selector}
20
+ +blueprint-ie-body
21
+ @if !body_selector != "body"
22
+ +blueprint-ie-defaults
23
+ @if !body_selector == "body"
24
+ +blueprint-ie-defaults
25
+
26
+ =blueprint-ie-body
27
+ :text-align center
28
+ +blueprint-ie-hacks
29
+
30
+ =blueprint-ie-hacks
31
+ * html &
32
+ legend
33
+ :margin 0px -8px 16px 0
34
+ :padding 0
35
+ html>&
36
+ p code
37
+ :*white-space normal
38
+
39
+ // Fixes for Blueprint "inline" forms in IE
40
+ =blueprint-inline-form-ie
41
+ div, p
42
+ :vertical-align middle
43
+ label
44
+ :position relative
45
+ :top -0.25em
46
+ input
47
+ &.checkbox, &.radio, &.button, button
48
+ :margin 0.5em 0
49
+
50
+ =blueprint-ie-defaults
51
+ .container
52
+ :text-align left
53
+ ol
54
+ :margin-left 2em
55
+ sup
56
+ :vertical-align text-top
57
+ sub
58
+ :vertical-align text-bottom
59
+ hr
60
+ :margin -8px auto 11px
61
+ img
62
+ :-ms-interpolation-mode bicubic
63
+ fieldset
64
+ :padding-top 0
65
+ input
66
+ &.text
67
+ :margin 0.5em 0
68
+ :background-color #fff
69
+ :border 1px solid #bbb
70
+ &:focus
71
+ :border 1px solid #666
72
+ &.title
73
+ :margin 0.5em 0
74
+ :background-color #fff
75
+ :border 1px solid #bbb
76
+ &:focus
77
+ :border 1px solid #666
78
+ &.checkbox
79
+ :position relative
80
+ :top 0.25em
81
+ &.radio
82
+ :position relative
83
+ :top 0.25em
84
+ &.button
85
+ :position relative
86
+ :top 0.25em
87
+ textarea
88
+ :margin 0.5em 0
89
+ select
90
+ :margin 0.5em 0
91
+ button
92
+ :position relative
93
+ :top 0.25em
@@ -0,0 +1,83 @@
1
+ @import modules/typography.sass
2
+ @import compass/utilities/general/float.sass
3
+
4
+ // The +blueprint-print mixin must be mixed into the top level of your stylesheet.
5
+ // However, you can customize the body selector if you wish to control the scope
6
+ // of this mixin. Examples:
7
+ // Apply to any page including the stylesheet:
8
+ // +blueprint-print
9
+ // Scoped by a single presentational body class:
10
+ // +blueprint-print("body.blueprint")
11
+ // Semantically:
12
+ // +blueprint-print("body#page-1, body#page-2, body.a-special-page-type")
13
+ // Alternatively, you can use the +blueprint-print-body and +blueprint-print-defaults
14
+ // mixins to construct your own semantic style rules.
15
+
16
+ =blueprint-print(!body_selector = "body")
17
+ #{!body_selector}
18
+ +blueprint-print-body
19
+ @if !body_selector != "body"
20
+ +blueprint-print-defaults
21
+ @if !body_selector == "body"
22
+ +blueprint-print-defaults
23
+
24
+ // This style is in blueprint, but I think it's annoying and it doesn't work in all browsers.
25
+ // Feel free to mix it into anchors where you want it.
26
+ =blueprint-show-link-urls
27
+ &:after
28
+ :content " (" attr(href) ")"
29
+ :font-size 90%
30
+
31
+ =blueprint-print-body
32
+ :line-height 1.5
33
+ :font-family= !blueprint_font_family
34
+ :color #000
35
+ :background none
36
+ :font-size 10pt
37
+
38
+ =blueprint-print-defaults
39
+ .container
40
+ :background none
41
+ hr
42
+ :background #ccc
43
+ :color #ccc
44
+ :width 100%
45
+ :height 2px
46
+ :margin 2em 0
47
+ :padding 0
48
+ :border none
49
+ &.space
50
+ :background #fff
51
+ :color #fff
52
+ h1, h2, h3, h4, h5, h6
53
+ :font-family= !blueprint_font_family
54
+ code
55
+ :font
56
+ :size .9em
57
+ :family= !blueprint_fixed_font_family
58
+ img
59
+ +float-left
60
+ :margin 1.5em 1.5em 1.5em 0
61
+ a
62
+ img
63
+ :border none
64
+ &:link,
65
+ &:visited
66
+ :background transparent
67
+ :font-weight 700
68
+ :text-decoration underline
69
+ p img.top
70
+ :margin-top 0
71
+ blockquote
72
+ :margin 1.5em
73
+ :padding 1em
74
+ :font-style italic
75
+ :font-size .9em
76
+ .small
77
+ :font-size .9em
78
+ .large
79
+ :font-size 1.1em
80
+ .quiet
81
+ :color #999
82
+ .hide
83
+ :display none
@@ -0,0 +1,3 @@
1
+ @import modules/reset.sass
2
+
3
+ +blueprint-global-reset
@@ -0,0 +1,15 @@
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
+ =blueprint(!body_selector = "body")
10
+ +blueprint-typography(!body_selector)
11
+ +blueprint-utilities
12
+ +blueprint-grid
13
+ +blueprint-debug
14
+ +blueprint-interaction
15
+ +blueprint-form
@@ -0,0 +1,84 @@
1
+ @import compass/utilities/general/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