frontsau 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +30 -0
- data/Rakefile +2 -0
- data/bin/frontsau +15 -0
- data/bin/frontsau-phaml-compiler +35 -0
- data/example/.frontsau +12 -0
- data/example/assets/head.jpg +0 -0
- data/example/assets/script.js +4 -0
- data/example/assets/style.css +6 -0
- data/example/css/includes.sass +2 -0
- data/example/css/style.sass +6 -0
- data/example/image/head.jpg +0 -0
- data/example/index.html +0 -0
- data/example/js/script.coffee +1 -0
- data/frontsau.gemspec +41 -0
- data/lib/Phamlp/Phamlp.php +72 -0
- data/lib/Phamlp/PhamlpException.php +31 -0
- data/lib/Phamlp/haml/HamlException.php +29 -0
- data/lib/Phamlp/haml/HamlHelpers.php +199 -0
- data/lib/Phamlp/haml/HamlParser.php +1250 -0
- data/lib/Phamlp/haml/filters/HamlBaseFilter.php +30 -0
- data/lib/Phamlp/haml/filters/HamlCdataFilter.php +29 -0
- data/lib/Phamlp/haml/filters/HamlCssFilter.php +30 -0
- data/lib/Phamlp/haml/filters/HamlEscapedFilter.php +32 -0
- data/lib/Phamlp/haml/filters/HamlJavascriptFilter.php +31 -0
- data/lib/Phamlp/haml/filters/HamlPhpFilter.php +27 -0
- data/lib/Phamlp/haml/filters/HamlPlainFilter.php +28 -0
- data/lib/Phamlp/haml/filters/HamlPreserveFilter.php +29 -0
- data/lib/Phamlp/haml/filters/HamlSassFilter.php +37 -0
- data/lib/Phamlp/haml/filters/HamlScssFilter.php +37 -0
- data/lib/Phamlp/haml/filters/_HamlMarkdownFilter.php +50 -0
- data/lib/Phamlp/haml/filters/_HamlTextileFilter.php +50 -0
- data/lib/Phamlp/haml/messages/_i18n.php +32 -0
- data/lib/Phamlp/haml/messages/de.php +32 -0
- data/lib/Phamlp/haml/messages/fr.php +32 -0
- data/lib/Phamlp/haml/renderers/HamlCompactRenderer.php +32 -0
- data/lib/Phamlp/haml/renderers/HamlCompressedRenderer.php +48 -0
- data/lib/Phamlp/haml/renderers/HamlExpandedRenderer.php +58 -0
- data/lib/Phamlp/haml/renderers/HamlNestedRenderer.php +77 -0
- data/lib/Phamlp/haml/renderers/HamlRenderer.php +137 -0
- data/lib/Phamlp/haml/tree/HamlCodeBlockNode.php +58 -0
- data/lib/Phamlp/haml/tree/HamlCommentNode.php +41 -0
- data/lib/Phamlp/haml/tree/HamlDoctypeNode.php +27 -0
- data/lib/Phamlp/haml/tree/HamlElementNode.php +52 -0
- data/lib/Phamlp/haml/tree/HamlFilterNode.php +50 -0
- data/lib/Phamlp/haml/tree/HamlHelperNode.php +73 -0
- data/lib/Phamlp/haml/tree/HamlNode.php +253 -0
- data/lib/Phamlp/haml/tree/HamlNodeExceptions.php +19 -0
- data/lib/Phamlp/haml/tree/HamlRootNode.php +58 -0
- data/lib/Phamlp/sass/SassException.php +29 -0
- data/lib/Phamlp/sass/SassFile.php +164 -0
- data/lib/Phamlp/sass/SassParser.php +848 -0
- data/lib/Phamlp/sass/extensions/compass/config.php +65 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/_blueprint.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +101 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_debug.scss +11 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +86 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss +68 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_grid.scss +249 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_ie.scss +109 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +57 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +37 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +147 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_print.scss +93 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_reset.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +133 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +54 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_typography.scss +104 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +37 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +58 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/grid.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/ie.sass +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/manifest.rb +30 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/partials/_base.sass +10 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/print.sass +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/screen.sass +12 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/manifest.rb +17 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/manifest.rb +23 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/grid.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/manifest.rb +30 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/print.sass +8 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/screen.sass +45 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/grid.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/ie.sass +16 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/manifest.rb +33 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_base.sass +10 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_form.sass +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_page.sass +18 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass +38 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/print.sass +5 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/screen.sass +14 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/_compass.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_css3.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_reset.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_utilities.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-size.scss +14 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box.scss +112 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_columns.scss +55 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_font-face.scss +33 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_gradient.scss +82 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_opacity.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_shared.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transform.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transition.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/reset/_utilities.scss +133 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_general.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_links.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_lists.scss +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_print.scss +17 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_tables.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_text.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/ellipsis.sass +9 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/manifest.rb +27 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/manifest.rb +20 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/ie.sass +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/manifest.rb +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/print.sass +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/screen.sass +7 -0
- data/lib/Phamlp/sass/extensions/compass/functions/colourStops.php +268 -0
- data/lib/Phamlp/sass/extensions/compass/functions/constants.php +44 -0
- data/lib/Phamlp/sass/extensions/compass/functions/fontFiles.php +30 -0
- data/lib/Phamlp/sass/extensions/compass/functions/imageSize.php +39 -0
- data/lib/Phamlp/sass/extensions/compass/functions/inlineData.php +84 -0
- data/lib/Phamlp/sass/extensions/compass/functions/lists.php +47 -0
- data/lib/Phamlp/sass/extensions/compass/functions/selectors.php +128 -0
- data/lib/Phamlp/sass/extensions/compass/functions/urls.php +143 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/_compass.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_css3.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_layout.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_reset.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_utilities.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-size.scss +14 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box.scss +112 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_columns.scss +55 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_font-face.scss +33 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_gradient.scss +96 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_opacity.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_shared.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transform.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transition.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/reset/_utilities.scss +133 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_general.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_links.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_lists.scss +4 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_print.scss +17 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_tables.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_text.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
- data/lib/Phamlp/sass/messages/_i18n.php +122 -0
- data/lib/Phamlp/sass/messages/de.php +70 -0
- data/lib/Phamlp/sass/messages/fr.php +70 -0
- data/lib/Phamlp/sass/renderers/SassCompactRenderer.php +130 -0
- data/lib/Phamlp/sass/renderers/SassCompressedRenderer.php +102 -0
- data/lib/Phamlp/sass/renderers/SassExpandedRenderer.php +62 -0
- data/lib/Phamlp/sass/renderers/SassNestedRenderer.php +61 -0
- data/lib/Phamlp/sass/renderers/SassRenderer.php +51 -0
- data/lib/Phamlp/sass/script/SassScriptFunction.php +169 -0
- data/lib/Phamlp/sass/script/SassScriptFunctions.php +751 -0
- data/lib/Phamlp/sass/script/SassScriptLexer.php +114 -0
- data/lib/Phamlp/sass/script/SassScriptOperation.php +151 -0
- data/lib/Phamlp/sass/script/SassScriptParser.php +192 -0
- data/lib/Phamlp/sass/script/SassScriptParserExceptions.php +40 -0
- data/lib/Phamlp/sass/script/SassScriptVariable.php +57 -0
- data/lib/Phamlp/sass/script/literals/SassBoolean.php +67 -0
- data/lib/Phamlp/sass/script/literals/SassColour.php +886 -0
- data/lib/Phamlp/sass/script/literals/SassLiteral.php +359 -0
- data/lib/Phamlp/sass/script/literals/SassLiteralExceptions.php +47 -0
- data/lib/Phamlp/sass/script/literals/SassNumber.php +503 -0
- data/lib/Phamlp/sass/script/literals/SassString.php +106 -0
- data/lib/Phamlp/sass/tree/SassCommentNode.php +64 -0
- data/lib/Phamlp/sass/tree/SassContext.php +120 -0
- data/lib/Phamlp/sass/tree/SassDebugNode.php +84 -0
- data/lib/Phamlp/sass/tree/SassDirectiveNode.php +76 -0
- data/lib/Phamlp/sass/tree/SassElseNode.php +28 -0
- data/lib/Phamlp/sass/tree/SassExtendNode.php +47 -0
- data/lib/Phamlp/sass/tree/SassForNode.php +99 -0
- data/lib/Phamlp/sass/tree/SassIfNode.php +95 -0
- data/lib/Phamlp/sass/tree/SassImportNode.php +69 -0
- data/lib/Phamlp/sass/tree/SassMixinDefinitionNode.php +88 -0
- data/lib/Phamlp/sass/tree/SassMixinNode.php +91 -0
- data/lib/Phamlp/sass/tree/SassNode.php +342 -0
- data/lib/Phamlp/sass/tree/SassNodeExceptions.php +117 -0
- data/lib/Phamlp/sass/tree/SassPropertyNode.php +239 -0
- data/lib/Phamlp/sass/tree/SassRootNode.php +100 -0
- data/lib/Phamlp/sass/tree/SassRuleNode.php +337 -0
- data/lib/Phamlp/sass/tree/SassVariableNode.php +90 -0
- data/lib/Phamlp/sass/tree/SassWhileNode.php +64 -0
- data/lib/frontsau/assets/rack.rb +12 -0
- data/lib/frontsau/assets/sprockets.rb +59 -0
- data/lib/frontsau/assets/static_assets_compiler.rb +50 -0
- data/lib/frontsau/assets/url_rewriter.rb +22 -0
- data/lib/frontsau/assets/watcher.rb +60 -0
- data/lib/frontsau/thor_app.rb +118 -0
- data/lib/frontsau/version.rb +3 -0
- data/lib/frontsau.rb +64 -0
- metadata +578 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
<?php
|
2
|
+
/* SVN FILE: $Id: SassBoolean.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
|
3
|
+
/**
|
4
|
+
* Compass extension configuration class file.
|
5
|
+
* @author Chris Yates <chris.l.yates@gmail.com>
|
6
|
+
* @copyright Copyright (c) 2010 PBM Web Development
|
7
|
+
* @license http://phamlp.googlecode.com/files/license.txt
|
8
|
+
* @package PHamlP
|
9
|
+
* @subpackage Sass.extensions.compass
|
10
|
+
*/
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Compass extension configuration class.
|
14
|
+
* @package PHamlP
|
15
|
+
* @subpackage Sass.extensions.compass
|
16
|
+
*/
|
17
|
+
class SassExtentionsCompassConfig {
|
18
|
+
public static $config;
|
19
|
+
private static $defaultConfig = array(
|
20
|
+
'project_path' => '',
|
21
|
+
'http_path' => '/',
|
22
|
+
'css_dir' => 'css',
|
23
|
+
'css_path' => '',
|
24
|
+
'http_css_path' => '',
|
25
|
+
'fonts_dir' => 'fonts',
|
26
|
+
'fonts_path' => '',
|
27
|
+
'http_fonts_path' => '',
|
28
|
+
'images_dir' => 'images',
|
29
|
+
'images_path' => '',
|
30
|
+
'http_images_path' => '',
|
31
|
+
'javascripts_dir' => 'javascripts',
|
32
|
+
'javascripts_path' => '',
|
33
|
+
'http_javascripts_path' => '',
|
34
|
+
'relative_assets' => true,
|
35
|
+
);
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Sets configuration settings or returns a configuration setting.
|
39
|
+
* @param mixed array: configuration settings; string: configuration setting to return
|
40
|
+
* @return string configuration setting. Null if setting does not exist.
|
41
|
+
*/
|
42
|
+
public function config($config) {
|
43
|
+
if (is_array($config)) {
|
44
|
+
self::$config = array_merge(self::$defaultConfig, $config);
|
45
|
+
self::setDefaults();
|
46
|
+
}
|
47
|
+
elseif (is_string($config) && isset(self::$config[$config])) {
|
48
|
+
return self::$config[$config];
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Sets default values for paths not specified
|
54
|
+
*/
|
55
|
+
private static function setDefaults() {
|
56
|
+
foreach (array('css', 'images', 'fonts', 'javascripts') as $asset) {
|
57
|
+
if (empty(self::$config[$asset.'_path'])) {
|
58
|
+
self::$config[$asset.'_path'] = self::$config['project_path'].DIRECTORY_SEPARATOR.self::$config[$asset.'_dir'];
|
59
|
+
}
|
60
|
+
if (empty(self::$config['http_'.$asset.'_path'])) {
|
61
|
+
self::$config['http_'.$asset.'_path'] = self::$config['http_path'].self::$config[$asset.'_dir'];
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
@import "blueprint/colors";
|
2
|
+
@import "blueprint/grid";
|
3
|
+
@import "blueprint/typography";
|
4
|
+
@import "blueprint/utilities";
|
5
|
+
@import "blueprint/form";
|
6
|
+
@import "blueprint/interaction";
|
7
|
+
@import "blueprint/debug";
|
8
|
+
@import "blueprint/print";
|
9
|
+
@import "blueprint/ie";
|
10
|
+
|
11
|
+
// ### Usage examples:
|
12
|
+
//
|
13
|
+
// As a top-level mixin, apply to any page that includes the stylesheet:
|
14
|
+
// <pre class="source-code sass">
|
15
|
+
// +blueprint
|
16
|
+
// </pre>
|
17
|
+
//
|
18
|
+
// Scoped by a presentational class:
|
19
|
+
// <pre class="source-code sass">
|
20
|
+
// body.blueprint
|
21
|
+
// +blueprint(true)
|
22
|
+
// </pre>
|
23
|
+
//
|
24
|
+
// Scoped by semantic selectors:
|
25
|
+
// <pre class="source-code sass">
|
26
|
+
// body#page-1, body#page-2, body.a-special-page-type
|
27
|
+
// +blueprint(true)
|
28
|
+
// </pre>
|
29
|
+
//
|
30
|
+
// #### Deprecated:
|
31
|
+
// You use to be able to pass the body selector as the first argument when used as a top-level mixin
|
32
|
+
// <pre class="source-code sass">
|
33
|
+
// +blueprint("body#page-1, body#page-2, body.a-special-page-type")
|
34
|
+
// </pre>
|
35
|
+
|
36
|
+
@mixin blueprint($body_selector: body) {
|
37
|
+
//@doc off
|
38
|
+
@if not ($body_selector == "body" or $body_selector == true) {
|
39
|
+
@warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint, pass true as the first argument and mix it into #{$body_selector}."; }
|
40
|
+
//@doc on
|
41
|
+
@include blueprint-typography($body_selector);
|
42
|
+
@include blueprint-utilities;
|
43
|
+
@include blueprint-grid;
|
44
|
+
@include blueprint-debug;
|
45
|
+
@include blueprint-interaction;
|
46
|
+
@include blueprint-form;
|
47
|
+
}
|
data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.scss
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
@import "compass/css3/inline-block";
|
2
|
+
@import "compass/utilities/general/float";
|
3
|
+
|
4
|
+
// Button Font
|
5
|
+
$blueprint_button_font_family: unquote('"Lucida Grande", Tahoma, Arial, Verdana, sans-serif') !default;
|
6
|
+
|
7
|
+
// Default Button Colors
|
8
|
+
$blueprint_button_border_color: #dedede !default;
|
9
|
+
$blueprint_button_background_color: #f5f5f5 !default;
|
10
|
+
$blueprint_button_font_color: #565656 !default;
|
11
|
+
|
12
|
+
// Default Button Hover Colors
|
13
|
+
$blueprint_button_hover_border_color: #c2e1ef !default;
|
14
|
+
$blueprint_button_hover_background_color: #dff4ff !default;
|
15
|
+
$blueprint_button_hover_font_color: #336699 !default;
|
16
|
+
|
17
|
+
// Default Button Active Colors
|
18
|
+
$blueprint_button_active_border_color: #6299c5 !default;
|
19
|
+
$blueprint_button_active_background_color: #6299c5 !default;
|
20
|
+
$blueprint_button_active_font_color: white !default;
|
21
|
+
|
22
|
+
//**
|
23
|
+
// Sets the colors for a button
|
24
|
+
// @param border_highlight_color
|
25
|
+
// The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
|
26
|
+
@mixin button-colors(
|
27
|
+
$font_color: $blueprint_button_font_color,
|
28
|
+
$bg_color: $blueprint_button_background_color,
|
29
|
+
$border_color: $blueprint_button_border_color,
|
30
|
+
$border_highlight_color: $border_color + #101010
|
31
|
+
) {
|
32
|
+
background-color: $bg_color;
|
33
|
+
border-color: $border_highlight_color $border_color $border_color $border_highlight_color;
|
34
|
+
color: $font_color;
|
35
|
+
}
|
36
|
+
|
37
|
+
//**
|
38
|
+
// Sets the colors for a button in the active state
|
39
|
+
// @param border_highlight_color
|
40
|
+
// The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
|
41
|
+
@mixin button-active-colors(
|
42
|
+
$font_color: $blueprint_button_active_font_color,
|
43
|
+
$bg_color: $blueprint_button_active_background_color,
|
44
|
+
$border_color: $blueprint_button_active_border_color,
|
45
|
+
$border_highlight_color: $border_color + #101010
|
46
|
+
) {
|
47
|
+
&:active {
|
48
|
+
@include button-colors($font_color, $bg_color, $border_color, $border_highlight_color);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
//**
|
53
|
+
// Sets the colors for a button in the hover state.
|
54
|
+
// @param border_highlight_color
|
55
|
+
// The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
|
56
|
+
@mixin button-hover-colors(
|
57
|
+
$font_color: $blueprint_button_hover_font_color,
|
58
|
+
$bg_color: $blueprint_button_hover_background_color,
|
59
|
+
$border_color: $blueprint_button_hover_border_color,
|
60
|
+
$border_highlight_color: $border_color + #101010
|
61
|
+
) {
|
62
|
+
&:hover {
|
63
|
+
@include button-colors($font_color, $bg_color, $border_color, $border_highlight_color);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin button-base($float: false) {
|
68
|
+
@if $float { @include float($float); display: block; }
|
69
|
+
@else { @include inline-block; }
|
70
|
+
margin: 0.7em 0.5em 0.7em 0;
|
71
|
+
border-width: 1px; border-style: solid;
|
72
|
+
font-family: $blueprint_button_font_family; font-size: 100%; line-height: 130%; font-weight: bold;
|
73
|
+
text-decoration: none;
|
74
|
+
cursor: pointer;
|
75
|
+
img {
|
76
|
+
margin: 0 3px -3px 0 !important;
|
77
|
+
padding: 0;
|
78
|
+
border: none;
|
79
|
+
width: 16px;
|
80
|
+
height: 16px;
|
81
|
+
float: none;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
@mixin anchor-button($float: false) {
|
86
|
+
@include button-base($float);
|
87
|
+
padding: 5px 10px 5px 7px;
|
88
|
+
}
|
89
|
+
|
90
|
+
@mixin button-button($float: false) {
|
91
|
+
@include button-base($float);
|
92
|
+
width: auto;
|
93
|
+
overflow: visible;
|
94
|
+
padding: 4px 10px 3px 7px;
|
95
|
+
&[type] {
|
96
|
+
padding: 4px 10px 4px 7px;
|
97
|
+
line-height: 17px; }
|
98
|
+
*:first-child+html &[type] {
|
99
|
+
padding: 4px 10px 3px 7px;
|
100
|
+
}
|
101
|
+
}
|
data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_colors.scss
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
$font_color: #333333 !default;
|
2
|
+
$quiet_color: $font_color + #333333 !default;
|
3
|
+
$loud_color: $font_color - #222222 !default;
|
4
|
+
$header_color: $font_color - #111111 !default;
|
5
|
+
$alt_text_color: #666666 !default;
|
6
|
+
$blueprint_background_color: #eeeeee !default;
|
7
|
+
|
8
|
+
$link_color: #000099 !default;
|
9
|
+
$link_hover_color: black !default;
|
10
|
+
$link_focus_color: $link_hover_color !default;
|
11
|
+
$link_active_color: $link_color + #cc0000 !default;
|
12
|
+
$link_visited_color: $link_color - #333333 !default;
|
13
|
+
|
14
|
+
$feedback_border_color: #dddddd !default;
|
15
|
+
$success_color: #264409 !default;
|
16
|
+
$success_bg_color: #e6efc2 !default;
|
17
|
+
$success_border_color: #c6d880 !default;
|
18
|
+
$notice_color: #514721 !default;
|
19
|
+
$notice_bg_color: #fff6bf !default;
|
20
|
+
$notice_border_color: #ffd324 !default;
|
21
|
+
$error_color: #8a1f11 !default;
|
22
|
+
$error_bg_color: #fbe3e4 !default;
|
23
|
+
$error_border_color: #fbc2c4 !default;
|
24
|
+
|
25
|
+
$highlight_color: yellow !default;
|
26
|
+
$added_color: white !default;
|
27
|
+
$added_bg_color: #006600 !default;
|
28
|
+
$removed_color: white !default;
|
29
|
+
$removed_bg_color: #990000 !default;
|
30
|
+
|
31
|
+
$blueprint_table_header_color: #c3d9ff !default;
|
32
|
+
$blueprint_table_stripe_color: #e5ecf9 !default;
|
data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_debug.scss
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
@mixin showgrid($image: "grid.png") {
|
2
|
+
background: image_url($image);
|
3
|
+
}
|
4
|
+
|
5
|
+
@mixin blueprint-debug($grid_image: unquote("grid.png")) {
|
6
|
+
// Use this class on any column or container to see the grid.
|
7
|
+
// TODO: prefix this with the project path.
|
8
|
+
.showgrid {
|
9
|
+
@include showgrid($grid_image);
|
10
|
+
}
|
11
|
+
}
|
data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
@import "typography";
|
2
|
+
|
3
|
+
$alternate-text-font : "Warnock Pro", "Goudy Old Style", "Palatino", "Book Antiqua", Georgia, serif !default;
|
4
|
+
// To install the fancy type plugin:
|
5
|
+
// 1. import the fancy_type module: @import blueprint/fancy_type
|
6
|
+
// 2. mixin +fancy-type to your project's body or at the top level of your stylesheet:
|
7
|
+
// body
|
8
|
+
// +fancy-type
|
9
|
+
|
10
|
+
@mixin fancy-type {
|
11
|
+
@include fancy-paragraphs;
|
12
|
+
.caps { @include caps; }
|
13
|
+
.dquo { @include dquo; }
|
14
|
+
.alt { @include alt; }
|
15
|
+
}
|
16
|
+
|
17
|
+
// Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
|
18
|
+
@mixin sibling-indentation {
|
19
|
+
text-indent: 2em;
|
20
|
+
margin-top: -1.5em;
|
21
|
+
/* Don't want this in forms. */
|
22
|
+
form & { text-indent: 0; }
|
23
|
+
}
|
24
|
+
|
25
|
+
// For great looking type, use this code instead of asdf:
|
26
|
+
// <span class="alt">asdf</span>
|
27
|
+
// Best used on prepositions and ampersands.
|
28
|
+
|
29
|
+
@mixin alt {
|
30
|
+
color: $alt-text-color;
|
31
|
+
font-family: $alternate-text-font;
|
32
|
+
font-style: italic;
|
33
|
+
font-weight: normal;
|
34
|
+
}
|
35
|
+
|
36
|
+
// For great looking quote marks in titles, replace "asdf" with:
|
37
|
+
// <span class="dquo">“</span>asdf”
|
38
|
+
// (That is, when the title starts with a quote mark).
|
39
|
+
// (You may have to change this value depending on your font size).
|
40
|
+
|
41
|
+
@mixin dquo($offset: 0.5em) {
|
42
|
+
margin-left: -$offset;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Reduced size type with incremental leading
|
46
|
+
// (http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
47
|
+
//
|
48
|
+
// This could be used for side notes. For smaller type, you don't necessarily want to
|
49
|
+
// follow the 1.5x vertical rhythm -- the line-height is too much.
|
50
|
+
//
|
51
|
+
// Using this mixin, reduces your font size and line-height so that for
|
52
|
+
// every four lines of normal sized type, there is five lines of the sidenote. eg:
|
53
|
+
//
|
54
|
+
// Arguments:
|
55
|
+
// `$font-size` - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
|
56
|
+
// `$base-font-size` - The base font size in pixels. Defaults to 12px
|
57
|
+
// `$old-line-height` - The old line height. Defaults to 1.5 times the base-font-size
|
58
|
+
|
59
|
+
@mixin incr(
|
60
|
+
$font-size: 10px,
|
61
|
+
$base-font-size: $blueprint-font-size,
|
62
|
+
$old-line-height: $base-font-size * 1.5
|
63
|
+
) {
|
64
|
+
font-size: 1em * $font-size / $base-font-size;
|
65
|
+
line-height: 1em * $old-line-height / $font-size * 4 / 5;
|
66
|
+
margin-bottom: 1.5em;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Surround uppercase words and abbreviations with this class.
|
70
|
+
// Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/]
|
71
|
+
|
72
|
+
@mixin caps {
|
73
|
+
font-variant: small-caps;
|
74
|
+
letter-spacing: 1px;
|
75
|
+
text-transform: lowercase;
|
76
|
+
font-size: 1.2em;
|
77
|
+
line-height: 1%;
|
78
|
+
font-weight: bold;
|
79
|
+
padding: 0 2px;
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin fancy-paragraphs {
|
83
|
+
p + p { @include sibling-indentation; }
|
84
|
+
p.incr,
|
85
|
+
.incr p { @include incr; }
|
86
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
@import "colors";
|
2
|
+
|
3
|
+
// Mixin for producing Blueprint "inline" forms. Should be used with the blueprint-form mixin.
|
4
|
+
@mixin blueprint-inline-form {
|
5
|
+
line-height: 3;
|
6
|
+
p {
|
7
|
+
margin-bottom: 0;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin blueprint-form {
|
12
|
+
@include blueprint-form-layout;
|
13
|
+
@include blueprint-form-borders;
|
14
|
+
@include blueprint-form-sizes;
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin blueprint-form-layout {
|
18
|
+
label { font-weight: bold; }
|
19
|
+
fieldset { padding: 1.4em; margin: 0 0 1.5em 0; }
|
20
|
+
legend { font-weight: bold; font-size: 1.2em; }
|
21
|
+
input {
|
22
|
+
&.text,
|
23
|
+
&.title,
|
24
|
+
&[type=email],
|
25
|
+
&[type=text],
|
26
|
+
&[type=password] { margin: 0.5em 0; background-color: white; padding: 5px; }
|
27
|
+
&.title { font-size: 1.5em; }
|
28
|
+
&[type=checkbox],
|
29
|
+
&.checkbox,
|
30
|
+
&[type=radio],
|
31
|
+
&.radio { position: relative; top: 0.25em; }
|
32
|
+
}
|
33
|
+
textarea { margin: 0.5em 0; padding: 5px; }
|
34
|
+
select { margin: 0.5em 0; }
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin blueprint-form-sizes
|
38
|
+
(
|
39
|
+
$input_width: 300px,
|
40
|
+
$textarea_width: 390px,
|
41
|
+
$textarea_height: 250px
|
42
|
+
) {
|
43
|
+
input {
|
44
|
+
&.text,
|
45
|
+
&.title,
|
46
|
+
&[type=email],
|
47
|
+
&[type=text],
|
48
|
+
&[type=password] { width: $input_width; }
|
49
|
+
}
|
50
|
+
textarea { width: $textarea_width; height: $textarea_height; }
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin blueprint-form-borders
|
54
|
+
(
|
55
|
+
$unfocused_border_color: #bbbbbb,
|
56
|
+
$focus_border_color: #666666,
|
57
|
+
$fieldset_border_color: #cccccc
|
58
|
+
) {
|
59
|
+
fieldset {
|
60
|
+
border: 1px solid $fieldset_border_color; }
|
61
|
+
input.text, input.title, input[type=email], input[type=text], input[type=password],
|
62
|
+
textarea, select {
|
63
|
+
border: 1px solid $unfocused_border_color;
|
64
|
+
&:focus {
|
65
|
+
border: 1px solid $focus_border_color;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,249 @@
|
|
1
|
+
// --------------------------------------------------------------
|
2
|
+
// SASS Gridification
|
3
|
+
// * Author: Chris Eppstein
|
4
|
+
// A SASS adaptation of Blueprint CSS
|
5
|
+
// * Version: 0.7.1 (2008-02-25)
|
6
|
+
// * Website: http://code.google.com/p/blueprintcss/
|
7
|
+
// Based on work by:
|
8
|
+
// * Lorin Tackett [lorintackett.com]
|
9
|
+
// * Olav Bjorkoy [bjorkoy.com]
|
10
|
+
// * Nathan Borror [playgroundblues.com]
|
11
|
+
// * Jeff Croft [jeffcroft.com]
|
12
|
+
// * Christian Metts [mintchaos.com]
|
13
|
+
// * Khoi Vinh [subtraction.com]
|
14
|
+
// Read more about using a grid here:
|
15
|
+
// * http://www.subtraction.com/2007/03/18/oh-yeeaahh
|
16
|
+
// --------------------------------------------------------------
|
17
|
+
|
18
|
+
@import "compass/utilities/general/float";
|
19
|
+
@import "compass/utilities/general/clearfix";
|
20
|
+
|
21
|
+
// The number of columns in the grid.
|
22
|
+
$blueprint_grid_columns: 24 !default;
|
23
|
+
|
24
|
+
// The width of a column
|
25
|
+
$blueprint_grid_width: 30px !default;
|
26
|
+
|
27
|
+
// The amount of margin between columns
|
28
|
+
$blueprint_grid_margin: 10px !default;
|
29
|
+
|
30
|
+
// The width of a column including the margin. With default settings this is `40px`.
|
31
|
+
$blueprint_grid_outer_width: $blueprint_grid_width + $blueprint_grid_margin;
|
32
|
+
|
33
|
+
// The width of the container. With default settings this is `950px`.
|
34
|
+
$blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns - $blueprint_grid_margin;
|
35
|
+
|
36
|
+
// Generates presentational class names that you can use
|
37
|
+
// in your html to layout your pages.
|
38
|
+
//
|
39
|
+
// #### Note:
|
40
|
+
// Best practices discourage using this mixin,
|
41
|
+
// but it is provided to support legacy websites
|
42
|
+
// and to test the sass port against blueprint's example pages.
|
43
|
+
|
44
|
+
@mixin blueprint-grid {
|
45
|
+
// A container should group all your columns
|
46
|
+
.container {
|
47
|
+
@include container; }
|
48
|
+
.column, #{enumerate("div.span", 1, $blueprint_grid_columns)} {
|
49
|
+
@include column-base; }
|
50
|
+
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
51
|
+
.last, div.last {
|
52
|
+
@include last; }
|
53
|
+
// Use these classes (or mixins) to set the width of a column.
|
54
|
+
@for $n from 1 to $blueprint_grid_columns {
|
55
|
+
.span-#{$n} {
|
56
|
+
@include span($n); } }
|
57
|
+
.span-#{$blueprint_grid_columns}, div.span-#{$blueprint_grid_columns} {
|
58
|
+
@include span($blueprint_grid_columns);
|
59
|
+
margin: 0; }
|
60
|
+
input, textarea, select {
|
61
|
+
@for $n from 1 through $blueprint_grid_columns {
|
62
|
+
&.span-#{$n} {
|
63
|
+
@include span($n, true); } } }
|
64
|
+
// Add these to a column to append empty cols.
|
65
|
+
@for $n from 1 to $blueprint_grid_columns {
|
66
|
+
.append-#{$n} {
|
67
|
+
@include append($n); } }
|
68
|
+
// Add these to a column to prepend empty cols.
|
69
|
+
@for $n from 1 to $blueprint_grid_columns {
|
70
|
+
.prepend-#{$n} {
|
71
|
+
@include prepend($n); } }
|
72
|
+
// Use these classes on an element to push it into the
|
73
|
+
// next column, or to pull it into the previous column.
|
74
|
+
#{enumerate(".pull", 1, $blueprint_grid_columns)} {
|
75
|
+
@include pull-base; }
|
76
|
+
@for $n from 1 through $blueprint_grid_columns {
|
77
|
+
.pull-#{$n} {
|
78
|
+
@include pull-margins($n); } }
|
79
|
+
#{enumerate(".push", 1, $blueprint_grid_columns)} {
|
80
|
+
@include push-base; }
|
81
|
+
@for $n from 1 through $blueprint_grid_columns {
|
82
|
+
.push-#{$n} {
|
83
|
+
@include push-margins($n); } }
|
84
|
+
.prepend-top {
|
85
|
+
@include prepend-top; }
|
86
|
+
.append-bottom {
|
87
|
+
@include append-bottom; } }
|
88
|
+
|
89
|
+
// A container for your columns.
|
90
|
+
//
|
91
|
+
// #### Note:
|
92
|
+
// If you use this mixin without the class and want to support ie6
|
93
|
+
// you must set text-align left on your container element in an IE stylesheet.
|
94
|
+
@mixin container {
|
95
|
+
width: $blueprint_container_size;
|
96
|
+
margin: 0 auto;
|
97
|
+
@include clearfix; }
|
98
|
+
|
99
|
+
// The last column in a row needs this mixin or it will end up
|
100
|
+
// on the next row in some browsers.
|
101
|
+
@mixin last {
|
102
|
+
margin-right: 0; }
|
103
|
+
|
104
|
+
// Use this mixins to set the width of n columns.
|
105
|
+
@mixin column($n, $last: false) {
|
106
|
+
@include column-base($last);
|
107
|
+
@include span($n); }
|
108
|
+
|
109
|
+
// Set only the width of an element to align it with the grid.
|
110
|
+
// Most of the time you'll want to use `+column` instead.
|
111
|
+
//
|
112
|
+
// This mixin is especially useful for aligning tables to the grid.
|
113
|
+
@mixin span($n, $override: false) {
|
114
|
+
$width: $blueprint_grid_width * $n + $blueprint_grid_margin * ($n - 1);
|
115
|
+
@if $override {
|
116
|
+
width: $width !important; }
|
117
|
+
@else {
|
118
|
+
width: $width; } }
|
119
|
+
|
120
|
+
// The basic set of styles needed to make an element
|
121
|
+
// behave like a column:
|
122
|
+
//
|
123
|
+
// * floated to left
|
124
|
+
// * gutter margin on the right (unless the last column)
|
125
|
+
// * Some IE fixes
|
126
|
+
//
|
127
|
+
// #### Note:
|
128
|
+
// This mixin gets applied automatically when using `+column`
|
129
|
+
// so you probably don't need to use it directly unless
|
130
|
+
// you need to deviate from the grid or are trying
|
131
|
+
// to reduce the amount of generated CSS.
|
132
|
+
@mixin column-base($last: false) {
|
133
|
+
@include float-left;
|
134
|
+
@if $last {
|
135
|
+
@include last; }
|
136
|
+
@else {
|
137
|
+
margin-right: $blueprint_grid_margin; }
|
138
|
+
* html & {
|
139
|
+
overflow-x: hidden; } }
|
140
|
+
|
141
|
+
// Mixin to a column to append n empty columns to the right
|
142
|
+
// by adding right padding to the column.
|
143
|
+
@mixin append($n) {
|
144
|
+
padding-right: $blueprint_grid_outer_width * $n; }
|
145
|
+
|
146
|
+
// Mixin to a column to append n empty columns to the left
|
147
|
+
// by adding left padding to the column.
|
148
|
+
@mixin prepend($n) {
|
149
|
+
padding-left: $blueprint_grid_outer_width * $n; }
|
150
|
+
|
151
|
+
// Adds trailing margin.
|
152
|
+
@mixin append-bottom($amount: 1.5em) {
|
153
|
+
margin-bottom: $amount; }
|
154
|
+
|
155
|
+
// Adds leading margin.
|
156
|
+
@mixin prepend-top($amount: 1.5em) {
|
157
|
+
margin-top: $amount; }
|
158
|
+
|
159
|
+
// Base styles that make it possible to pull an element to the left.
|
160
|
+
// #### Note:
|
161
|
+
// This mixin gets applied automatically when using `+pull`
|
162
|
+
// so you probably don't need to use it directly unless
|
163
|
+
// you need to deviate from the grid or are trying
|
164
|
+
// to reduce the amount of generated CSS.
|
165
|
+
@mixin pull-base {
|
166
|
+
@include float-left;
|
167
|
+
position: relative; }
|
168
|
+
|
169
|
+
// The amount of pulling for element to the left.
|
170
|
+
// #### Note:
|
171
|
+
// This mixin gets applied automatically when using `+pull`
|
172
|
+
// so you probably don't need to use it directly unless
|
173
|
+
// you need to deviate from the grid or are trying
|
174
|
+
// to reduce the amount of generated CSS.
|
175
|
+
@mixin pull-margins($n, $last: false) {
|
176
|
+
@if $last {
|
177
|
+
margin-left: -$blueprint_grid_outer_width * $n + $blueprint_grid_margin; }
|
178
|
+
@else {
|
179
|
+
margin-left: -$blueprint_grid_outer_width * $n; } }
|
180
|
+
|
181
|
+
// Moves a column `n` columns to the left.
|
182
|
+
//
|
183
|
+
// This mixin can also be used to change the display order of columns.
|
184
|
+
//
|
185
|
+
// If pulling past the last (visually) element in a row,
|
186
|
+
// pass `true` as the second argument so the calculations can adjust
|
187
|
+
// accordingly.
|
188
|
+
|
189
|
+
// For example:
|
190
|
+
//
|
191
|
+
// HTML:
|
192
|
+
// <pre class="source-code html">
|
193
|
+
// <div id="one">One</div>
|
194
|
+
// <div id="two">Two</div>
|
195
|
+
// </pre>
|
196
|
+
// Sass:
|
197
|
+
// <pre class="source-code sass">
|
198
|
+
// #one
|
199
|
+
// +column(18, true)
|
200
|
+
// +prepend(6)
|
201
|
+
// #two
|
202
|
+
// +column(6)
|
203
|
+
// +pull(18, true)
|
204
|
+
// </pre>
|
205
|
+
@mixin pull($n, $last: false) {
|
206
|
+
@include pull-base;
|
207
|
+
@include pull-margins($n, $last); }
|
208
|
+
|
209
|
+
@mixin push-base {
|
210
|
+
@include float-right;
|
211
|
+
position: relative; }
|
212
|
+
|
213
|
+
@mixin push-margins($n) {
|
214
|
+
margin: 0 (-$blueprint_grid_outer_width * $n) 1.5em $blueprint_grid_outer_width * $n; }
|
215
|
+
|
216
|
+
// mixin to a column to push it n columns to the right
|
217
|
+
@mixin push($n) {
|
218
|
+
@include push-base;
|
219
|
+
@include push-margins($n); }
|
220
|
+
|
221
|
+
// Border on right hand side of a column.
|
222
|
+
@mixin border($border_color: #eeeeee, $border_width: 1px) {
|
223
|
+
padding-right: $blueprint_grid_margin / 2 - $border_width;
|
224
|
+
margin-right: $blueprint_grid_margin / 2;
|
225
|
+
border-right: #{$border_width} solid #{$border_color}; }
|
226
|
+
|
227
|
+
// Border with more whitespace, spans one column.
|
228
|
+
@mixin colborder($border_color: #eeeeee, $border_width: 1px) {
|
229
|
+
padding-right: floor(($blueprint_grid_width + 2 * $blueprint_grid_margin - $border_width) / 2);
|
230
|
+
margin-right: ceil(($blueprint_grid_width + 2 * $blueprint_grid_margin - $border_width) / 2);
|
231
|
+
border-right: #{$border_width} solid #{$border_color}; }
|
232
|
+
|
233
|
+
// Mixin this to an hr to make a horizontal ruler across a column.
|
234
|
+
@mixin colruler($border_color: #dddddd) {
|
235
|
+
background: $border_color;
|
236
|
+
color: $border_color;
|
237
|
+
clear: both;
|
238
|
+
float: none;
|
239
|
+
width: 100%;
|
240
|
+
height: 0.1em;
|
241
|
+
margin: 0 0 1.45em;
|
242
|
+
border: none; }
|
243
|
+
|
244
|
+
// Mixin this to an hr to make a horizontal spacer across a column.
|
245
|
+
@mixin colspacer {
|
246
|
+
@include colruler;
|
247
|
+
background: white;
|
248
|
+
color: white;
|
249
|
+
visibility: hidden; }
|