frontsau 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +21 -0
  5. data/README.md +30 -0
  6. data/Rakefile +2 -0
  7. data/bin/frontsau +15 -0
  8. data/bin/frontsau-phaml-compiler +35 -0
  9. data/example/.frontsau +12 -0
  10. data/example/assets/head.jpg +0 -0
  11. data/example/assets/script.js +4 -0
  12. data/example/assets/style.css +6 -0
  13. data/example/css/includes.sass +2 -0
  14. data/example/css/style.sass +6 -0
  15. data/example/image/head.jpg +0 -0
  16. data/example/index.html +0 -0
  17. data/example/js/script.coffee +1 -0
  18. data/frontsau.gemspec +41 -0
  19. data/lib/Phamlp/Phamlp.php +72 -0
  20. data/lib/Phamlp/PhamlpException.php +31 -0
  21. data/lib/Phamlp/haml/HamlException.php +29 -0
  22. data/lib/Phamlp/haml/HamlHelpers.php +199 -0
  23. data/lib/Phamlp/haml/HamlParser.php +1250 -0
  24. data/lib/Phamlp/haml/filters/HamlBaseFilter.php +30 -0
  25. data/lib/Phamlp/haml/filters/HamlCdataFilter.php +29 -0
  26. data/lib/Phamlp/haml/filters/HamlCssFilter.php +30 -0
  27. data/lib/Phamlp/haml/filters/HamlEscapedFilter.php +32 -0
  28. data/lib/Phamlp/haml/filters/HamlJavascriptFilter.php +31 -0
  29. data/lib/Phamlp/haml/filters/HamlPhpFilter.php +27 -0
  30. data/lib/Phamlp/haml/filters/HamlPlainFilter.php +28 -0
  31. data/lib/Phamlp/haml/filters/HamlPreserveFilter.php +29 -0
  32. data/lib/Phamlp/haml/filters/HamlSassFilter.php +37 -0
  33. data/lib/Phamlp/haml/filters/HamlScssFilter.php +37 -0
  34. data/lib/Phamlp/haml/filters/_HamlMarkdownFilter.php +50 -0
  35. data/lib/Phamlp/haml/filters/_HamlTextileFilter.php +50 -0
  36. data/lib/Phamlp/haml/messages/_i18n.php +32 -0
  37. data/lib/Phamlp/haml/messages/de.php +32 -0
  38. data/lib/Phamlp/haml/messages/fr.php +32 -0
  39. data/lib/Phamlp/haml/renderers/HamlCompactRenderer.php +32 -0
  40. data/lib/Phamlp/haml/renderers/HamlCompressedRenderer.php +48 -0
  41. data/lib/Phamlp/haml/renderers/HamlExpandedRenderer.php +58 -0
  42. data/lib/Phamlp/haml/renderers/HamlNestedRenderer.php +77 -0
  43. data/lib/Phamlp/haml/renderers/HamlRenderer.php +137 -0
  44. data/lib/Phamlp/haml/tree/HamlCodeBlockNode.php +58 -0
  45. data/lib/Phamlp/haml/tree/HamlCommentNode.php +41 -0
  46. data/lib/Phamlp/haml/tree/HamlDoctypeNode.php +27 -0
  47. data/lib/Phamlp/haml/tree/HamlElementNode.php +52 -0
  48. data/lib/Phamlp/haml/tree/HamlFilterNode.php +50 -0
  49. data/lib/Phamlp/haml/tree/HamlHelperNode.php +73 -0
  50. data/lib/Phamlp/haml/tree/HamlNode.php +253 -0
  51. data/lib/Phamlp/haml/tree/HamlNodeExceptions.php +19 -0
  52. data/lib/Phamlp/haml/tree/HamlRootNode.php +58 -0
  53. data/lib/Phamlp/sass/SassException.php +29 -0
  54. data/lib/Phamlp/sass/SassFile.php +164 -0
  55. data/lib/Phamlp/sass/SassParser.php +848 -0
  56. data/lib/Phamlp/sass/extensions/compass/config.php +65 -0
  57. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/_blueprint.scss +47 -0
  58. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +101 -0
  59. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -0
  60. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_debug.scss +11 -0
  61. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +86 -0
  62. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss +68 -0
  63. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_grid.scss +249 -0
  64. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_ie.scss +109 -0
  65. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +57 -0
  66. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +37 -0
  67. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +147 -0
  68. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_print.scss +93 -0
  69. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_reset.scss +3 -0
  70. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +133 -0
  71. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +54 -0
  72. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_typography.scss +104 -0
  73. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +37 -0
  74. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +58 -0
  75. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/grid.png +0 -0
  76. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/ie.sass +4 -0
  77. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/manifest.rb +30 -0
  78. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/partials/_base.sass +10 -0
  79. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/print.sass +4 -0
  80. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/screen.sass +12 -0
  81. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  82. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  83. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  84. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
  85. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/manifest.rb +17 -0
  86. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  87. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  88. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  89. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  90. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  91. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  92. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  93. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  94. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
  95. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/manifest.rb +23 -0
  96. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/grid.png +0 -0
  97. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
  98. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/manifest.rb +30 -0
  99. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
  100. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/print.sass +8 -0
  101. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/screen.sass +45 -0
  102. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/grid.png +0 -0
  103. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/ie.sass +16 -0
  104. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/manifest.rb +33 -0
  105. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_base.sass +10 -0
  106. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_form.sass +6 -0
  107. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_page.sass +18 -0
  108. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass +38 -0
  109. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/print.sass +5 -0
  110. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/screen.sass +14 -0
  111. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/_compass.scss +2 -0
  112. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_css3.scss +15 -0
  113. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
  114. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_reset.scss +3 -0
  115. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_utilities.scss +6 -0
  116. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
  117. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
  118. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-size.scss +14 -0
  119. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
  120. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
  121. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
  122. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box.scss +112 -0
  123. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_columns.scss +55 -0
  124. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_font-face.scss +33 -0
  125. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_gradient.scss +82 -0
  126. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
  127. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_opacity.scss +27 -0
  128. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_shared.scss +47 -0
  129. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
  130. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transform.scss +85 -0
  131. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transition.scss +85 -0
  132. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  133. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/reset/_utilities.scss +133 -0
  134. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_general.scss +6 -0
  135. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_links.scss +3 -0
  136. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_lists.scss +4 -0
  137. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_print.scss +17 -0
  138. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
  139. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_tables.scss +3 -0
  140. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_text.scss +3 -0
  141. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
  142. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
  143. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
  144. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
  145. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
  146. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  147. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  148. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
  149. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
  150. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
  151. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
  152. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
  153. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
  154. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
  155. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
  156. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
  157. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
  158. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  159. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
  160. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
  161. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
  162. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/ellipsis.sass +9 -0
  163. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/manifest.rb +27 -0
  164. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
  165. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/manifest.rb +20 -0
  166. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
  167. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
  168. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
  169. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
  170. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/ie.sass +6 -0
  171. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/manifest.rb +4 -0
  172. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/print.sass +6 -0
  173. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/screen.sass +7 -0
  174. data/lib/Phamlp/sass/extensions/compass/functions/colourStops.php +268 -0
  175. data/lib/Phamlp/sass/extensions/compass/functions/constants.php +44 -0
  176. data/lib/Phamlp/sass/extensions/compass/functions/fontFiles.php +30 -0
  177. data/lib/Phamlp/sass/extensions/compass/functions/imageSize.php +39 -0
  178. data/lib/Phamlp/sass/extensions/compass/functions/inlineData.php +84 -0
  179. data/lib/Phamlp/sass/extensions/compass/functions/lists.php +47 -0
  180. data/lib/Phamlp/sass/extensions/compass/functions/selectors.php +128 -0
  181. data/lib/Phamlp/sass/extensions/compass/functions/urls.php +143 -0
  182. data/lib/Phamlp/sass/extensions/compass/stylesheets/_compass.scss +2 -0
  183. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_css3.scss +15 -0
  184. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_layout.scss +1 -0
  185. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_reset.scss +3 -0
  186. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_utilities.scss +6 -0
  187. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
  188. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
  189. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-size.scss +14 -0
  190. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
  191. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
  192. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
  193. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box.scss +112 -0
  194. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_columns.scss +55 -0
  195. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_font-face.scss +33 -0
  196. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_gradient.scss +96 -0
  197. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
  198. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_opacity.scss +27 -0
  199. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_shared.scss +47 -0
  200. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
  201. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transform.scss +85 -0
  202. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transition.scss +85 -0
  203. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  204. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/reset/_utilities.scss +133 -0
  205. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_general.scss +6 -0
  206. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_links.scss +3 -0
  207. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_lists.scss +4 -0
  208. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_print.scss +17 -0
  209. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
  210. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_tables.scss +3 -0
  211. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_text.scss +3 -0
  212. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
  213. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
  214. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
  215. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
  216. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
  217. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  218. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  219. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
  220. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
  221. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
  222. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
  223. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
  224. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
  225. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
  226. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
  227. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
  228. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
  229. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  230. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
  231. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
  232. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
  233. data/lib/Phamlp/sass/messages/_i18n.php +122 -0
  234. data/lib/Phamlp/sass/messages/de.php +70 -0
  235. data/lib/Phamlp/sass/messages/fr.php +70 -0
  236. data/lib/Phamlp/sass/renderers/SassCompactRenderer.php +130 -0
  237. data/lib/Phamlp/sass/renderers/SassCompressedRenderer.php +102 -0
  238. data/lib/Phamlp/sass/renderers/SassExpandedRenderer.php +62 -0
  239. data/lib/Phamlp/sass/renderers/SassNestedRenderer.php +61 -0
  240. data/lib/Phamlp/sass/renderers/SassRenderer.php +51 -0
  241. data/lib/Phamlp/sass/script/SassScriptFunction.php +169 -0
  242. data/lib/Phamlp/sass/script/SassScriptFunctions.php +751 -0
  243. data/lib/Phamlp/sass/script/SassScriptLexer.php +114 -0
  244. data/lib/Phamlp/sass/script/SassScriptOperation.php +151 -0
  245. data/lib/Phamlp/sass/script/SassScriptParser.php +192 -0
  246. data/lib/Phamlp/sass/script/SassScriptParserExceptions.php +40 -0
  247. data/lib/Phamlp/sass/script/SassScriptVariable.php +57 -0
  248. data/lib/Phamlp/sass/script/literals/SassBoolean.php +67 -0
  249. data/lib/Phamlp/sass/script/literals/SassColour.php +886 -0
  250. data/lib/Phamlp/sass/script/literals/SassLiteral.php +359 -0
  251. data/lib/Phamlp/sass/script/literals/SassLiteralExceptions.php +47 -0
  252. data/lib/Phamlp/sass/script/literals/SassNumber.php +503 -0
  253. data/lib/Phamlp/sass/script/literals/SassString.php +106 -0
  254. data/lib/Phamlp/sass/tree/SassCommentNode.php +64 -0
  255. data/lib/Phamlp/sass/tree/SassContext.php +120 -0
  256. data/lib/Phamlp/sass/tree/SassDebugNode.php +84 -0
  257. data/lib/Phamlp/sass/tree/SassDirectiveNode.php +76 -0
  258. data/lib/Phamlp/sass/tree/SassElseNode.php +28 -0
  259. data/lib/Phamlp/sass/tree/SassExtendNode.php +47 -0
  260. data/lib/Phamlp/sass/tree/SassForNode.php +99 -0
  261. data/lib/Phamlp/sass/tree/SassIfNode.php +95 -0
  262. data/lib/Phamlp/sass/tree/SassImportNode.php +69 -0
  263. data/lib/Phamlp/sass/tree/SassMixinDefinitionNode.php +88 -0
  264. data/lib/Phamlp/sass/tree/SassMixinNode.php +91 -0
  265. data/lib/Phamlp/sass/tree/SassNode.php +342 -0
  266. data/lib/Phamlp/sass/tree/SassNodeExceptions.php +117 -0
  267. data/lib/Phamlp/sass/tree/SassPropertyNode.php +239 -0
  268. data/lib/Phamlp/sass/tree/SassRootNode.php +100 -0
  269. data/lib/Phamlp/sass/tree/SassRuleNode.php +337 -0
  270. data/lib/Phamlp/sass/tree/SassVariableNode.php +90 -0
  271. data/lib/Phamlp/sass/tree/SassWhileNode.php +64 -0
  272. data/lib/frontsau/assets/rack.rb +12 -0
  273. data/lib/frontsau/assets/sprockets.rb +59 -0
  274. data/lib/frontsau/assets/static_assets_compiler.rb +50 -0
  275. data/lib/frontsau/assets/url_rewriter.rb +22 -0
  276. data/lib/frontsau/assets/watcher.rb +60 -0
  277. data/lib/frontsau/thor_app.rb +118 -0
  278. data/lib/frontsau/version.rb +3 -0
  279. data/lib/frontsau.rb +64 -0
  280. metadata +578 -0
