pax_global_header00006660000000000000000000000064115224212330014505gustar00rootroot0000000000000052 comment=2243f185fdb19e253254c5c3e08fe7a5004d202f compass-yui-plugin-0~20100724/000077500000000000000000000000001152242123300157715ustar00rootroot00000000000000compass-yui-plugin-0~20100724/COPYRIGHT000066400000000000000000000033411152242123300172650ustar00rootroot00000000000000Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved. The original CSS required this copyright notice to be present in redistributions, so to be on the safe side: Copyright (c) 2008, Yahoo! Inc. All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Yahoo! Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo! Inc. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. compass-yui-plugin-0~20100724/README.markdown000066400000000000000000000011271152242123300204730ustar00rootroot00000000000000YUI Compass Plugin ------------------ This plugin implements the YUI CSS framework in Sass for use with the Compass Authoring Framework. To install, unpack this folder into your project's extension folder. You can do this by downloading the zip/tar.gz file for this project or by checking it out from git. Your project's extension folder is configurable, but by default it is the `extensions` subfolder within your stand alone project. For rails projects it defaults to `vendor/plugins/compass/extensions`. After unpacking, you should rename the folder from `yui-compass-plugin` to just `yui`. compass-yui-plugin-0~20100724/stylesheets/000077500000000000000000000000001152242123300203455ustar00rootroot00000000000000compass-yui-plugin-0~20100724/stylesheets/_yui.sass000066400000000000000000000002151152242123300222030ustar00rootroot00000000000000@import yui/modules/base.sass @import yui/modules/fonts.sass @import yui/modules/grids.sass =yui +yui-base +yui-base-fonts +yui-grids compass-yui-plugin-0~20100724/stylesheets/yui/000077500000000000000000000000001152242123300211535ustar00rootroot00000000000000compass-yui-plugin-0~20100724/stylesheets/yui/modules/000077500000000000000000000000001152242123300226235ustar00rootroot00000000000000compass-yui-plugin-0~20100724/stylesheets/yui/modules/_base.sass000066400000000000000000000016561152242123300245770ustar00rootroot00000000000000=yui-base body margin: 10px h1 font-size: 138.5% h2 font-size: 123.1% h3 font-size: 108% h1, h2, h3 margin: 1em 0 h1,h2, h3, h4, h5, h6, strong, dt font-weight: bold optgroup font-weight: normal abbr, acronym border-bottom: 1px dotted black cursor: help em font-style: italic del text-decoration: line-through blockquote, ul, ol, dl margin: 1em ol,ul,dl margin-left: 2em ol li list-style: decimal outside ul li list-style: disc outside dl dd margin-left: 1em th, td border: 1px solid black padding: 0.5em th font-weight: bold text-align: center caption margin-bottom: 0.5em text-align: center sup vertical-align: super sub vertical-align: sub p, fieldset, table, pre margin-bottom: 1em button, input[type="checkbox"], input[type="radio"], input[type="reset"], input[type="submit"] padding: 1px compass-yui-plugin-0~20100724/stylesheets/yui/modules/_fonts.sass000066400000000000000000000025361152242123300250140ustar00rootroot00000000000000$yui-default-base-font-size: 13px !default $yui-default-base-line-height: 1.231 !default $yui-default-font-family: unquote("arial,helvetica,clean,sans-serif") !default // Sets the font size specified in pixels using percents so that the base // font size changes and 1em has the correct value. When nesting font size // declarations, within the DOM tree, the base_font_size must be the parent's // effective font-size in pixels. // Usage Examples: // .big // +font-size(16px) // .bigger // +font-size(18px) // .big .bigger // +font-size(18px, 16px) // // For more information see the table found at http://developer.yahoo.com/yui/fonts/#fontsize =font-size($size, $base-font-size: $yui-default-base-font-size) font-size: percentage($size / $base-font-size) // Sets the base fonts for a page, this should be mixed into the top level of a stylesheet. =yui-base-fonts($family: $yui-default-font-family, $size: $yui-default-base-font-size, $line-height: $yui-default-base-line-height) body font: size: $size family: $family line-height: $line-height *font-size: small *font: x-small select, input, button, textarea, button font: 99% arial, helvetica, clean, sans-serif table font-size: inherit font: 100% pre, code, kbd, samp, tt font-family: monospace *font-size: 108% line-height: 100% compass-yui-plugin-0~20100724/stylesheets/yui/modules/_grids.sass000066400000000000000000000227561152242123300250010ustar00rootroot00000000000000// This is a port of YUI Grids version 2.6.0 // Note: This is not really tested yet. Use at your own risk. @import compass/utilities/general/float.sass @import fonts.sass =yui-grids +yui-grids-init +yui-grid-templates +yui-grid-divisions =yui-grid-templates #doc +yui-document(750px) #doc2 +yui-document(950px) #doc3 +yui-document(fluid) #doc4 +yui-document(974px) /* Section: Preset Template Rules (.yui-t[1-6]) .yui-t1 +yui-two-column-left-template(160px) .yui-t2 +yui-two-column-left-template(180px) .yui-t3 +yui-two-column-left-template(300px) .yui-t4 +yui-two-column-right-template(180px) .yui-t5 +yui-two-column-right-template(240px) .yui-t6 +yui-two-column-right-template(300px) .yui-t7 +yui-one-column-template =yui-group-clearing zoom: 1 &:after content: "." display: block height: 0 clear: both visibility: hidden =yui-grids-init($header: "#hd", $footer: "#ft", $body: "#bd") /* Section: General Rules body text-align: center @if $header #{$header} +yui-group-clearing @if $footer #{$footer} +yui-group-clearing @if $body #{$body} +yui-group-clearing =em-size($style, $px-size, $base-font-size: $yui-default-base-font-size) #{$style}: 1em * $px-size / $base-font-size =em-size-hacked($style, $px-size, $base-font-size: $yui-default-base-font-size) +em-size($style, $px-size, $base-font-size) +em-size("*#{$style}", $px-size * 39 / 40, $base-font-size) // All documents must have these styles =yui-document-base($min-width: false) margin: auto text-align: left @if $min-width min-width: $min-width =yui-block-base position: relative _position: static =yui-main-block float: none width: auto // Creates a fixed width document container // Pass "fluid" for the width to create a document that grows with the width of the browser. =yui-document($width, $min-width: false, $base-font-size: $yui-default-base-font-size) +yui-document-base($min-width) @if $width == "fluid" margin: auto 10px width: auto @else +em-size-hacked(width, $width, $base-font-size) =yui-two-column-left-template($column-width, $main-selector: "#yui-main", $block-selector: ".yui-b", $document-width: 750px, $min-width: false, $base-font-size: $yui-default-base-font-size) +yui-document($document-width, $min-width, $base-font-size) #{$block-selector} +yui-block-base float: left +em-size-hacked(width, $column-width, $base-font-size) #{$main-selector} width: 100% float: right margin-left: -25em #{$block-selector} +yui-main-block +em-size(margin-left, $column-width + 13px, $base-font-size) // t3 is 15px for IE for some reason - seems like this should be some formula based on the column width and not a fixed number - need to do more research @if $column-width > 180px +em-size("*margin-left", ($column-width + 15px) * 39 / 40, $base-font-size) @else +em-size("*margin-left", ($column-width + 14px) * 39 / 40, $base-font-size) =yui-two-column-right-template($column-width, $main-selector: "#yui-main", $block-selector: ".yui-b", $document-width: 750px, $min-width: false, $base-font-size: $yui-default-base-font-size) +yui-document($document-width, $min-width, $base-font-size) #{$block-selector} +yui-block-base float: right +em-size-hacked(width, $column-width, $base-font-size) #{$main-selector} width: 100% float: left margin-right: -25em #{$block-selector} +yui-main-block +em-size(margin-right, $column-width + 13px, $base-font-size) // t5 is 15px for IE for some reason - seems like this should be some formula based on the column width and not a fixed number - need to do more research @if $column-width > 180px +em-size("*margin-right", ($column-width + 15px) * 39 / 40, $base-font-size) @else +em-size("*margin-right", ($column-width + 14px) * 39 / 40, $base-font-size) =yui-one-column-template($main-selector: "#yui-main", $block-selector: ".yui-b", $document-width: 750px, $min-width: false, $base-font-size: $yui-default-base-font-size) +yui-document($document-width, $min-width, $base-font-size) #{$main-selector} #{$block-selector} +yui-main-block display: block margin: 0 0 1em 0 =yui-custom-template($main-selector: "#yui-main", $block-selector: ".yui-b") #{$block-selector} +yui-block-base #{$main-selector} width: 100% #{$block-selector} +yui-main-block =yui-grid-divisions($unit: ".yui-u", $g-50-50: ".yui-g", $g-33-33-33: ".yui-gb", $g-67-33: ".yui-gc", $g-33-67: ".yui-gd", $g-75-25: ".yui-ge", $g-25-75: ".yui-gf") /* Section: Grids and Nesting Grids /* from #yui-main, .yui-g .yui-u .yui-g #{nest($g-50-50, $unit, $g-50-50)} width: 100% /* Children generally take half the available space #{nest($g-33-33-33, $unit)}, #{nest($g-50-50, $g-33-33-33, $unit)}, #{nest($g-33-33-33, $g-50-50)}, #{nest($g-33-33-33, $g-33-33-33)}, #{nest($g-33-33-33, $g-67-33)}, #{nest($g-33-33-33, $g-33-67)}, #{nest($g-33-33-33, $g-75-25)}, #{nest($g-33-33-33, $g-25-75)}, #{nest($g-67-33, $unit)}, #{nest($g-67-33, $g-50-50)}, #{nest($g-33-67, $unit)} float: left /* Float units (and sub grids) to the right #{nest($g-50-50, $unit)}, #{nest($g-50-50, $g-50-50)}, #{nest($g-50-50, $g-33-33-33)}, #{nest($g-50-50, $g-67-33)}, #{nest($g-50-50, $g-33-67)}, #{nest($g-50-50, $g-75-25)}, #{nest($g-50-50, $g-25-75)}, #{nest($g-67-33, $unit)}, #{nest($g-33-67, $g-50-50)}, #{nest($g-50-50, $g-67-33, $unit)}, #{nest($g-75-25, $unit)}, #{nest($g-75-25, $g-50-50)}, #{nest($g-25-75, $g-50-50)}, #{nest($g-25-75, $unit)} float: right /* Float units (and sub grids) to the left #{$g-50-50}, #{$g-33-33-33}, #{$g-67-33}, #{$g-33-67}, #{$g-75-25}, #{$g-25-75}, #{nest($g-50-50, $g-67-33)}, #{nest($g-50-50, $g-75-25)}, #{nest($g-67-33, "div.first")} div.first float: left #{$g-50-50} #{$unit}, #{$g-50-50}, #{$g-33-33-33}, #{$g-67-33}, #{$g-33-67}, #{$g-75-25}, #{$g-25-75} width: 49.1% #{nest($g-33-33-33, $unit)}, #{nest($g-50-50, $g-33-33-33, $unit)}, #{nest($g-33-33-33, $g-50-50)}, #{nest($g-33-33-33, $g-33-33-33)}, #{nest($g-33-33-33, $g-67-33)}, #{nest($g-33-33-33, $g-33-67)}, #{nest($g-33-33-33, $g-75-25)}, #{nest($g-33-33-33, $g-25-75)}, #{nest($g-67-33, $unit)}, #{nest($g-67-33, $g-50-50)}, #{nest($g-33-67, $unit)} width: 32% margin-left: 1.99% /* Give IE some extra breathing room for 1/3-based rounding issues #{nest($g-33-33-33, $unit)} *margin-left: 1.9% *width: 31.9% #{nest($g-50-50, $g-33-33-33)}, #{$g-33-33-33}, #{$g-67-33}, #{$g-33-67} div.first margin-left: 0 /* Section: Deep Nesting #{$g-50-50}, #{$g-33-33-33}, #{$g-67-33}, #{$g-33-67}, #{$g-75-25}, #{$g-25-75} #{$g-50-50} #{$unit} width: 49% *width: 48.1% *margin-left: 0 #{nest($g-50-50, $g-50-50, $unit)} width: 48.1% #{$g-50-50}, #{$g-33-33-33} #{$g-33-33-33} div.first *margin-right: 0 *width: 32% _width: 31.7% #{nest($g-50-50, $g-67-33, "div.first")}, #{nest($g-67-33, "div.first")}, #{nest($g-33-67, $g-50-50)}, #{nest($g-33-67, $unit)} width: 66% #{nest($g-33-33-33, $g-50-50, "div.first")} *margin-right: 4% _margin-right: 1.3% #{$g-33-33-33} #{$g-67-33}, #{$g-33-67} div.first *margin-right: 0 #{$g-33-33-33} #{$g-33-33-33}, #{$g-67-33} #{$unit} *margin-left: 1.8% _margin-left: 4% #{nest($g-50-50, $g-33-33-33, $unit)} _margin-left: 1% #{nest($g-33-33-33, $g-33-67, $unit)} *width: 66% _width: 61.2% #{nest($g-33-33-33, $g-33-67, "div.first")} *width: 31% _width: 29.5% #{$g-50-50}, #{$g-33-33-33} #{$g-67-33} #{$unit} width: 32% _float: right margin-right: 0 _margin-left: 0 #{nest($g-33-33-33, $g-67-33, "div.first")} width: 66% *float: left *margin-left: 0 #{$g-33-33-33} #{$g-75-25}, #{$g-25-75} #{$unit} margin: 0 #{nest($g-33-33-33, $g-33-33-33, $unit)} _margin-left: 0.7% #{nest($g-33-33-33, $g-50-50)}, #{nest($g-33-33-33, $g-33-33-33)} div.first *margin-left: 0 #{$g-67-33}, #{$g-33-67} #{$g-50-50} #{$unit} *width: 48.1% *margin-left: 0 #{$g-33-67}, #{nest($g-33-33-33, $g-33-67)} div.first width: 32% #{nest($g-50-50, $g-33-67, "div.first")} _width: 29.9% #{nest($g-75-25, $unit)}, #{nest($g-75-25, $g-50-50)}, #{nest($g-25-75, "div.first")} width: 24% #{nest($g-75-25, "div.first")}, #{nest($g-25-75, $g-50-50)}, #{nest($g-25-75, $unit)} width: 74.2% #{$g-33-33-33} #{$g-75-25}, #{$g-25-75} div#{$unit} float: right #{$g-33-33-33} #{$g-75-25}, #{$g-25-75} div.first float: left /* Width Accommodation for Nested Contexts #{$g-33-33-33} #{nest($g-75-25, $unit)}, #{nest($g-25-75, "div.first")} *width: 24% _width: 20% /* Width Accommodation for Nested Contexts #{$g-33-33-33} #{nest($g-75-25, "div.first")}, #{nest($g-25-75, $unit)} *width: 73.5% _width: 65.5% /* Patch for GD within GE #{nest($g-75-25, "div.first", $g-33-67, $unit)} width: 65% #{nest($g-75-25, "div.first", $g-33-67, "div.first")} width: 32% /* @group Clearing #{$g-50-50}, #{$g-33-33-33}, #{$g-67-33}, #{$g-33-67}, #{$g-75-25}, #{$g-25-75} +yui-group-clearing compass-yui-plugin-0~20100724/stylesheets/yui/modules/_reset.sass000066400000000000000000000020071152242123300247760ustar00rootroot00000000000000/* Copyright (c) 2008, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt * version: 3.0.0pr2 =reset html color: black background: white body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend,input, textarea, p, blockquote, th, td margin: 0 padding: 0 li list-style: none h1, h2, h3, h4, h5, h6 font-size: 100% font-weight: normal code, th, address, caption, cite, dfn, em, strong, var font-style: normal font-weight: normal fieldset, img, abbr, acronym border: 0 legend color: black input, textarea, select font-family: inherit font-size: inherit font-weight: inherit *font-size: 100% th, caption text-align: left table border-collapse: collapse border-spacing: 0 q &:before, &:after content: "" abbr, acronym font-variant: normal sup vertical-align: text-top sub vertical-align: text-bottom compass-yui-plugin-0~20100724/templates/000077500000000000000000000000001152242123300177675ustar00rootroot00000000000000compass-yui-plugin-0~20100724/templates/project/000077500000000000000000000000001152242123300214355ustar00rootroot00000000000000compass-yui-plugin-0~20100724/templates/project/manifest.rb000066400000000000000000000000711152242123300235660ustar00rootroot00000000000000stylesheet 'screen.sass', :media => "screen, projection" compass-yui-plugin-0~20100724/templates/project/screen.sass000066400000000000000000000000621152242123300236050ustar00rootroot00000000000000@import yui.sass @import compass/reset.sass +yui