frontsau 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,34 @@
|
|
|
1
|
+
// Turn off the bullet for an element of a list
|
|
2
|
+
@mixin no-bullet {
|
|
3
|
+
list-style-image : none;
|
|
4
|
+
list-style-type : none;
|
|
5
|
+
margin-left : 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// turns off the bullets for an entire list
|
|
9
|
+
@mixin no-bullets {
|
|
10
|
+
list-style: none;
|
|
11
|
+
li { @include no-bullet; }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Make a list(ul/ol) have an image bullet.
|
|
15
|
+
//
|
|
16
|
+
// The mixin should be used like this for an icon that is 5x7:
|
|
17
|
+
//
|
|
18
|
+
// ul.pretty
|
|
19
|
+
// +pretty-bullets("my-icon.png", 5px, 7px)
|
|
20
|
+
//
|
|
21
|
+
// Additionally, if the image dimensions are not provided,
|
|
22
|
+
// The image dimensions will be extracted from the image itself.
|
|
23
|
+
//
|
|
24
|
+
// ul.pretty
|
|
25
|
+
// +pretty-bullets("my-icon.png")
|
|
26
|
+
//
|
|
27
|
+
@mixin pretty-bullets($bullet-icon, $width: image-width($bullet-icon), $height: image-height($bullet-icon), $line-height: 18px, $padding: 14px) {
|
|
28
|
+
margin-left: 0;
|
|
29
|
+
li {
|
|
30
|
+
padding-left: $padding;
|
|
31
|
+
background: image-url($bullet-icon) no-repeat ($padding - $width) / 2 ($line-height - $height) / 2;
|
|
32
|
+
list-style-type: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Horizontal list layout module.
|
|
2
|
+
//
|
|
3
|
+
// Easy mode using simple descendant li selectors:
|
|
4
|
+
//
|
|
5
|
+
// ul.nav
|
|
6
|
+
// +horizontal-list
|
|
7
|
+
//
|
|
8
|
+
// Advanced mode:
|
|
9
|
+
// If you need to target the list items using a different selector then use
|
|
10
|
+
// +horizontal-list-container on your ul/ol and +horizontal-list-item on your li.
|
|
11
|
+
// This may help when working on layouts involving nested lists. For example:
|
|
12
|
+
//
|
|
13
|
+
// ul.nav
|
|
14
|
+
// +horizontal-list-container
|
|
15
|
+
// > li
|
|
16
|
+
// +horizontal-list-item
|
|
17
|
+
|
|
18
|
+
@import "bullets";
|
|
19
|
+
@import "compass/utilities/general/clearfix";
|
|
20
|
+
@import "compass/utilities/general/reset";
|
|
21
|
+
@import "compass/utilities/general/float";
|
|
22
|
+
|
|
23
|
+
// Can be mixed into any selector that target a ul or ol that is meant
|
|
24
|
+
// to have a horizontal layout. Used to implement +horizontal-list.
|
|
25
|
+
@mixin horizontal-list-container {
|
|
26
|
+
@include reset-box-model;
|
|
27
|
+
@include clearfix; }
|
|
28
|
+
|
|
29
|
+
// Can be mixed into any li selector that is meant to participate in a horizontal layout.
|
|
30
|
+
// Used to implement +horizontal-list.
|
|
31
|
+
//
|
|
32
|
+
// :last-child is not fully supported
|
|
33
|
+
// see http://www.quirksmode.org/css/contents.html#t29 for the support matrix
|
|
34
|
+
|
|
35
|
+
@mixin horizontal-list-item($padding: 4px, $direction: left) {
|
|
36
|
+
@include no-bullet;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
@include float($direction);
|
|
39
|
+
padding: {
|
|
40
|
+
left: $padding;
|
|
41
|
+
right: $padding;
|
|
42
|
+
};
|
|
43
|
+
&:first-child, &.first { padding-#{$direction}: 0px; }
|
|
44
|
+
&:last-child, &.last { padding-#{opposite-position($direction)}: 0px; }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
|
|
48
|
+
// This is not an inline list.
|
|
49
|
+
@mixin horizontal-list($padding: 4px, $direction: left) {
|
|
50
|
+
@include horizontal-list-container;
|
|
51
|
+
li {
|
|
52
|
+
@include horizontal-list-item($padding, $direction); } }
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Inline-Block list layout module.
|
|
2
|
+
//
|
|
3
|
+
// Easy mode using simple descendant li selectors:
|
|
4
|
+
//
|
|
5
|
+
// ul.nav
|
|
6
|
+
// +inline-block-list
|
|
7
|
+
//
|
|
8
|
+
// Advanced mode:
|
|
9
|
+
// If you need to target the list items using a different selector then use
|
|
10
|
+
// +inline-block-list-container on your ul/ol and +inline-block-list-item on your li.
|
|
11
|
+
// This may help when working on layouts involving nested lists. For example:
|
|
12
|
+
//
|
|
13
|
+
// ul.nav
|
|
14
|
+
// +inline-block-list-container
|
|
15
|
+
// > li
|
|
16
|
+
// +inline-block-list-item
|
|
17
|
+
|
|
18
|
+
@import "bullets";
|
|
19
|
+
@import "horizontal-list";
|
|
20
|
+
@import "compass/utilities/general/float";
|
|
21
|
+
@import "compass/css3/inline-block";
|
|
22
|
+
|
|
23
|
+
// Can be mixed into any selector that target a ul or ol that is meant
|
|
24
|
+
// to have an inline-block layout. Used to implement +inline-block-list.
|
|
25
|
+
@mixin inline-block-list-container {
|
|
26
|
+
@include horizontal-list-container; }
|
|
27
|
+
|
|
28
|
+
// Can be mixed into any li selector that is meant to participate in a horizontal layout.
|
|
29
|
+
// Used to implement +inline-block-list.
|
|
30
|
+
|
|
31
|
+
@mixin inline-block-list-item($padding: false) {
|
|
32
|
+
@include no-bullet;
|
|
33
|
+
@include inline-block;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
@if $padding {
|
|
36
|
+
padding: {
|
|
37
|
+
left: $padding;
|
|
38
|
+
right: $padding;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// A list(ol,ul) that is layed out such that the elements are inline-block and won't wrap.
|
|
44
|
+
@mixin inline-block-list($padding: false) {
|
|
45
|
+
@include inline-block-list-container;
|
|
46
|
+
li {
|
|
47
|
+
@include inline-block-list-item($padding); } }
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// makes a list inline.
|
|
2
|
+
|
|
3
|
+
@mixin inline-list {
|
|
4
|
+
list-style-type: none;
|
|
5
|
+
&, & li {
|
|
6
|
+
margin: 0px;
|
|
7
|
+
padding: 0px;
|
|
8
|
+
display: inline;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// makes an inline list that is comma delimited.
|
|
13
|
+
// Please make note of the browser support issues before using this mixin.
|
|
14
|
+
//
|
|
15
|
+
// use of `content` and `:after` is not fully supported in all browsers.
|
|
16
|
+
// See quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t15)
|
|
17
|
+
//
|
|
18
|
+
// `:last-child` is not fully supported.
|
|
19
|
+
// see quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t29).
|
|
20
|
+
|
|
21
|
+
@mixin comma-delimited-list {
|
|
22
|
+
@include inline-list;
|
|
23
|
+
li {
|
|
24
|
+
&:after { content: ", "; }
|
|
25
|
+
&:last-child, &.last {
|
|
26
|
+
&:after { content: ""; }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// @doc off
|
|
2
|
+
// Example 1:
|
|
3
|
+
//
|
|
4
|
+
// a.twitter
|
|
5
|
+
// +sprite-img("icons-32.png", 1)
|
|
6
|
+
// a.facebook
|
|
7
|
+
// +sprite-img("icons-32png", 2)
|
|
8
|
+
//
|
|
9
|
+
// Example 2:
|
|
10
|
+
//
|
|
11
|
+
// a
|
|
12
|
+
// +sprite-background("icons-32.png")
|
|
13
|
+
// a.twitter
|
|
14
|
+
// +sprite-column(1)
|
|
15
|
+
// a.facebook
|
|
16
|
+
// +sprite-row(2)
|
|
17
|
+
// @doc on
|
|
18
|
+
|
|
19
|
+
$sprite-default-size: 32px !default;
|
|
20
|
+
|
|
21
|
+
$sprite-default-margin: 0px !default;
|
|
22
|
+
|
|
23
|
+
$sprite-image-default-width: $sprite-default-size !default;
|
|
24
|
+
|
|
25
|
+
$sprite-image-default-height: $sprite-default-size !default;
|
|
26
|
+
|
|
27
|
+
// Sets all the rules for a sprite from a given sprite image to show just one of the sprites.
|
|
28
|
+
// To reduce duplication use a sprite-bg mixin for common properties and a sprite-select mixin for positioning.
|
|
29
|
+
@mixin sprite-img($img, $col, $row: 1, $width: $sprite-image-default-width, $height: $sprite-image-default-height, $margin: $sprite-default-margin) {
|
|
30
|
+
@include sprite-background($img, $width, $height);
|
|
31
|
+
@include sprite-position($col, $row, $width, $height, $margin); }
|
|
32
|
+
|
|
33
|
+
// Sets rules common for all sprites, assumes you want a square, but allows a rectangular region.
|
|
34
|
+
@mixin sprite-background($img, $width: $sprite-default-size, $height: $width) {
|
|
35
|
+
@include sprite-background-rectangle($img, $width, $height); }
|
|
36
|
+
|
|
37
|
+
// Sets rules common for all sprites, assumes a rectangular region.
|
|
38
|
+
@mixin sprite-background-rectangle($img, $width: $sprite-image-default-width, $height: $sprite-image-default-height) {
|
|
39
|
+
background: image-url($img) no-repeat;
|
|
40
|
+
width: $width;
|
|
41
|
+
height: $height;
|
|
42
|
+
overflow: hidden; }
|
|
43
|
+
|
|
44
|
+
// Allows horizontal sprite positioning optimized for a single row of sprites.
|
|
45
|
+
@mixin sprite-column($col, $width: $sprite-image-default-width, $margin: $sprite-default-margin) {
|
|
46
|
+
@include sprite-position($col, 1, $width, 0px, $margin); }
|
|
47
|
+
|
|
48
|
+
// Allows vertical sprite positioning optimized for a single column of sprites.
|
|
49
|
+
@mixin sprite-row($row, $height: $sprite-image-default-height, $margin: $sprite-default-margin) {
|
|
50
|
+
@include sprite-position(1, $row, 0px, $height, $margin); }
|
|
51
|
+
|
|
52
|
+
// Allows vertical and horizontal sprite positioning from a grid of equal dimensioned sprites.
|
|
53
|
+
@mixin sprite-position($col, $row: 1, $width: $sprite-image-default-width, $height: $sprite-image-default-height, $margin: $sprite-default-margin) {
|
|
54
|
+
$x: ($col - 1) * -$width - ($col - 1) * $margin;
|
|
55
|
+
$y: ($row - 1) * -$height - ($row - 1) * $margin;
|
|
56
|
+
background-position: $x $y; }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@mixin alternating-rows-and-columns($even-row-color, $odd-row-color, $dark-intersection, $header-color: white, $footer-color: white) {
|
|
2
|
+
th {
|
|
3
|
+
background-color: $header-color;
|
|
4
|
+
&.even, &:nth-child(2n) {
|
|
5
|
+
background-color: $header-color - $dark-intersection; } }
|
|
6
|
+
tr.odd {
|
|
7
|
+
td {
|
|
8
|
+
background-color: $odd-row-color;
|
|
9
|
+
&.even, &:nth-child(2n) {
|
|
10
|
+
background-color: $odd-row-color - $dark-intersection; } } }
|
|
11
|
+
tr.even {
|
|
12
|
+
td {
|
|
13
|
+
background-color: $even-row-color;
|
|
14
|
+
&.even, &:nth-child(2n) {
|
|
15
|
+
background-color: $even-row-color - $dark-intersection; } } }
|
|
16
|
+
tfoot {
|
|
17
|
+
th, td {
|
|
18
|
+
background-color: $footer-color;
|
|
19
|
+
&.even, &:nth-child(2n) {
|
|
20
|
+
background-color: $footer-color - $dark-intersection; } } } }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@mixin outer-table-borders($width: 2px, $color: black) {
|
|
2
|
+
border: $width solid $color;
|
|
3
|
+
thead {
|
|
4
|
+
th {
|
|
5
|
+
border-bottom: $width solid $color; } }
|
|
6
|
+
tfoot {
|
|
7
|
+
th, td {
|
|
8
|
+
border-top: $width solid $color; } }
|
|
9
|
+
th {
|
|
10
|
+
&:first-child {
|
|
11
|
+
border-right: $width solid $color; } } }
|
|
12
|
+
|
|
13
|
+
@mixin inner-table-borders($width: 2px, $color: black) {
|
|
14
|
+
th, td {
|
|
15
|
+
border: {
|
|
16
|
+
right: $width solid $color;
|
|
17
|
+
bottom: $width solid $color;
|
|
18
|
+
left-width: 0px;
|
|
19
|
+
top-width: 0px; };
|
|
20
|
+
&:last-child,
|
|
21
|
+
&.last {
|
|
22
|
+
border-right-width: 0px; } }
|
|
23
|
+
tbody, tfoot {
|
|
24
|
+
tr:last-child,
|
|
25
|
+
tr.last {
|
|
26
|
+
th, td {
|
|
27
|
+
border-bottom-width: 0px; } } } }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import "compass/css3/shared";
|
|
2
|
+
|
|
3
|
+
// To get full firefox support, you must install the ellipsis pattern:
|
|
4
|
+
//
|
|
5
|
+
// compass install compass/ellipsis
|
|
6
|
+
$use-mozilla-ellipsis-binding: false !default;
|
|
7
|
+
|
|
8
|
+
// This technique, by [Justin Maxwell](http://code404.com/), was originally
|
|
9
|
+
// published [here](http://mattsnider.com/css/css-string-truncation-with-ellipsis/).
|
|
10
|
+
// Firefox implementation by [Rikkert Koppes](http://www.rikkertkoppes.com/thoughts/2008/6/).
|
|
11
|
+
@mixin ellipsis($no-wrap: true) {
|
|
12
|
+
@if $no-wrap { white-space: nowrap; }
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
@include experimental(text-overflow, ellipsis,
|
|
15
|
+
not -moz,
|
|
16
|
+
not -webkit,
|
|
17
|
+
-o,
|
|
18
|
+
-ms,
|
|
19
|
+
not -khtml,
|
|
20
|
+
official
|
|
21
|
+
);
|
|
22
|
+
@if $experimental-support-for-mozilla and $use-mozilla-ellipsis-binding {
|
|
23
|
+
-moz-binding: stylesheet-url(unquote("xml/ellipsis.xml#ellipsis"));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Hides html text and replaces it with an image.
|
|
2
|
+
// If you use this on an inline element, you will need to change the display to block or inline-block.
|
|
3
|
+
// Also, if the size of the image differs significantly from the font size, you'll need to set the width and/or height.
|
|
4
|
+
//
|
|
5
|
+
// Parameters:
|
|
6
|
+
//
|
|
7
|
+
// * `img` -- the relative path from the project image directory to the image.
|
|
8
|
+
// * `x` -- the x position of the background image.
|
|
9
|
+
// * `y` -- the y position of the background image.
|
|
10
|
+
@mixin replace-text($img, $x: 50%, $y: 50%) {
|
|
11
|
+
@include hide-text;
|
|
12
|
+
background: {
|
|
13
|
+
image: image-url($img);
|
|
14
|
+
repeat: no-repeat;
|
|
15
|
+
position: $x $y;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Like the `replace-text` mixin, but also sets the width
|
|
20
|
+
// and height of the element according the dimensions of the image.
|
|
21
|
+
@mixin replace-text-with-dimensions($img, $x: 50%, $y: 50%) {
|
|
22
|
+
@include replace-text($img, $x, $y);
|
|
23
|
+
width: image-width($img);
|
|
24
|
+
height: image-height($img);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Hides text in an element so you can see the background.
|
|
28
|
+
@mixin hide-text {
|
|
29
|
+
$approximate_em_value: 12px / 1em;
|
|
30
|
+
$wider_than_any_screen: -9999em;
|
|
31
|
+
text-indent: $wider_than_any_screen * $approximate_em_value;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Since you've installed the xml file, you should set
|
|
2
|
+
// $use-mozilla-ellipsis-binding to true before importing.
|
|
3
|
+
$use-mozilla-ellipsis-binding: true
|
|
4
|
+
@import compass/utilities/text/ellipsis
|
|
5
|
+
|
|
6
|
+
// You can delete this sass file if you want, it's just an example of how to use the ellipsis mixin.
|
|
7
|
+
// By default, ellipsis text is no-wrap. Pass false as the first argument if you don't want that.
|
|
8
|
+
.ellipsis
|
|
9
|
+
+ellipsis
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
description "Plugin for cross-browser ellipsis truncated text."
|
|
2
|
+
|
|
3
|
+
file 'xml/ellipsis.xml', :like => :css
|
|
4
|
+
stylesheet 'ellipsis.sass'
|
|
5
|
+
|
|
6
|
+
help %Q{
|
|
7
|
+
First, install the plugin to get the xml file that makes this work in firfox:
|
|
8
|
+
|
|
9
|
+
compass init --using blueprint/link_icons
|
|
10
|
+
|
|
11
|
+
Then mix +ellipsis into your selectors to enable ellipsis
|
|
12
|
+
there when text gets too long.
|
|
13
|
+
|
|
14
|
+
The ellipsis.sass file is just an example for how to use this plugin,
|
|
15
|
+
feel free to delete it.
|
|
16
|
+
|
|
17
|
+
For more information see:
|
|
18
|
+
http://mattsnider.com/css/css-string-truncation-with-ellipsis/
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
welcome_message %Q{
|
|
22
|
+
The ellipsis.sass file is just an example for how to use this plugin,
|
|
23
|
+
feel free to delete it.
|
|
24
|
+
|
|
25
|
+
For more information see:
|
|
26
|
+
http://mattsnider.com/css/css-string-truncation-with-ellipsis/
|
|
27
|
+
}
|
data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/xml/ellipsis.xml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<bindings
|
|
3
|
+
xmlns="http://www.mozilla.org/xbl"
|
|
4
|
+
xmlns:xbl="http://www.mozilla.org/xbl"
|
|
5
|
+
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
6
|
+
>
|
|
7
|
+
<binding id="ellipsis">
|
|
8
|
+
<content>
|
|
9
|
+
<xul:window>
|
|
10
|
+
<xul:description crop="end" xbl:inherits="value=xbl:text"><children/></xul:description>
|
|
11
|
+
</xul:window>
|
|
12
|
+
</content>
|
|
13
|
+
</binding>
|
|
14
|
+
</bindings>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
description "Generate a compass extension."
|
|
2
|
+
|
|
3
|
+
file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.sass"
|
|
4
|
+
file 'templates/project/manifest.rb'
|
|
5
|
+
file 'templates/project/screen.sass'
|
|
6
|
+
|
|
7
|
+
help %Q{
|
|
8
|
+
To generate a compass extension:
|
|
9
|
+
compass create my_extension --using compass/extension
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
welcome_message %Q{
|
|
13
|
+
For a full tutorial on how to build your own extension see:
|
|
14
|
+
|
|
15
|
+
http://compass-style.org/docs/tutorials/extensions/
|
|
16
|
+
|
|
17
|
+
}, :replace => true
|
|
18
|
+
|
|
19
|
+
no_configuration_file!
|
|
20
|
+
skip_compilation!
|
data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/stylesheets/main.sass
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
When no framework is specified, a new compass project is set up with three stylesheets:
|
|
2
|
+
|
|
3
|
+
* screen.sass
|
|
4
|
+
* print.sass
|
|
5
|
+
* ie.sass
|
|
6
|
+
|
|
7
|
+
It is expected that you will link your html to these like so:
|
|
8
|
+
|
|
9
|
+
<head>
|
|
10
|
+
<link href="/stylesheets/screen.css" media="screen, projection"
|
|
11
|
+
rel="stylesheet" type="text/css" />
|
|
12
|
+
<link href="/stylesheets/print.css" media="print"
|
|
13
|
+
rel="stylesheet" type="text/css" />
|
|
14
|
+
<!--[if IE]>
|
|
15
|
+
<link href="/stylesheets/ie.css" media="screen, projection"
|
|
16
|
+
rel="stylesheet" type="text/css" />
|
|
17
|
+
<![endif]-->
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
You don't have to use these three stylesheets, they are just a recommendation.
|
|
21
|
+
You can rename them, make new stylesheets, and delete them. Compass will
|
|
22
|
+
happily compile whatever sass files you place into your project.
|
|
23
|
+
|
|
24
|
+
Any folders you create in your source directory with sass files in them will be folders
|
|
25
|
+
that get created with css files in them when compiled.
|
|
26
|
+
|
|
27
|
+
Sass files beginning with an underscore are called partials, they are not directly
|
|
28
|
+
compiled to their own css file. You can use these partials by importing them
|
|
29
|
+
into other stylesheets. This is useful for keeping your stylesheets small and manageable
|
|
30
|
+
and single-focused. It is common to create a file called _base.sass at the top level
|
|
31
|
+
of your stylesheets and to import this to set up project-wide constants and mixins.
|
|
32
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Welcome to Compass.
|
|
3
|
+
In this file you should write your main styles. (or centralize your imports)
|
|
4
|
+
Import this file using the following HTML or equivalent:
|
|
5
|
+
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
|
6
|
+
|
|
7
|
+
@import compass/reset
|