@@ -0,0 +1,109 @@
1
+ // @doc off
2
+ // The blueprint IE mixins should be mixed into a stylesheet that gets conditionally included
3
+ // into IE like so:
4
+ // <!--[if lt IE 8]><link rel="stylesheet" href="ie.css"
5
+ // type="text/css" media="screen, projection"><![endif]-->
6
+ // @doc on
7
+
8
+ //| Usage Examples
9
+ //| --------------
10
+ //|
11
+ //| As a top-level mixin, apply to any page that includes the stylesheet:
12
+ //| <pre class="source-code sass">
13
+ //| +blueprint-ie
14
+ //| </pre>
15
+ //| Scoped by a presentational class:
16
+ //| <pre class="source-code sass">
17
+ //| body.blueprint
18
+ //| +blueprint-ie(true)
19
+ //| </pre>
20
+ //| Scoped by semantic selectors:
21
+ //| <pre class="source-code sass">
22
+ //| body#page-1, body#page-2, body.a-special-page-type
23
+ //| +blueprint-ie(true)
24
+ //| </pre>
25
+ //| **Deprecated:** You can pass the body selector as the first argument when used as a top-level mixin
26
+ //| <pre class="source-code sass">
27
+ //| +blueprint-ie("body#page-1, body#page-2, body.a-special-page-type")
28
+ //| </pre>
29
+ @mixin blueprint-ie($body_selector: body) {
30
+ @if $body_selector == true {
31
+ @include blueprint-ie-body;
32
+ @include blueprint-ie-defaults; }
33
+ @else {
34
+ #{$body_selector} {
35
+ @include blueprint-ie-body;
36
+ @if $body_selector != "body" {
37
+ @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint-ie, pass true as the first argument and mix it into #{$body_selector}.";
38
+ @include blueprint-ie-defaults; } }
39
+ @if $body_selector == "body" {
40
+ @include blueprint-ie-defaults; } } }
41
+
42
+ @mixin blueprint-ie-body {
43
+ text-align: center;
44
+ @include blueprint-ie-hacks; }
45
+
46
+ @mixin blueprint-ie-hacks {
47
+ * html & {
48
+ legend {
49
+ margin: 0px -8px 16px 0;
50
+ padding: 0; } }
51
+ html>& {
52
+ p code {
53
+ *white-space: normal; } } }
54
+
55
+ // Fixes for Blueprint "inline" forms in IE
56
+ @mixin blueprint-inline-form-ie {
57
+ div, p {
58
+ vertical-align: middle; }
59
+ label {
60
+ position: relative;
61
+ top: -0.25em; }
62
+ input {
63
+ &.checkbox, &.radio, &.button, button {
64
+ margin: 0.5em 0; } } }
65
+
66
+ @mixin blueprint-ie-defaults {
67
+ .container {
68
+ text-align: left; }
69
+ sup {
70
+ vertical-align: text-top; }
71
+ sub {
72
+ vertical-align: text-bottom; }
73
+ hr {
74
+ margin: -8px auto 11px; }
75
+ img {
76
+ -ms-interpolation-mode: bicubic; }
77
+ fieldset {
78
+ padding-top: 0; }
79
+ textarea {
80
+ overflow: auto; }
81
+ input {
82
+ &.text {
83
+ margin: 0.5em 0;
84
+ background-color: white;
85
+ border: 1px solid #bbbbbb;
86
+ &:focus {
87
+ border: 1px solid #666666; } }
88
+ &.title {
89
+ margin: 0.5em 0;
90
+ background-color: white;
91
+ border: 1px solid #bbbbbb;
92
+ &:focus {
93
+ border: 1px solid #666666; } }
94
+ &.checkbox {
95
+ position: relative;
96
+ top: 0.25em; }
97
+ &.radio {
98
+ position: relative;
99
+ top: 0.25em; }
100
+ &.button {
101
+ position: relative;
102
+ top: 0.25em; } }
103
+ textarea {
104
+ margin: 0.5em 0; }
105
+ select {
106
+ margin: 0.5em 0; }
107
+ button {
108
+ position: relative;
109
+ top: 0.25em; } }
@@ -0,0 +1,57 @@
1
+ @import "colors";
2
+
3
+ @mixin blueprint-interaction {
4
+ .error {
5
+ @include error; }
6
+ .notice {
7
+ @include notice; }
8
+ .success {
9
+ @include success; }
10
+ .hide {
11
+ display: none; }
12
+ .highlight {
13
+ @include highlight; }
14
+ .added {
15
+ @include added; }
16
+ .removed {
17
+ @include removed; } }
18
+
19
+ @mixin feedback-base {
20
+ padding: 0.8em;
21
+ margin-bottom: 1em;
22
+ border: 2px solid $feedback_border_color; }
23
+
24
+ @mixin error {
25
+ @include feedback-base;
26
+ background: $error_bg_color;
27
+ color: $error_color;
28
+ border-color: $error_border_color;
29
+ a {
30
+ color: $error_color; } }
31
+
32
+ @mixin notice {
33
+ @include feedback-base;
34
+ background: $notice_bg_color;
35
+ color: $notice_color;
36
+ border-color: $notice_border_color;
37
+ a {
38
+ color: $notice_color; } }
39
+
40
+ @mixin success {
41
+ @include feedback-base;
42
+ background: $success_bg_color;
43
+ color: $success_color;
44
+ border-color: $success_border_color;
45
+ a {
46
+ color: $success_color; } }
47
+
48
+ @mixin highlight {
49
+ background: $highlight_color; }
50
+
51
+ @mixin added {
52
+ background: $added_bg_color;
53
+ color: $added_color; }
54
+
55
+ @mixin removed {
56
+ background: $removed_bg_color;
57
+ color: $removed_color; }
@@ -0,0 +1,37 @@
1
+ @mixin no-link-icon {
2
+ background: transparent none !important;
3
+ padding: 0 !important;
4
+ margin: 0 !important;
5
+ }
6
+
7
+ @mixin link-icon-base {
8
+ padding: 2px 22px 2px 0;
9
+ margin: -2px 0;
10
+ background-repeat: no-repeat;
11
+ background-position: right center;
12
+ }
13
+
14
+ @mixin link-icon($name, $include-base: true) {
15
+ @if $include-base { @include link-icon-base; }
16
+ background-image: image-url("link_icons/#{$name}"); }
17
+
18
+ @mixin link-icons {
19
+ a[href^="http:"],
20
+ a[href^="mailto:"],
21
+ a[href^="http:"]:visited,
22
+ a[href$=".pdf"],
23
+ a[href$=".doc"],
24
+ a[href$=".xls"],
25
+ a[href$=".rss"],
26
+ a[href$=".rdf"],
27
+ a[href^="aim:"] { @include link-icon-base; }
28
+ a[href^="http:"] { @include link-icon("external.png", false); }
29
+ a[href^="mailto:"] { @include link-icon("email.png", false); }
30
+ a[href^="http:"]:visited { @include link-icon("visited.png", false); }
31
+ a[href$=".pdf"] { @include link-icon("pdf.png", false); }
32
+ a[href$=".doc"] { @include link-icon("doc.png", false); }
33
+ a[href$=".xls"] { @include link-icon("xls.png", false); }
34
+ a[href$=".rss"],
35
+ a[href$=".rdf"] { @include link-icon("feed.png", false); }
36
+ a[href^="aim:"] { @include link-icon("im.png", false); }
37
+ }
@@ -0,0 +1,147 @@
1
+ // --------------------------------------------------------------
2
+ // SASS Gridification
3
+ // * Author: Geoff Garside
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
+ // * Chris Eppstein [eppsteins.net]
9
+ // * Lorin Tacket [lorintackett.com]
10
+ // * Olav Bjorkoy [bjorkoy.com]
11
+ // * Nathan Borror [playgroundblues.com]
12
+ // * Jeff Croft [jeffcroft.com]
13
+ // * Christian Metts [mintchaos.com]
14
+ // * Khoi Vinh [subtraction.com]
15
+ // Liquid grid work by:
16
+ // * Ben Listwon
17
+ // * David Bedingfield
18
+ // * Andrei Michael Herasimchuk
19
+ // Involution Studios, http://www.involutionstudios.com
20
+ // Read more about using a grid here:
21
+ // * subtraction.com/archives/2007/0318_oh_yeeaahh.php
22
+ // -----
23
+ // By default, the grid is 80% of window width, with 24 columns.
24
+ //
25
+ // To make the grid fixed, simply change the .container width
26
+ // property to a pixel value. e.g., 960px.
27
+ // -----
28
+ // To use:
29
+ // This module is a REPLACEMENT for the grid module. Simply import it:
30
+ // @import blueprint
31
+ // @import blueprint/liquid
32
+ // -------------------------------------------------------------------
33
+
34
+ @import "compass/utilities/general/clearfix";
35
+ @import "compass/utilities/general/float";
36
+
37
+ // Main layout grid, override these constants to build your grid and container sizes.
38
+ // The width shown gives the right floored percentage values.
39
+ $blueprint_liquid_grid_columns: 24 !default;
40
+
41
+ $blueprint_liquid_grid_width: 3.167% !default;
42
+
43
+ $blueprint_liquid_grid_margin: 1.042% !default;
44
+
45
+ // Do not edit below this line unless you really know what you're doing.
46
+ $blueprint_liquid_container_width: 80% !default;
47
+
48
+ $blueprint_liquid_container_min_width: 950px !default;
49
+
50
+ $blueprint_liquid_grid_push_pull: -($blueprint_liquid_grid_margin + $blueprint_liquid_grid_width) !default;
51
+
52
+ @mixin blueprint-liquid-grid {
53
+ // A container should group all your columns
54
+ .container {
55
+ @include container; }
56
+ // Use these classes (or mixins) to set the width of a column.
57
+ @for $n from 1 to $blueprint_liquid_grid_columns + 1 {
58
+ .span-#{$n} {
59
+ @include span($n); }
60
+ div {
61
+ &.span-#{$n} {
62
+ @include column($n, $n == $blueprint_liquid_grid_columns); } } }
63
+ // The last column in a row needs this class (or mixin) or it will end up on the next row.
64
+ div.last {
65
+ @include last; }
66
+ // Add these to a column to append empty cols.
67
+ @for $n from 1 to $blueprint_liquid_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_liquid_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
+ @for $n from 1 to $blueprint_liquid_grid_columns + 1 {
77
+ .pull-#{$n} {
78
+ @include pull($n); } }
79
+ @for $n from 1 to $blueprint_liquid_grid_columns + 1 {
80
+ .push-#{$n} {
81
+ @include push($n); } } }
82
+
83
+ @mixin container {
84
+ min-width: $blueprint_liquid_container_min_width;
85
+ width: $blueprint_liquid_container_width;
86
+ margin: 0 auto;
87
+ @include clearfix; }
88
+
89
+ @mixin span($n, $override: false) {
90
+ $width: $blueprint_liquid_grid_width * $n + $blueprint_liquid_grid_margin * ($n - 1);
91
+ @if $override {
92
+ width: $width !important; }
93
+ @else {
94
+ width: $width; } }
95
+
96
+ @mixin last {
97
+ margin-right: 0; }
98
+
99
+ @mixin column($n, $last: false) {
100
+ @include float-left;
101
+ overflow: hidden;
102
+ @include span($n);
103
+ @if $last {
104
+ @include last; }
105
+ @else {
106
+ margin-right: $blueprint_liquid_grid_margin; } }
107
+
108
+ @mixin append($n) {
109
+ padding-right: ($blueprint_liquid_grid_width + $blueprint_liquid_grid_margin) * $n; }
110
+
111
+ @mixin prepend($n) {
112
+ padding-left: ($blueprint_liquid_grid_width + $blueprint_liquid_grid_margin) * $n; }
113
+
114
+ @mixin pull($n, $last: false) {
115
+ margin-left: $blueprint_liquid_grid_push_pull * $n; }
116
+
117
+ @mixin push($n) {
118
+ @include float-right;
119
+ margin: {
120
+ top: 0;
121
+ left: $blueprint_liquid_grid_margin;
122
+ right: $blueprint_liquid_grid_push_pull * $n;
123
+ bottom: 0; }; }
124
+
125
+ @mixin border {
126
+ border-right: 1px solid #eeeeee; }
127
+
128
+ @mixin colborder {
129
+ padding-right: $blueprint_liquid_grid_margin * 2;
130
+ margin-right: $blueprint_liquid_grid_margin * 2;
131
+ @include border; }
132
+
133
+ @mixin colruler {
134
+ background: #dddddd;
135
+ color: #dddddd;
136
+ clear: both;
137
+ width: 100%;
138
+ height: 0.083em;
139
+ margin: 0;
140
+ margin-left: $blueprint_liquid_grid_margin * 2;
141
+ margin-right: $blueprint_liquid_grid_margin * 2;
142
+ border: none; }
143
+
144
+ @mixin colspacer {
145
+ @include colruler;
146
+ background: white;
147
+ color: white; }
@@ -0,0 +1,93 @@
1
+ @import "typography";
2
+ @import "compass/utilities/general/float";
3
+
4
+ // Usage examples:
5
+ // As a top-level mixin, apply to any page that includes the stylesheet:
6
+ // <pre class="source-code sass">
7
+ // +blueprint-print
8
+ // </pre>
9
+ // Scoped by a presentational class:
10
+ // <pre class="source-code sass">
11
+ // body.blueprint
12
+ // +blueprint-print(true)
13
+ // </pre>
14
+ // Scoped by semantic selectors:
15
+ // <pre class="source-code sass">
16
+ // body#page-1, body#page-2, body.a-special-page-type
17
+ // +blueprint-print(true)
18
+ // </pre>
19
+ // Deprecated:
20
+ // You can pass the body selector as the first argument when used as a top-level mixin
21
+ // <pre class="source-code sass">
22
+ // +blueprint-print("body#page-1, body#page-2, body.a-special-page-type")
23
+ // </pre>
24
+ @mixin blueprint-print($body_selector: body) {
25
+ @if $body_selector == true {
26
+ @include blueprint-print-body;
27
+ @include blueprint-print-defaults; }
28
+ @else {
29
+ #{$body_selector} {
30
+ @include blueprint-print-body;
31
+ @if $body_selector != "body" {
32
+ @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint-print, pass true as the first argument and mix it into #{$body_selector}.";
33
+ @include blueprint-print-defaults; } }
34
+ @if $body_selector == "body" {
35
+ @include blueprint-print-defaults; } } }
36
+
37
+ // This style is in blueprint, but I think it's annoying and it doesn't work in all browsers.
38
+ // Feel free to mix it into anchors where you want it.
39
+ @mixin blueprint-show-link-urls {
40
+ &:after {
41
+ content: " (" attr(href) ")";
42
+ font-size: 90%; } }
43
+
44
+ @mixin blueprint-print-body {
45
+ line-height: 1.5;
46
+ font-family: $blueprint_font_family;
47
+ color: black;
48
+ background: none;
49
+ font-size: 10pt; }
50
+
51
+ @mixin blueprint-print-defaults {
52
+ .container {
53
+ background: none; }
54
+ hr {
55
+ background: #cccccc;
56
+ color: #cccccc;
57
+ width: 100%;
58
+ height: 2px;
59
+ margin: 2em 0;
60
+ padding: 0;
61
+ border: none;
62
+ &.space {
63
+ background: white;
64
+ color: white; } }
65
+ h1, h2, h3, h4, h5, h6 {
66
+ font-family: $blueprint_font_family; }
67
+ code {
68
+ font: {
69
+ size: 0.9em;
70
+ family: $blueprint_fixed_font_family; }; }
71
+ a {
72
+ img {
73
+ border: none; }
74
+ &:link,
75
+ &:visited {
76
+ background: transparent;
77
+ font-weight: 700;
78
+ text-decoration: underline; } }
79
+ p img.top {
80
+ margin-top: 0; }
81
+ blockquote {
82
+ margin: 1.5em;
83
+ padding: 1em;
84
+ font-style: italic;
85
+ font-size: 0.9em; }
86
+ .small {
87
+ font-size: 0.9em; }
88
+ .large {
89
+ font-size: 1.1em; }
90
+ .quiet {
91
+ color: #999999; }
92
+ .hide {
93
+ display: none; } }
@@ -0,0 +1,3 @@
1
+ @import "reset/utilities";
2
+
3
+ @include blueprint-global-reset;
@@ -0,0 +1,133 @@
1
+ @import "grid";
2
+ @import "compass/utilities/general/float";
3
+
4
+ // Main layout grid, override these constants to build your grid and container sizes.
5
+ $blueprint_grid_columns: 24 !default;
6
+
7
+ $blueprint_grid_width: 30px !default;
8
+
9
+ $blueprint_grid_margin: 10px !default;
10
+
11
+ $blueprint_grid_outer_width: $blueprint_grid_width + $blueprint_grid_margin;
12
+
13
+ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns - $blueprint_grid_margin;
14
+
15
+ // Columns
16
+ // Note: If you use this mixin without the class and want to support ie6
17
+ // you must set text-align left on your container element in an IE stylesheet.
18
+ @mixin container {
19
+ width: $blueprint_container_size;
20
+ margin: 0 auto;
21
+ direction: rtl;
22
+ @include clearfix; }
23
+
24
+ // The last column in a row needs this mixin or it will end up on the next row.
25
+ // TODO add this to span mixin when we have optional arguments
26
+ @mixin last {
27
+ margin-left: 0; }
28
+
29
+ @mixin column-base($last: false) {
30
+ @include float-right;
31
+ @if $last {
32
+ @include last; }
33
+ @else {
34
+ margin-left: $blueprint_grid_margin; }
35
+ text-align: right;
36
+ * html & {
37
+ overflow-x: hidden; } }
38
+
39
+ // Mixin to a column to append n empty cols.
40
+ @mixin append($n) {
41
+ padding-left: $blueprint_grid_outer_width * $n; }
42
+
43
+ // Mixin to a column to prepend n empty cols.
44
+ @mixin prepend($n) {
45
+ padding-right: $blueprint_grid_outer_width * $n; }
46
+
47
+ // mixin to a column to move it n columns to the left
48
+ @mixin pull($n, $last: false) {
49
+ position: relative;
50
+ @if $last {
51
+ margin-right: -$blueprint_grid_outer_width * $n + $blueprint_grid_margin; }
52
+ @else {
53
+ margin-right: -$blueprint_grid_outer_width * $n; } }
54
+
55
+ // mixin to a column to push it n columns to the right
56
+ @mixin push($n) {
57
+ @include float-right;
58
+ position: relative;
59
+ margin: {
60
+ top: 0;
61
+ left: -$blueprint_grid_outer_width * $n;
62
+ bottom: 1.5em;
63
+ right: $blueprint_grid_outer_width * $n; }; }
64
+
65
+ // Border on left hand side of a column.
66
+ @mixin border {
67
+ padding-left: $blueprint_grid_margin / 2 - 1;
68
+ margin-left: $blueprint_grid_margin / 2;
69
+ border-left: 1px solid #eeeeee; }
70
+
71
+ // Border with more whitespace, spans one column.
72
+ @mixin colborder {
73
+ padding-left: ($blueprint_grid_width - 2 * $blueprint_grid_margin - 1) / 2;
74
+ margin-left: ($blueprint_grid_width - 2 * $blueprint_grid_margin) / 2;
75
+ border-left: 1px solid #eeeeee; }
76
+
77
+ // Usage examples:
78
+ // As a top-level mixin, apply to any page that includes the stylesheet:
79
+ // <pre class="source-code sass">
80
+ // +rtl-typography
81
+ // </pre>
82
+ //
83
+ // Scoped by a presentational class:
84
+ // <pre class="source-code sass">
85
+ // body.blueprint
86
+ // +rtl-typography(true)
87
+ // </pre>
88
+ //
89
+ // Scoped by semantic selectors:
90
+ // <pre class="source-code sass">
91
+ // body#page-1, body#page-2, body.a-special-page-type
92
+ // +rtl-typography(true)
93
+ // </pre>
94
+ //
95
+ // **Deprecated**:
96
+ // You can pass the body selector as the first argument when used as a top-level mixin
97
+ // <pre class="source-code sass">
98
+ // +rtl-typography("body#page-1, body#page-2, body.a-special-page-type")
99
+ // </pre>
100
+ @mixin rtl-typography($body_selector: body) {
101
+ @if $body_selector == true {
102
+ html & {
103
+ font-family: Arial, sans-serif; }
104
+ @include rtl-typography-defaults; }
105
+ @else {
106
+ html #{$body_selector} {
107
+ font-family: Arial, sans-serif;
108
+ @if $body_selector != "body" {
109
+ @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +rtl-typography, pass true as the first argument and mix it into #{$body_selector}.";
110
+ @include rtl-typography-defaults; } }
111
+ @if $body_selector == "body" {
112
+ body {
113
+ @include rtl-typography-defaults; } } } }
114
+
115
+ @mixin rtl-typography-defaults {
116
+ h1, h2, h3, h4, h5, h6 {
117
+ font-family: Arial, sans-serif; }
118
+ pre, code, tt {
119
+ font-family: monospace; }
120
+ p {
121
+ img.right {
122
+ @include float-left;
123
+ margin: 1.5em 1.5em 1.5em 0;
124
+ padding: 0; }
125
+ img.left {
126
+ @include float-right;
127
+ margin: 1.5em 0 1.5em 1.5em;
128
+ padding: 0; } }
129
+ dd, ul, ol {
130
+ margin-left: 0;
131
+ margin-right: 1.5em; }
132
+ td, th {
133
+ text-align: right; } }
@@ -0,0 +1,54 @@
1
+ @import "grid";
2
+ @import "form";
3
+
4
+ // The styles contained here are meant to provide for an attractive experience out of the box
5
+ // and are expected to be removed once custom visual design begins.
6
+
7
+ // The +blueprint-scaffolding mixin must be mixed into the top level of your stylesheet.
8
+ // However, you can customize the body selector if you wish to control the scope
9
+ // of this mixin. Examples:
10
+ // Apply to any page including the stylesheet:
11
+ // +blueprint-scaffolding
12
+ // Scoped by a single presentational body class:
13
+ // +blueprint-scaffolding("body.blueprint")
14
+ // Semantically:
15
+ // +blueprint-scaffolding("body#page-1, body#page-2, body.a-special-page-type")
16
+ // Alternatively, you can use the +blueprint-scaffolding-body and +blueprint-scaffolding-defaults
17
+ // mixins to construct your own semantic style rules.
18
+
19
+ @mixin blueprint-scaffolding($body_selector: body) {
20
+ @if $body_selector != body {
21
+ #{$body_selector} {
22
+ @include blueprint-scaffolding-defaults;
23
+ }
24
+ } @else {
25
+ @include blueprint-scaffolding-defaults;
26
+ }
27
+ }
28
+
29
+ // The styles this mixin provides were deprecated in Blueprint 0.9 and is no longer part of the
30
+ // main scaffolding, but the mixin is still available if you want to use it.
31
+ @mixin blueprint-scaffolding-body {
32
+ margin: 1.5em 0; }
33
+
34
+ // Mixin +box to create a padded box inside a column.
35
+ @mixin box {
36
+ padding: 1.5em;
37
+ margin-bottom: 1.5em;
38
+ background: #e5ecf9; }
39
+
40
+ @mixin blueprint-scaffolding-defaults {
41
+ .box {
42
+ @include box; }
43
+ // Border on right hand side of a column. You can comment this out if you don't plan to use it.
44
+ div.border {
45
+ @include border; }
46
+ // Border with more whitespace, spans one column.
47
+ div.colborder {
48
+ @include colborder; }
49
+ hr {
50
+ @include colruler; }
51
+ hr.space {
52
+ @include colspacer; }
53
+ form.inline {
54
+ @include blueprint-inline-form; } }