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,5 @@
1
+ @import blueprint
2
+
3
+ //Recommended Blueprint configuration with scoping and semantic layout:
4
+ body.bp
5
+ +blueprint-print(true)
@@ -0,0 +1,14 @@
1
+ // This import applies a global reset to any page that imports this stylesheet.
2
+ @import blueprint/reset
3
+
4
+ // To configure blueprint, edit the partials/base.sass file.
5
+ @import "partials/base"
6
+
7
+ // Import all the default blueprint modules so that we can access their mixins.
8
+ @import blueprint
9
+
10
+ // Combine the partials into a single screen stylesheet.
11
+ @import "partials/page"
12
+ @import "partials/form"
13
+ @import "partials/two_col"
14
+
@@ -0,0 +1,2 @@
1
+ @import "compass/utilities";
2
+ @import "compass/css3";
@@ -0,0 +1,15 @@
1
+ @import "css3/border-radius";
2
+ @import "css3/inline-block";
3
+ @import "css3/opacity";
4
+ @import "css3/box-shadow";
5
+ @import "css3/text-shadow";
6
+ @import "css3/columns";
7
+ @import "css3/box-sizing";
8
+ @import "css3/box";
9
+ @import "css3/gradient";
10
+ @import "css3/background-clip";
11
+ @import "css3/background-origin";
12
+ @import "css3/background-size";
13
+ @import "css3/font-face";
14
+ @import "css3/transform";
15
+ @import "css3/transition";
@@ -0,0 +1,3 @@
1
+ @import "reset/utilities";
2
+
3
+ @include global-reset;
@@ -0,0 +1,6 @@
1
+ @import "utilities/general";
2
+ @import "utilities/links";
3
+ @import "utilities/lists";
4
+ @import "utilities/sprites";
5
+ @import "utilities/tables";
6
+ @import "utilities/text";
@@ -0,0 +1,43 @@
1
+ @import "shared";
2
+
3
+ // The default value is `padding-box` -- the box model used by modern browsers.
4
+ //
5
+ // If you wish to do so, you can override the default constant with `border-box`
6
+ //
7
+ // To override to the default border-box model, use this code:
8
+ // $default-background-clip = border-box
9
+
10
+ $default-background-clip: padding-box !default;
11
+
12
+ // Clip the background (image and color) at the edge of the padding or border.
13
+ //
14
+ // Legal Values:
15
+ //
16
+ // * padding-box
17
+ // * border-box
18
+ // * text
19
+
20
+ @mixin background-clip($clip: $default-background-clip) {
21
+ // webkit and mozilla use the deprecated short [border | padding]
22
+ $clip: unquote($clip);
23
+ $deprecated: $clip;
24
+ @if $clip == padding-box { $deprecated: padding; }
25
+ @if $clip == border-box { $deprecated: border; }
26
+ // Support for webkit and mozilla's use of the deprecated short form
27
+ @include experimental(background-clip, $deprecated,
28
+ -moz,
29
+ -webkit,
30
+ not -o,
31
+ not -ms,
32
+ not -khtml,
33
+ not official
34
+ );
35
+ @include experimental(background-clip, $clip,
36
+ not -moz,
37
+ not -webkit,
38
+ -o,
39
+ -ms,
40
+ -khtml,
41
+ official
42
+ );
43
+ }
@@ -0,0 +1,42 @@
1
+ // Override `$default-background-origin` to change the default.
2
+
3
+ @import "shared";
4
+
5
+ $default-background-origin: content-box !default;
6
+
7
+ // Position the background off the edge of the padding, border or content
8
+ //
9
+ // * Possible values:
10
+ // * `padding-box`
11
+ // * `border-box`
12
+ // * `content-box`
13
+ // * browser defaults to `padding-box`
14
+ // * mixin defaults to `content-box`
15
+
16
+
17
+ @mixin background-origin($origin: $default-background-origin) {
18
+ $origin: unquote($origin);
19
+ // webkit and mozilla use the deprecated short [border | padding | content]
20
+ $deprecated: $origin;
21
+ @if $origin == padding-box { $deprecated: padding; }
22
+ @if $origin == border-box { $deprecated: border; }
23
+ @if $origin == content-box { $deprecated: content; }
24
+
25
+ // Support for webkit and mozilla's use of the deprecated short form
26
+ @include experimental(background-origin, $deprecated,
27
+ -moz,
28
+ -webkit,
29
+ not -o,
30
+ not -ms,
31
+ not -khtml,
32
+ not official
33
+ );
34
+ @include experimental(background-origin, $origin,
35
+ not -moz,
36
+ not -webkit,
37
+ -o,
38
+ -ms,
39
+ -khtml,
40
+ official
41
+ );
42
+ }
@@ -0,0 +1,14 @@
1
+ @import "shared";
2
+
3
+ // override to change the default
4
+ $default-background-size: 100% auto !default;
5
+
6
+ // Set the size of background images using px, width and height, or percentages.
7
+ // Currently supported in: Opera, Gecko, Webkit.
8
+ //
9
+ // * percentages are relative to the background-origin (default = padding-box)
10
+ // * mixin defaults to: `$default-background-size`
11
+ @mixin background-size($size: $default-background-size) {
12
+ $size: unquote($size);
13
+ @include experimental(background-size, $size, -moz, -webkit, -o, not -ms, not -khtml);
14
+ }
@@ -0,0 +1,135 @@
1
+ @import "shared";
2
+
3
+ $default-border-radius: 5px !default;
4
+
5
+ // Round all corners by a specific amount, defaults to value of `$default-border-radius`.
6
+ //
7
+ // When two values are passed, the first is the horizontal radius
8
+ // and the second is the vertical radius.
9
+ //
10
+ // Note: webkit does not support shorthand syntax for several corners at once.
11
+ // So in the case where you pass several values only the first will be passed to webkit.
12
+ //
13
+ // Examples:
14
+ //
15
+ // .simple { @include border-radius(4px, 4px); }
16
+ // .compound { @include border-radius(2px 5px, 3px 6px); }
17
+ // .crazy { @include border-radius(1px 3px 5px 7px, 2px 4px 6px 8px)}
18
+ //
19
+ // Which generates:
20
+ // .simple {
21
+ // -webkit-border-radius: 4px 4px;
22
+ // -moz-border-radius: 4px / 4px;
23
+ // -o-border-radius: 4px / 4px;
24
+ // -ms-border-radius: 4px / 4px;
25
+ // -khtml-border-radius: 4px / 4px;
26
+ // border-radius: 4px / 4px; }
27
+ //
28
+ // .compound {
29
+ // -webkit-border-radius: 2px 3px;
30
+ // -moz-border-radius: 2px 5px / 3px 6px;
31
+ // -o-border-radius: 2px 5px / 3px 6px;
32
+ // -ms-border-radius: 2px 5px / 3px 6px;
33
+ // -khtml-border-radius: 2px 5px / 3px 6px;
34
+ // border-radius: 2px 5px / 3px 6px; }
35
+ //
36
+ // .crazy {
37
+ // -webkit-border-radius: 1px 2px;
38
+ // -moz-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
39
+ // -o-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
40
+ // -ms-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
41
+ // -khtml-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
42
+ // border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px; }
43
+
44
+ @mixin border-radius($radius: $default-border-radius, $vertical-radius: false) {
45
+
46
+ @if $vertical-radius {
47
+ // Webkit doesn't understand the official shorthand syntax for specifying
48
+ // a vertical radius unless so in case there's several we only take the first.
49
+ @include experimental(border-radius, first-value-of($radius) first-value-of($vertical-radius),
50
+ not -moz,
51
+ -webkit,
52
+ not -o,
53
+ not -ms,
54
+ not -khtml,
55
+ not official
56
+ );
57
+ @include experimental("border-radius", $radius unquote("/") $vertical-radius,
58
+ -moz,
59
+ not -webkit,
60
+ -o,
61
+ -ms,
62
+ -khtml,
63
+ official
64
+ );
65
+ }
66
+ @else {
67
+ @include experimental(border-radius, $radius);
68
+ }
69
+ }
70
+
71
+ // Round radius at position by amount.
72
+ //
73
+ // * legal values for `$vert`: `top`, `bottom`
74
+ // * legal values for `$horz`: `left`, `right`
75
+
76
+ @mixin border-corner-radius($vert, $horz, $radius: $default-border-radius) {
77
+ // Support for mozilla's syntax for specifying a corner
78
+ @include experimental("border-radius-#{$vert}#{$horz}", $radius,
79
+ -moz,
80
+ not -webkit,
81
+ not -o,
82
+ not -ms,
83
+ not -khtml,
84
+ not official
85
+ );
86
+ @include experimental("border-#{$vert}-#{$horz}-radius", $radius,
87
+ not -moz,
88
+ -webkit,
89
+ -o,
90
+ -ms,
91
+ -khtml,
92
+ official
93
+ );
94
+
95
+ }
96
+
97
+ // Round top-left corner only
98
+
99
+ @mixin border-top-left-radius($radius: $default-border-radius) {
100
+ @include border-corner-radius(top, left, $radius); }
101
+
102
+ // Round top-right corner only
103
+
104
+ @mixin border-top-right-radius($radius: $default-border-radius) {
105
+ @include border-corner-radius(top, right, $radius); }
106
+
107
+ // Round bottom-left corner only
108
+
109
+ @mixin border-bottom-left-radius($radius: $default-border-radius) {
110
+ @include border-corner-radius(bottom, left, $radius); }
111
+
112
+ // Round bottom-right corner only
113
+
114
+ @mixin border-bottom-right-radius($radius: $default-border-radius) {
115
+ @include border-corner-radius(bottom, right, $radius); }
116
+
117
+ // Round both top corners by amount
118
+ @mixin border-top-radius($radius: $default-border-radius) {
119
+ @include border-top-left-radius($radius);
120
+ @include border-top-right-radius($radius); }
121
+
122
+ // Round both right corners by amount
123
+ @mixin border-right-radius($radius: $default-border-radius) {
124
+ @include border-top-right-radius($radius);
125
+ @include border-bottom-right-radius($radius); }
126
+
127
+ // Round both bottom corners by amount
128
+ @mixin border-bottom-radius($radius: $default-border-radius) {
129
+ @include border-bottom-left-radius($radius);
130
+ @include border-bottom-right-radius($radius); }
131
+
132
+ // Round both left corners by amount
133
+ @mixin border-left-radius($radius: $default-border-radius) {
134
+ @include border-top-left-radius($radius);
135
+ @include border-bottom-left-radius($radius); }
@@ -0,0 +1,50 @@
1
+ // @doc off
2
+ // These defaults make the arguments optional for this mixin
3
+ // If you like, set different defaults before importing.
4
+ // @doc on
5
+
6
+ @import "shared";
7
+
8
+ // The default color for box shadows
9
+ $default-box-shadow-color: #333333 !default;
10
+
11
+ // The default horizontal offset. Positive is to the right.
12
+ $default-box-shadow-h-offset: 1px !default;
13
+
14
+ // The default vertical offset. Positive is down.
15
+ $default-box-shadow-v-offset: 1px !default;
16
+
17
+ // The default blur length.
18
+ $default-box-shadow-blur: 5px !default;
19
+
20
+ // The default spread length.
21
+ $default-box-shadow-spread : 0 !default;
22
+
23
+ // The default shadow instet: inset or false (for standard shadow).
24
+ $default-box-shadow-inset : false !default;
25
+
26
+ // Provides cross-browser CSS box shadows for Webkit, Gecko, and CSS3.
27
+ // Arguments are color, horizontal offset, vertical offset, blur length, spread length, and inset.
28
+
29
+ @mixin box-shadow(
30
+ $color : $default-box-shadow-color,
31
+ $hoff : $default-box-shadow-h-offset,
32
+ $voff : $default-box-shadow-v-offset,
33
+ $blur : $default-box-shadow-blur,
34
+ $spread : $default-box-shadow-spread,
35
+ $inset : $default-box-shadow-inset
36
+ ) {
37
+ $full : $color $hoff $voff $blur $spread;
38
+ @if $inset {
39
+ $full: $full $inset;
40
+ }
41
+ @if $color == none {
42
+ @include experimental(box-shadow, none,
43
+ -moz, -webkit, -o, not -ms, not -khtml, official
44
+ );
45
+ } @else {
46
+ @include experimental(box-shadow, $full,
47
+ -moz, -webkit, -o, not -ms, not -khtml, official
48
+ );
49
+ }
50
+ }
@@ -0,0 +1,13 @@
1
+ @import "shared";
2
+
3
+ // Change the box model for Mozilla, Webkit, IE8 and the future
4
+ //
5
+ // @param $bs
6
+ // [ content-box | border-box ]
7
+
8
+ @mixin box-sizing($bs) {
9
+ $bs: unquote($bs);
10
+ @include experimental(box-sizing, $bs,
11
+ -moz, -webkit, not -o, -ms, not -khtml, official
12
+ );
13
+ }
@@ -0,0 +1,112 @@
1
+ @import "shared";
2
+
3
+ // display:box; must be used for any of the other flexbox mixins to work properly
4
+ @mixin display-box {
5
+ @include experimental-value(display, box,
6
+ -moz, -webkit, not -o, not -ms, not -khtml, official
7
+ );
8
+ }
9
+
10
+ // Default box orientation, assuming that the user wants something less block-like
11
+ $default-box-orient: horizontal !default;
12
+
13
+ // Box orientation [ horizontal | vertical | inline-axis | block-axis | inherit ]
14
+ @mixin box-orient(
15
+ $orientation: $default-box-orient
16
+ ) {
17
+ $orientation : unquote($orientation);
18
+ @include experimental(box-orient, $orientation,
19
+ -moz, -webkit, not -o, not -ms, not -khtml, official
20
+ );
21
+ }
22
+
23
+ // Default box-align
24
+ $default-box-align: stretch !default;
25
+
26
+ // Box align [ start | end | center | baseline | stretch ]
27
+ @mixin box-align(
28
+ $alignment: $default-box-align
29
+ ) {
30
+ $alignment : unquote($alignment);
31
+ @include experimental(box-align, $alignment,
32
+ -moz, -webkit, not -o, not -ms, not -khtml, official
33
+ );
34
+ }
35
+
36
+ // Default box flex
37
+ $default-box-flex: 0 !default;
38
+
39
+ // mixin which takes an int argument for box flex. Apply this to the children inside the box.
40
+ //
41
+ // For example: "div.display-box > div.child-box" would get the box flex mixin.
42
+ @mixin box-flex(
43
+ $flex: $default-box-flex
44
+ ) {
45
+ @include experimental(box-flex, $flex,
46
+ -moz, -webkit, not -o, not -ms, not -khtml, official
47
+ );
48
+ display: block;
49
+ }
50
+
51
+ // Default flex group
52
+ $default-box-flex-group: 1 !default;
53
+
54
+ // mixin which takes an int argument for flexible grouping
55
+ @mixin box-flex-group(
56
+ $group: $default-box-flex-group
57
+ ) {
58
+ @include experimental(box-flex-group, $group,
59
+ -moz, -webkit, not -o, not -ms, not -khtml, official
60
+ );
61
+ }
62
+
63
+ // default for ordinal group
64
+ $default-box-ordinal-group: 1 !default;
65
+
66
+ // mixin which takes an int argument for ordinal grouping and rearranging the order
67
+ @mixin box-ordinal-group(
68
+ $group: $default-ordinal-flex-group
69
+ ) {
70
+ @include experimental(box-ordinal-group, $group,
71
+ -moz, -webkit, not -o, not -ms, not -khtml, official
72
+ );
73
+ }
74
+
75
+ // Box direction default value
76
+ $default-box-direction: normal !default;
77
+
78
+ // mixin for box-direction [ normal | reverse | inherit ]
79
+ @mixin box-direction(
80
+ $direction: $default-box-direction
81
+ ) {
82
+ $direction: unquote($direction);
83
+ @include experimental(box-direction, $direction,
84
+ -moz, -webkit, not -o, not -ms, not -khtml, official
85
+ );
86
+ }
87
+
88
+ // default for box lines
89
+ $default-box-lines: single !default;
90
+
91
+ // mixin for box lines [ single | multiple ]
92
+ @mixin box-lines(
93
+ $lines: $default-box-lines
94
+ ) {
95
+ $lines: unquote($lines);
96
+ @include experimental(box-lines, $lines,
97
+ -moz, -webkit, not -o, not -ms, not -khtml, official
98
+ );
99
+ }
100
+
101
+ // default for box pack
102
+ $default-box-pack: start !default;
103
+
104
+ // mixin for box pack [ start | end | center | justify ]
105
+ @mixin box-pack(
106
+ $pack: $default-box-pack
107
+ ) {
108
+ $pack: unquote($pack);
109
+ @include experimental(box-pack, $pack,
110
+ -moz, -webkit, not -o, not -ms, not -khtml, official
111
+ );
112
+ }
@@ -0,0 +1,55 @@
1
+ @import "shared";
2
+
3
+ // Specify the number of columns
4
+ @mixin column-count($n) {
5
+ @include experimental(column-count, $n,
6
+ -moz, -webkit, -o, not -ms, not -khtml, official
7
+ );
8
+ }
9
+
10
+ // Specify the gap between columns e.g. `20px`
11
+ @mixin column-gap($u) {
12
+ @include experimental(column-gap, $u,
13
+ -moz, -webkit, -o, not -ms, not -khtml, official
14
+ );
15
+ }
16
+
17
+ // Specify the width of columns e.g. `100px`
18
+ @mixin column-width($u) {
19
+ @include experimental(column-width, $u,
20
+ -moz, -webkit, -o, not -ms, not -khtml, official
21
+ );
22
+ }
23
+
24
+ // Specify the width of the rule between columns e.g. `1px`
25
+ @mixin column-rule-width($w) {
26
+ @include experimental(rule-width, $w,
27
+ -moz, -webkit, -o, not -ms, not -khtml, official
28
+ );
29
+ }
30
+
31
+ // Specify the style of the rule between columns e.g. `dotted`.
32
+ // This works like border-style.
33
+ @mixin column-rule-style($s) {
34
+ @include experimental(rule-style, unquote($s),
35
+ -moz, -webkit, -o, not -ms, not -khtml, official
36
+ );
37
+ }
38
+
39
+ // Specify the style of the rule between columns e.g. `dotted`.
40
+ // This works like border-color.
41
+
42
+ @mixin column-rule-color($c) {
43
+ @include experimental(rule-color, unquote($s),
44
+ -moz, -webkit, -o, not -ms, not -khtml, official
45
+ );
46
+ }
47
+
48
+ // Mixin encompassing all column rule rules
49
+ // For example:
50
+ // +column-rule(1px, solid, #c00)
51
+ @mixin column-rule($w, $s: solid, $c: black) {
52
+ @include experimental(column-rule, $w $s $c,
53
+ -moz, -webkit, -o, not -ms, not -khtml, official
54
+ );
55
+ }
@@ -0,0 +1,33 @@
1
+ @import "shared";
2
+
3
+ // Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera.
4
+ //
5
+ // * $name is required, arbitrary, and what you will use in font stacks.
6
+ // * $font-files is required using font-files('relative/location', 'format').
7
+ // for best results use this order: woff, opentype/truetype, svg
8
+ // * $eot is required by IE, and is a relative location of the eot file.
9
+
10
+ @mixin font-face($name, $font-files, $eot: false, $postscript: false, $style: false) {
11
+ @if $postscript or $style {
12
+ @warn "The $postscript and $style variables have been deprecated in favor of the Paul Irish smiley bulletproof technique.";
13
+ }
14
+ @font-face {
15
+ font-family: quote($name);
16
+ @if $eot {
17
+ src: font-url($eot); }
18
+ src: local("☺"), $font-files;
19
+ }
20
+ }
21
+
22
+ // EXAMPLE
23
+ // +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "this.eot")
24
+ //
25
+ // will generate:
26
+ //
27
+ // @font-face {
28
+ // font-family: 'this name';
29
+ // src: url('fonts/this.eot');
30
+ // src: local("☺"),
31
+ // url('fonts/this.otf') format('woff'),
32
+ // url('fonts/this.woff') format('opentype');
33
+ // }
@@ -0,0 +1,82 @@
1
+ @import "shared";
2
+
3
+ // This yields a linear gradient spanning from top to bottom
4
+ //
5
+ // +linear-gradient(color-stops(white, black))
6
+ //
7
+ // This yields a linear gradient spanning from bottom to top
8
+ //
9
+ // +linear-gradient(color-stops(white, black), bottom)
10
+ //
11
+ // This yields a linear gradient spanning from left to right
12
+ //
13
+ // +linear-gradient(color-stops(white, black), left)
14
+ //
15
+ // This yields a linear gradient starting at white passing
16
+ // thru blue at 33% down and then to black
17
+ //
18
+ // +linear-gradient(color-stops(white, blue 33%, black))
19
+ //
20
+ // This yields a linear gradient starting at white passing
21
+ // thru blue at 33% down and then to black at 67% until the end
22
+ //
23
+ // +linear-gradient(color-stops(white, blue 33%, black 67%))
24
+ //
25
+ // This yields a linear gradient on top of a background image
26
+ //
27
+ // +linear-gradient(color_stops(white,black), top, image-url('noise.png'))
28
+ // Browsers Supported:
29
+ //
30
+ // - Chrome
31
+ // - Safari
32
+ // - Firefox 3.6
33
+
34
+ @mixin linear-gradient($color-stops, $start: top, $image: false) {
35
+ // Firefox's gradient api is nice.
36
+ // Webkit's gradient api sucks -- hence these backflips:
37
+ $background: unquote("");
38
+ @if $image { $background : $image + unquote(", "); }
39
+ $start: unquote($start);
40
+ $end: opposite-position($start);
41
+ @if $experimental-support-for-webkit {
42
+ background-image: #{$background}-webkit-gradient(linear, grad-point($start), grad-point($end), grad-color-stops($color-stops));
43
+ }
44
+ @if $experimental-support-for-mozilla {
45
+ background-image: #{$background}-moz-linear-gradient($start, $color-stops);
46
+ }
47
+ background-image: linear-gradient($start, $color-stops);
48
+ }
49
+
50
+ // Due to limitation's of webkit, the radial gradient mixin works best if you use
51
+ // pixel-based color stops.
52
+ //
53
+ // Examples:
54
+ //
55
+ // // Defaults to a centered, 100px radius gradient
56
+ // +radial-gradient(color-stops(#c00, #00c))
57
+ // // 100px radius gradient in the top left corner
58
+ // +radial-gradient(color-stops(#c00, #00c), top left)
59
+ // // Three colors, ending at 50px and passing thru #fff at 25px
60
+ // +radial-gradient(color-stops(#c00, #fff, #00c 50px))
61
+ // // a background image on top of the gradient
62
+ // // Requires an image with an alpha-layer.
63
+ // +radial-gradient(color_stops(#c00, #fff), top left, circle, image-url("noise.png")))
64
+ // Browsers Supported:
65
+ //
66
+ // - Chrome
67
+ // - Safari
68
+ // - Firefox 3.6
69
+
70
+ @mixin radial-gradient($color-stops, $center-position: center center, $image: false) {
71
+ $center-position: unquote($center-position);
72
+ $end-pos: grad-end-position($color-stops, true);
73
+ $background: unquote("");
74
+ @if $image { $background: $image + unquote(", "); }
75
+ @if $experimental-support-for-webkit {
76
+ background-image: #{$background}-webkit-gradient(radial, grad-point($center-position), 0, grad-point($center-position), $end-pos, grad-color-stops($color-stops));
77
+ }
78
+ @if $experimental-support-for-mozilla {
79
+ background-image: #{$background}-moz-radial-gradient($center-position, circle, $color-stops);
80
+ }
81
+ background-image: radial-gradient($center-position, circle, $color-stops);
82
+ }
@@ -0,0 +1,12 @@
1
+ @import "shared";
2
+
3
+ // Provides a cross-browser method to implement `display: inline-block;`
4
+
5
+ @mixin inline-block {
6
+ display: -moz-inline-box;
7
+ -moz-box-orient: vertical;
8
+ display: inline-block;
9
+ vertical-align: middle;
10
+ *display: inline;
11
+ *vertical-align: auto;
12
+ }