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,143 @@
|
|
1
|
+
<?php
|
2
|
+
/* SVN FILE: $Id: SassBoolean.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
|
3
|
+
/**
|
4
|
+
* Compass extension SassScript urls functions 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.functions
|
10
|
+
*/
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Compass extension SassScript urls functions class.
|
14
|
+
* A collection of functions for use in SassSCript.
|
15
|
+
* @package PHamlP
|
16
|
+
* @subpackage Sass.extensions.compass.functions
|
17
|
+
*/
|
18
|
+
class SassExtentionsCompassFunctionsUrls {
|
19
|
+
public function stylesheet_url($path, $only_path = null) {
|
20
|
+
$path = $path->value; # get to the string value of the literal.
|
21
|
+
|
22
|
+
# Compute the $path to the stylesheet, either root relative or stylesheet relative
|
23
|
+
# or nil if the http_images_path is not set in the configuration.
|
24
|
+
if (SassExtentionsCompassConfig::config('relative_assets'))
|
25
|
+
$http_css_path = self::compute_relative_path(SassExtentionsCompassConfig::config('css_path'));
|
26
|
+
elseif (SassExtentionsCompassConfig::config('http_css_path'))
|
27
|
+
$http_css_path = SassExtentionsCompassConfig::config('http_css_path');
|
28
|
+
else
|
29
|
+
$http_css_path = SassExtentionsCompassConfig::config('css_dir');
|
30
|
+
|
31
|
+
return new SassString(self::clean("$http_css_path/$path", $only_path));
|
32
|
+
}
|
33
|
+
|
34
|
+
public function font_url($path, $only_path = null) {
|
35
|
+
$path = $path->value; # get to the string value of the literal.
|
36
|
+
|
37
|
+
# Short circuit if they have provided an absolute url.
|
38
|
+
if (self::is_absolute_path($path)) {
|
39
|
+
return new SassString("url('$path')");
|
40
|
+
}
|
41
|
+
|
42
|
+
# Compute the $path to the font file, either root relative or stylesheet relative
|
43
|
+
# or nil if the http_fonts_path cannot be determined from the configuration.
|
44
|
+
if (SassExtentionsCompassConfig::config('relative_assets'))
|
45
|
+
$http_fonts_path = self::compute_relative_path(SassExtentionsCompassConfig::config('fonts_path'));
|
46
|
+
else
|
47
|
+
$http_fonts_path = SassExtentionsCompassConfig::config('http_fonts_path');
|
48
|
+
|
49
|
+
return new SassString(self::clean("$http_fonts_path/$path", $only_path));
|
50
|
+
}
|
51
|
+
|
52
|
+
public function image_url($path, $only_path = null) {
|
53
|
+
$path = $path->value; # get to the string value of the literal.
|
54
|
+
|
55
|
+
if (preg_match('%^'.preg_quote(SassExtentionsCompassConfig::config('http_images_path'), '%').'/(.*)%',$path, $matches))
|
56
|
+
# Treat root relative urls (without a protocol) like normal if they start with
|
57
|
+
# the images $path.
|
58
|
+
$path = $matches[1];
|
59
|
+
elseif (self::is_absolute_path($path))
|
60
|
+
# Short curcuit if they have provided an absolute url.
|
61
|
+
return new SassString("url('$path')");
|
62
|
+
|
63
|
+
# Compute the $path to the image, either root relative or stylesheet relative
|
64
|
+
# or nil if the http_images_path is not set in the configuration.
|
65
|
+
if (SassExtentionsCompassConfig::config('relative_assets'))
|
66
|
+
$http_images_path = self::compute_relative_path(SassExtentionsCompassConfig::config('images_path'));
|
67
|
+
elseif (SassExtentionsCompassConfig::config('http_images_path'))
|
68
|
+
$http_images_path = SassExtentionsCompassConfig::config('http_images_path');
|
69
|
+
else
|
70
|
+
$http_images_path = SassExtentionsCompassConfig::config('images_dir');
|
71
|
+
|
72
|
+
# Compute the real $path to the image on the file stystem if the images_dir is set.
|
73
|
+
if (SassExtentionsCompassConfig::config('images_dir'))
|
74
|
+
$real_path = SassExtentionsCompassConfig::config('project_path').
|
75
|
+
DIRECTORY_SEPARATOR.SassExtentionsCompassConfig::config('images_dir').
|
76
|
+
DIRECTORY_SEPARATOR.$path;
|
77
|
+
|
78
|
+
# prepend the $path to the image if there's one
|
79
|
+
if ($http_images_path) {
|
80
|
+
$http_images_path .= (substr($http_images_path, -1) === '/' ? '' : '/');
|
81
|
+
$path = $http_images_path.$path;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* # Compute the asset host unless in relative mode.
|
85
|
+
asset_host = if !(self::relative()) && Compass.configuration.asset_host
|
86
|
+
Compass.configuration.asset_host.call($path)
|
87
|
+
}
|
88
|
+
|
89
|
+
# Compute and append the cache buster if there is one.
|
90
|
+
if buster = compute_cache_buster($path, real_path)
|
91
|
+
$path += "?#{buster}"
|
92
|
+
}
|
93
|
+
|
94
|
+
# prepend the asset host if there is one.
|
95
|
+
$path = "#{asset_host}#{'/' unless $path[0..0] == "/"}#{$path}" if asset_host*/
|
96
|
+
|
97
|
+
return new SassString(self::clean($path, $only_path));
|
98
|
+
}
|
99
|
+
|
100
|
+
# takes off any leading "./".
|
101
|
+
# if $only_path emits a $path, else emits a url
|
102
|
+
private function clean($url, $only_path) {
|
103
|
+
if (!$only_path instanceof SassBoolean) {
|
104
|
+
$only_path = new SassBoolean('false');
|
105
|
+
}
|
106
|
+
|
107
|
+
$url = (substr($url, 0, 2) === './' ? substr($url, 2) : $url);
|
108
|
+
return ($only_path->toBoolean() ? $url : "url('$url')");
|
109
|
+
}
|
110
|
+
|
111
|
+
private function is_absolute_path($path) {
|
112
|
+
return ($path[0] === '/' || substr($path, 0, 4) === 'http');
|
113
|
+
}
|
114
|
+
|
115
|
+
// returns the path relative to the target css file
|
116
|
+
private function compute_relative_path($path) {
|
117
|
+
return $path;
|
118
|
+
/* if (target_css_file = options[:css_filename]) {
|
119
|
+
Pathname.new($path).relative_path_from(Pathname.new(File.dirname(target_css_file))).to_s
|
120
|
+
}*/
|
121
|
+
}
|
122
|
+
|
123
|
+
/* private function compute_cache_buster($path, real_path) {
|
124
|
+
if Compass.configuration.asset_cache_buster {
|
125
|
+
args = [$path]
|
126
|
+
if Compass.configuration.asset_cache_buster.arity > 1 {
|
127
|
+
args << (File.new(real_path) if real_path)
|
128
|
+
}
|
129
|
+
Compass.configuration.asset_cache_buster.call(*args)
|
130
|
+
elseif real_path {
|
131
|
+
default_cache_buster($path, real_path)
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
private function default_cache_buster($path, real_path) {
|
136
|
+
if File.readable?(real_path) {
|
137
|
+
File.mtime(real_path).to_i.to_s
|
138
|
+
}
|
139
|
+
else {
|
140
|
+
$stderr.puts "WARNING: '#{File.basename($path)}' was not found (or cannot be read) in #{File.dirname(real_path)}"
|
141
|
+
}
|
142
|
+
} */
|
143
|
+
}
|
@@ -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 @@
|
|
1
|
+
@import "layout/sticky-footer";
|
@@ -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
|
+
// }
|