compass-edge 0.9.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.
- data/CHANGELOG.markdown +528 -0
- data/LICENSE.markdown +29 -0
- data/README.markdown +46 -0
- data/REVISION +1 -0
- data/Rakefile +131 -0
- data/VERSION.yml +4 -0
- data/bin/compass +26 -0
- data/deps.rip +1 -0
- data/examples/README.markdown +4 -0
- data/examples/blueprint_default/config.rb +7 -0
- data/examples/blueprint_default/images/grid.png +0 -0
- data/examples/blueprint_default/index.html.haml +85 -0
- data/examples/blueprint_default/parts/elements.html.haml +282 -0
- data/examples/blueprint_default/parts/forms.html.haml +190 -0
- data/examples/blueprint_default/parts/grid.html.haml +274 -0
- data/examples/blueprint_default/parts/test-small.jpg +0 -0
- data/examples/blueprint_default/parts/test.jpg +0 -0
- data/examples/blueprint_default/parts/valid.png +0 -0
- data/examples/blueprint_default/src/ie.sass +3 -0
- data/examples/blueprint_default/src/images/grid.png +0 -0
- data/examples/blueprint_default/src/print.sass +3 -0
- data/examples/blueprint_default/src/screen.sass +8 -0
- data/examples/blueprint_plugins/config.rb +8 -0
- data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
- data/examples/blueprint_plugins/images/buttons/key.png +0 -0
- data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
- data/examples/blueprint_plugins/images/grid.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
- data/examples/blueprint_plugins/images/test-small.jpg +0 -0
- data/examples/blueprint_plugins/images/test.jpg +0 -0
- data/examples/blueprint_plugins/images/valid.png +0 -0
- data/examples/blueprint_plugins/index.html.haml +96 -0
- data/examples/blueprint_plugins/plugins/buttons.html.haml +67 -0
- data/examples/blueprint_plugins/plugins/fancy_type.html.haml +100 -0
- data/examples/blueprint_plugins/plugins/link_icons.html.haml +61 -0
- data/examples/blueprint_plugins/plugins/rtl.html.haml +100 -0
- data/examples/blueprint_plugins/src/buttons.sass +49 -0
- data/examples/blueprint_plugins/src/ie.sass +3 -0
- data/examples/blueprint_plugins/src/images/grid.png +0 -0
- data/examples/blueprint_plugins/src/link_icons.sass +13 -0
- data/examples/blueprint_plugins/src/print.sass +3 -0
- data/examples/blueprint_plugins/src/rtl_screen.sass +13 -0
- data/examples/blueprint_plugins/src/screen.sass +11 -0
- data/examples/blueprint_scoped/images/grid.png +0 -0
- data/examples/blueprint_scoped/src/ie.sass +4 -0
- data/examples/blueprint_scoped/src/print.sass +4 -0
- data/examples/blueprint_scoped/src/screen.sass +5 -0
- data/examples/blueprint_scoped_form/images/grid.png +0 -0
- data/examples/blueprint_scoped_form/src/ie.sass +3 -0
- data/examples/blueprint_scoped_form/src/print.sass +3 -0
- data/examples/blueprint_scoped_form/src/screen.sass +10 -0
- data/examples/blueprint_semantic/config.rb +7 -0
- data/examples/blueprint_semantic/images/grid.png +0 -0
- data/examples/blueprint_semantic/index.html.haml +86 -0
- data/examples/blueprint_semantic/parts/fancy_type.html.haml +100 -0
- data/examples/blueprint_semantic/parts/liquid.html.haml +100 -0
- data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
- data/examples/blueprint_semantic/parts/test.jpg +0 -0
- data/examples/blueprint_semantic/parts/valid.png +0 -0
- data/examples/blueprint_semantic/src/ie.sass +3 -0
- data/examples/blueprint_semantic/src/images/grid.png +0 -0
- data/examples/blueprint_semantic/src/liquid.sass +69 -0
- data/examples/blueprint_semantic/src/print.sass +3 -0
- data/examples/blueprint_semantic/src/screen.sass +70 -0
- data/examples/compass/compass.html.haml +39 -0
- data/examples/compass/config.rb +7 -0
- data/examples/compass/images/blue_arrow.gif +0 -0
- data/examples/compass/src/compass.sass +47 -0
- data/examples/compass/src/images/blue_arrow.gif +0 -0
- data/examples/compass/src/sticky_footer.sass +11 -0
- data/examples/compass/src/utilities.sass +108 -0
- data/examples/compass/sticky_footer.html.haml +14 -0
- data/examples/compass/utilities.html.haml +189 -0
- data/examples/downloader.rb +57 -0
- data/examples/logo/logo.html.haml +40 -0
- data/examples/logo/src/ie.sass +6 -0
- data/examples/logo/src/print.sass +6 -0
- data/examples/logo/src/screen.sass +29 -0
- data/examples/ninesixty/bootstrap.rb +4 -0
- data/examples/ninesixty/config.rb +9 -0
- data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
- data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
- data/examples/ninesixty/src/grid.sass +16 -0
- data/examples/ninesixty/src/text.sass +10 -0
- data/examples/yui/bootstrap.rb +3 -0
- data/examples/yui/divisions.html.haml +179 -0
- data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
- data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
- data/examples/yui/index.html.haml +19 -0
- data/examples/yui/src/screen.sass +13 -0
- data/examples/yui/sub_divisions.html.haml +169 -0
- data/examples/yui/templates.html.haml +54 -0
- data/examples/yui/test.jpg +0 -0
- data/examples/yui/typography.html.haml +132 -0
- data/lib/compass.rb +22 -0
- data/lib/compass/actions.rb +116 -0
- data/lib/compass/app_integration.rb +3 -0
- data/lib/compass/app_integration/merb.rb +1 -0
- data/lib/compass/app_integration/merb/runtime.rb +63 -0
- data/lib/compass/app_integration/rails.rb +8 -0
- data/lib/compass/app_integration/rails/action_controller.rb +15 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rb +29 -0
- data/lib/compass/app_integration/rails/installer.rb +127 -0
- data/lib/compass/app_integration/rails/runtime.rb +14 -0
- data/lib/compass/app_integration/rails/sass_plugin.rb +5 -0
- data/lib/compass/app_integration/rails/templates/compass-install-rails.rb +80 -0
- data/lib/compass/app_integration/rails/urls.rb +14 -0
- data/lib/compass/app_integration/stand_alone.rb +3 -0
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +24 -0
- data/lib/compass/app_integration/stand_alone/installer.rb +71 -0
- data/lib/compass/commands.rb +11 -0
- data/lib/compass/commands/base.rb +36 -0
- data/lib/compass/commands/create_project.rb +113 -0
- data/lib/compass/commands/generate_grid_background.rb +91 -0
- data/lib/compass/commands/help.rb +62 -0
- data/lib/compass/commands/installer_command.rb +34 -0
- data/lib/compass/commands/list_frameworks.rb +16 -0
- data/lib/compass/commands/print_version.rb +91 -0
- data/lib/compass/commands/project_base.rb +92 -0
- data/lib/compass/commands/registry.rb +22 -0
- data/lib/compass/commands/stamp_pattern.rb +86 -0
- data/lib/compass/commands/update_project.rb +38 -0
- data/lib/compass/commands/validate_project.rb +21 -0
- data/lib/compass/commands/watch_project.rb +69 -0
- data/lib/compass/commands/write_configuration.rb +32 -0
- data/lib/compass/compiler.rb +54 -0
- data/lib/compass/configuration.rb +38 -0
- data/lib/compass/configuration/adapters.rb +59 -0
- data/lib/compass/configuration/comments.rb +22 -0
- data/lib/compass/configuration/data.rb +103 -0
- data/lib/compass/configuration/defaults.rb +107 -0
- data/lib/compass/configuration/helpers.rb +83 -0
- data/lib/compass/configuration/inheritance.rb +170 -0
- data/lib/compass/configuration/serialization.rb +86 -0
- data/lib/compass/core_ext.rb +14 -0
- data/lib/compass/dependencies.rb +6 -0
- data/lib/compass/errors.rb +7 -0
- data/lib/compass/exec.rb +15 -0
- data/lib/compass/exec/command_option_parser.rb +23 -0
- data/lib/compass/exec/global_options_parser.rb +37 -0
- data/lib/compass/exec/helpers.rb +28 -0
- data/lib/compass/exec/project_options_parser.rb +42 -0
- data/lib/compass/exec/sub_command_ui.rb +45 -0
- data/lib/compass/exec/switch_ui.rb +166 -0
- data/lib/compass/frameworks.rb +53 -0
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +99 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +90 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +3 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +29 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +141 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +122 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +160 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +5 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +10 -0
- data/lib/compass/frameworks/blueprint/templates/project/grid.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
- data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +8 -0
- data/lib/compass/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
- data/lib/compass/frameworks/blueprint/templates/project/print.sass +8 -0
- data/lib/compass/frameworks/blueprint/templates/project/screen.sass +47 -0
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +13 -0
- data/lib/compass/frameworks/compass/stylesheets/_compass.sass +1 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/_misc.sass +24 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +7 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +19 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass +6 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_general.sass +5 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_print.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_border_radius.sass +47 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass +12 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_sizing.sass +13 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_columns.sass +37 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_inline_block.sass +7 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_opacity.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +24 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_float.sass +17 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +6 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +134 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +7 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +52 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +52 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass +13 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +17 -0
- data/lib/compass/frameworks/compass/templates/ellipsis/ellipsis.sass +6 -0
- data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +2 -0
- data/lib/compass/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
- data/lib/compass/frameworks/compass/templates/extension/manifest.rb +6 -0
- data/lib/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
- data/lib/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
- data/lib/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
- data/lib/compass/frameworks/compass/templates/project/ie.sass +6 -0
- data/lib/compass/frameworks/compass/templates/project/manifest.rb +3 -0
- data/lib/compass/frameworks/compass/templates/project/print.sass +6 -0
- data/lib/compass/frameworks/compass/templates/project/screen.sass +13 -0
- data/lib/compass/grid_builder.rb +76 -0
- data/lib/compass/installers.rb +3 -0
- data/lib/compass/installers/base.rb +186 -0
- data/lib/compass/installers/manifest.rb +79 -0
- data/lib/compass/installers/template_context.rb +44 -0
- data/lib/compass/logger.rb +42 -0
- data/lib/compass/sass_extensions.rb +5 -0
- data/lib/compass/sass_extensions/functions.rb +19 -0
- data/lib/compass/sass_extensions/functions/display.rb +22 -0
- data/lib/compass/sass_extensions/functions/enumerate.rb +6 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +35 -0
- data/lib/compass/sass_extensions/functions/selectors.rb +42 -0
- data/lib/compass/sass_extensions/functions/urls.rb +105 -0
- data/lib/compass/sass_extensions/monkey_patches.rb +3 -0
- data/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb +23 -0
- data/lib/compass/test_case.rb +38 -0
- data/lib/compass/validator.rb +10 -0
- data/lib/compass/version.rb +57 -0
- data/lib/vendor/fssm.rb +28 -0
- data/lib/vendor/fssm/backends/fsevents.rb +78 -0
- data/lib/vendor/fssm/backends/polling.rb +24 -0
- data/lib/vendor/fssm/ext.rb +7 -0
- data/lib/vendor/fssm/monitor.rb +21 -0
- data/lib/vendor/fssm/path.rb +88 -0
- data/lib/vendor/fssm/state.rb +46 -0
- data/lib/vendor/fssm/support.rb +26 -0
- data/test/command_line_helper.rb +97 -0
- data/test/command_line_test.rb +67 -0
- data/test/compass_test.rb +132 -0
- data/test/configuration_test.rb +123 -0
- data/test/fixtures/stylesheets/blueprint/config.rb +9 -0
- data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
- data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
- data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
- data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
- data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
- data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
- data/test/fixtures/stylesheets/compass/config.rb +9 -0
- data/test/fixtures/stylesheets/compass/css/layout.css +15 -0
- data/test/fixtures/stylesheets/compass/css/print.css +18 -0
- data/test/fixtures/stylesheets/compass/css/reset.css +60 -0
- data/test/fixtures/stylesheets/compass/css/utilities.css +17 -0
- data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
- data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
- data/test/fixtures/stylesheets/compass/sass/reset.sass +10 -0
- data/test/fixtures/stylesheets/compass/sass/utilities.sass +6 -0
- data/test/fixtures/stylesheets/image_urls/config.rb +17 -0
- data/test/fixtures/stylesheets/image_urls/css/screen.css +3 -0
- data/test/fixtures/stylesheets/image_urls/images/grid.png +0 -0
- data/test/fixtures/stylesheets/image_urls/sass/screen.sass +6 -0
- data/test/io_helper.rb +19 -0
- data/test/rails_integration_test.rb +84 -0
- data/test/sass_extensions_test.rb +31 -0
- data/test/test_case_helper.rb +13 -0
- data/test/test_helper.rb +27 -0
- data/test/test_rails_helper.rb +20 -0
- metadata +404 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
!!! Transitional
|
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
|
|
3
|
+
%head
|
|
4
|
+
%title Yahoo Grid Divisions Example
|
|
5
|
+
%link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
|
|
6
|
+
:javascript
|
|
7
|
+
function changeTemplate() {
|
|
8
|
+
var templateClass = document.getElementById("current-template").value;
|
|
9
|
+
document.getElementById("doc4").className = templateClass;
|
|
10
|
+
}
|
|
11
|
+
%style{:type => "text/css"}
|
|
12
|
+
:sass
|
|
13
|
+
.yui-b
|
|
14
|
+
border: 1px dotted #ccc
|
|
15
|
+
%body
|
|
16
|
+
#doc4.yui-t2
|
|
17
|
+
#hd
|
|
18
|
+
%h1 Yahoo Grid Divisions Example
|
|
19
|
+
#bd
|
|
20
|
+
.yui-b
|
|
21
|
+
%h3 YUI Examples
|
|
22
|
+
%ul
|
|
23
|
+
%li
|
|
24
|
+
%a{:href=>"templates.html"} Template Presets
|
|
25
|
+
%li
|
|
26
|
+
%a{:href=>"typography.html"} Typography
|
|
27
|
+
%li
|
|
28
|
+
%a{:href=>"divisions.html"} Grid Divisions
|
|
29
|
+
%label{:for => "current-template"} Select Template Preset
|
|
30
|
+
%select{:id=>"current-template", :onchange => "changeTemplate()"}
|
|
31
|
+
%option{:value => "yui-t1"}= ".yui-t1"
|
|
32
|
+
%option{:value => "yui-t2", :selected => "selected"}= ".yui-t2"
|
|
33
|
+
%option{:value => "yui-t3"}= ".yui-t3"
|
|
34
|
+
%option{:value => "yui-t4"}= ".yui-t4"
|
|
35
|
+
%option{:value => "yui-t5"}= ".yui-t5"
|
|
36
|
+
%option{:value => "yui-t6"}= ".yui-t6"
|
|
37
|
+
|
|
38
|
+
#yui-main
|
|
39
|
+
.yui-b
|
|
40
|
+
%h2 50/50 Division
|
|
41
|
+
%hr
|
|
42
|
+
.yui-g
|
|
43
|
+
.yui-u.first
|
|
44
|
+
%h3 Left Side
|
|
45
|
+
%p
|
|
46
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
47
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
48
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
49
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
50
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
51
|
+
officia deserunt mollit anim id est laborum.
|
|
52
|
+
.yui-u
|
|
53
|
+
%h3 Right Side
|
|
54
|
+
%p
|
|
55
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
56
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
57
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
58
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
59
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
60
|
+
officia deserunt mollit anim id est laborum.
|
|
61
|
+
%h2 33/33/33 Division
|
|
62
|
+
%hr
|
|
63
|
+
.yui-gb
|
|
64
|
+
.yui-u.first
|
|
65
|
+
%h3 Left Side
|
|
66
|
+
%p
|
|
67
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
68
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
69
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
70
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
71
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
72
|
+
officia deserunt mollit anim id est laborum.
|
|
73
|
+
.yui-u
|
|
74
|
+
%h3 Middle
|
|
75
|
+
%p
|
|
76
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
77
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
78
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
79
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
80
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
81
|
+
officia deserunt mollit anim id est laborum.
|
|
82
|
+
|
|
83
|
+
.yui-u
|
|
84
|
+
%h3 Right Side
|
|
85
|
+
%p
|
|
86
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
87
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
88
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
89
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
90
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
91
|
+
officia deserunt mollit anim id est laborum.
|
|
92
|
+
%h2 67/33 Division
|
|
93
|
+
%hr
|
|
94
|
+
.yui-gc
|
|
95
|
+
.yui-u.first
|
|
96
|
+
%h3 Left Side
|
|
97
|
+
%p
|
|
98
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
99
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
100
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
101
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
102
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
103
|
+
officia deserunt mollit anim id est laborum.
|
|
104
|
+
.yui-u
|
|
105
|
+
%h3 Right Side
|
|
106
|
+
%p
|
|
107
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
108
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
109
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
110
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
111
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
112
|
+
officia deserunt mollit anim id est laborum.
|
|
113
|
+
%h2 33/67 Division
|
|
114
|
+
%hr
|
|
115
|
+
.yui-gd
|
|
116
|
+
.yui-u.first
|
|
117
|
+
%h3 Left Side
|
|
118
|
+
%p
|
|
119
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
120
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
121
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
122
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
123
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
124
|
+
officia deserunt mollit anim id est laborum.
|
|
125
|
+
.yui-u
|
|
126
|
+
%h3 Right Side
|
|
127
|
+
%p
|
|
128
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
129
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
130
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
131
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
132
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
133
|
+
officia deserunt mollit anim id est laborum.
|
|
134
|
+
%h2 75/25 Division
|
|
135
|
+
%hr
|
|
136
|
+
.yui-ge
|
|
137
|
+
.yui-u.first
|
|
138
|
+
%h3 Left Side
|
|
139
|
+
%p
|
|
140
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
141
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
142
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
143
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
144
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
145
|
+
officia deserunt mollit anim id est laborum.
|
|
146
|
+
.yui-u
|
|
147
|
+
%h3 Right Side
|
|
148
|
+
%p
|
|
149
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
150
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
151
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
152
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
153
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
154
|
+
officia deserunt mollit anim id est laborum.
|
|
155
|
+
%h2 25/75 Division
|
|
156
|
+
%hr
|
|
157
|
+
.yui-gf
|
|
158
|
+
.yui-u.first
|
|
159
|
+
%h3 Left Side
|
|
160
|
+
%p
|
|
161
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
162
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
163
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
164
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
165
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
166
|
+
officia deserunt mollit anim id est laborum.
|
|
167
|
+
.yui-u
|
|
168
|
+
%h3 Right Side
|
|
169
|
+
%p
|
|
170
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
171
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
172
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
173
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
174
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
175
|
+
officia deserunt mollit anim id est laborum.
|
|
176
|
+
|
|
177
|
+
#ft
|
|
178
|
+
Copyright © 2008. All Rights Reserved.
|
|
179
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
=yui-base
|
|
2
|
+
body
|
|
3
|
+
:margin 10px
|
|
4
|
+
|
|
5
|
+
h1
|
|
6
|
+
:font-size 138.5%
|
|
7
|
+
|
|
8
|
+
h2
|
|
9
|
+
:font-size 123.1%
|
|
10
|
+
|
|
11
|
+
h3
|
|
12
|
+
:font-size 108%
|
|
13
|
+
|
|
14
|
+
h1, h2, h3
|
|
15
|
+
:margin 1em 0
|
|
16
|
+
|
|
17
|
+
h1,h2, h3, h4, h5, h6, strong, dt
|
|
18
|
+
:font-weight bold
|
|
19
|
+
|
|
20
|
+
optgroup
|
|
21
|
+
:font-weight normal
|
|
22
|
+
|
|
23
|
+
abbr, acronym
|
|
24
|
+
:border-bottom 1px dotted #000
|
|
25
|
+
:cursor help
|
|
26
|
+
|
|
27
|
+
em
|
|
28
|
+
:font-style italic
|
|
29
|
+
|
|
30
|
+
del
|
|
31
|
+
:text-decoration line-through
|
|
32
|
+
|
|
33
|
+
blockquote, ul, ol, dl
|
|
34
|
+
:margin 1em
|
|
35
|
+
|
|
36
|
+
ol,ul,dl
|
|
37
|
+
:margin-left 2em
|
|
38
|
+
|
|
39
|
+
ol li
|
|
40
|
+
:list-style decimal outside
|
|
41
|
+
|
|
42
|
+
ul li
|
|
43
|
+
:list-style disc outside
|
|
44
|
+
|
|
45
|
+
dl dd
|
|
46
|
+
:margin-left 1em
|
|
47
|
+
|
|
48
|
+
th, td
|
|
49
|
+
:border 1px solid #000
|
|
50
|
+
:padding .5em
|
|
51
|
+
|
|
52
|
+
th
|
|
53
|
+
:font-weight bold
|
|
54
|
+
:text-align center
|
|
55
|
+
|
|
56
|
+
caption
|
|
57
|
+
:margin-bottom .5em
|
|
58
|
+
:text-align center
|
|
59
|
+
|
|
60
|
+
sup
|
|
61
|
+
:vertical-align super
|
|
62
|
+
|
|
63
|
+
sub
|
|
64
|
+
:vertical-align sub
|
|
65
|
+
|
|
66
|
+
p, fieldset, table, pre
|
|
67
|
+
:margin-bottom 1em
|
|
68
|
+
|
|
69
|
+
button, input[type="checkbox"], input[type="radio"], input[type="reset"], input[type="submit"]
|
|
70
|
+
padding: 1px
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
!yui_default_base_font_size ||= 13px
|
|
2
|
+
!yui_default_base_line_height ||= 1.231
|
|
3
|
+
!yui_default_font_family ||= "arial,helvetica,clean,sans-serif"
|
|
4
|
+
|
|
5
|
+
// Sets the font size specified in pixels using percents so that the base
|
|
6
|
+
// font size changes and 1em has the correct value. When nesting font size
|
|
7
|
+
// declarations, within the DOM tree, the base_font_size must be the parent's
|
|
8
|
+
// effective font-size in pixels.
|
|
9
|
+
// Usage Examples:
|
|
10
|
+
// .big
|
|
11
|
+
// +font-size(16px)
|
|
12
|
+
// .bigger
|
|
13
|
+
// +font-size(18px)
|
|
14
|
+
// .big .bigger
|
|
15
|
+
// +font-size(18px, 16px)
|
|
16
|
+
//
|
|
17
|
+
// For more information see the table found at http://developer.yahoo.com/yui/fonts/#fontsize
|
|
18
|
+
=font-size(!size, !base_font_size = !yui_default_base_font_size)
|
|
19
|
+
:font-size= percentage(!size / !base_font_size)
|
|
20
|
+
|
|
21
|
+
// Sets the base fonts for a page, this should be mixed into the top level of a stylesheet.
|
|
22
|
+
=yui-base-fonts(!family = !yui_default_font_family, !size = !yui_default_base_font_size, !line_height = !yui_default_base_line_height)
|
|
23
|
+
body
|
|
24
|
+
:font
|
|
25
|
+
:size= !size
|
|
26
|
+
:family= !family
|
|
27
|
+
:line-height= !line_height
|
|
28
|
+
:*font-size small
|
|
29
|
+
:*font x-small
|
|
30
|
+
|
|
31
|
+
select,
|
|
32
|
+
input,
|
|
33
|
+
button,
|
|
34
|
+
textarea,
|
|
35
|
+
button
|
|
36
|
+
:font 99% arial,helvetica,clean,sans-serif
|
|
37
|
+
|
|
38
|
+
table
|
|
39
|
+
:font-size inherit
|
|
40
|
+
:font 100%
|
|
41
|
+
|
|
42
|
+
pre, code, kbd, samp, tt
|
|
43
|
+
:font-family monospace
|
|
44
|
+
:*font-size 108%
|
|
45
|
+
:line-height 100%
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
// This is a port of YUI Grids version 2.6.0
|
|
2
|
+
// Note: This is not really tested yet. Use at your own risk.
|
|
3
|
+
|
|
4
|
+
@import compass/utilities/general/float.sass
|
|
5
|
+
@import fonts.sass
|
|
6
|
+
|
|
7
|
+
=yui-grids
|
|
8
|
+
+yui-grids-init
|
|
9
|
+
+yui-grid-templates
|
|
10
|
+
+yui-grid-divisions
|
|
11
|
+
|
|
12
|
+
=yui-grid-templates
|
|
13
|
+
#doc
|
|
14
|
+
+yui-document(750px)
|
|
15
|
+
#doc2
|
|
16
|
+
+yui-document(950px)
|
|
17
|
+
#doc3
|
|
18
|
+
+yui-document("fluid")
|
|
19
|
+
#doc4
|
|
20
|
+
+yui-document(974px)
|
|
21
|
+
/* Section: Preset Template Rules (.yui-t[1-6])
|
|
22
|
+
.yui-t1
|
|
23
|
+
+yui-two-column-left-template(160px)
|
|
24
|
+
.yui-t2
|
|
25
|
+
+yui-two-column-left-template(180px)
|
|
26
|
+
.yui-t3
|
|
27
|
+
+yui-two-column-left-template(300px)
|
|
28
|
+
.yui-t4
|
|
29
|
+
+yui-two-column-right-template(180px)
|
|
30
|
+
.yui-t5
|
|
31
|
+
+yui-two-column-right-template(240px)
|
|
32
|
+
.yui-t6
|
|
33
|
+
+yui-two-column-right-template(300px)
|
|
34
|
+
.yui-t7
|
|
35
|
+
+yui-one-column-template
|
|
36
|
+
|
|
37
|
+
=yui-group-clearing
|
|
38
|
+
zoom: 1
|
|
39
|
+
&:after
|
|
40
|
+
content: "."
|
|
41
|
+
display: block
|
|
42
|
+
height: 0
|
|
43
|
+
clear: both
|
|
44
|
+
visibility: hidden
|
|
45
|
+
|
|
46
|
+
=yui-grids-init(!header = "#hd", !footer = "#ft", !body = "#bd")
|
|
47
|
+
/* Section: General Rules
|
|
48
|
+
body
|
|
49
|
+
:text-align center
|
|
50
|
+
@if !header
|
|
51
|
+
#{!header}
|
|
52
|
+
+yui-group-clearing
|
|
53
|
+
@if !footer
|
|
54
|
+
#{!footer}
|
|
55
|
+
+yui-group-clearing
|
|
56
|
+
@if !body
|
|
57
|
+
#{!body}
|
|
58
|
+
+yui-group-clearing
|
|
59
|
+
|
|
60
|
+
=em-size(!style, !px_size, !base_font_size = !yui_default_base_font_size)
|
|
61
|
+
:#{!style}= 1em * !px_size / !base_font_size
|
|
62
|
+
|
|
63
|
+
=em-size-hacked(!style, !px_size, !base_font_size = !yui_default_base_font_size)
|
|
64
|
+
+em-size(!style, !px_size, !base_font_size)
|
|
65
|
+
+em-size("*"+!style, !px_size * 39 / 40, !base_font_size)
|
|
66
|
+
|
|
67
|
+
// All documents must have these styles
|
|
68
|
+
=yui-document-base(!min_width = false)
|
|
69
|
+
:margin auto
|
|
70
|
+
:text-align left
|
|
71
|
+
@if !min_width
|
|
72
|
+
:min-width= !min_width
|
|
73
|
+
|
|
74
|
+
=yui-block-base
|
|
75
|
+
:position relative
|
|
76
|
+
:_position static
|
|
77
|
+
|
|
78
|
+
=yui-main-block
|
|
79
|
+
:float none
|
|
80
|
+
:width auto
|
|
81
|
+
|
|
82
|
+
// Creates a fixed width document container
|
|
83
|
+
// Pass "fluid" for the width to create a document that grows with the width of the browser.
|
|
84
|
+
=yui-document(!width, !min_width = false, !base_font_size = !yui_default_base_font_size)
|
|
85
|
+
+yui-document-base(!min_width)
|
|
86
|
+
@if !width == "fluid"
|
|
87
|
+
:margin auto 10px
|
|
88
|
+
:width auto
|
|
89
|
+
@else
|
|
90
|
+
+em-size-hacked("width", !width, !base_font_size)
|
|
91
|
+
|
|
92
|
+
=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)
|
|
93
|
+
+yui-document(!document_width, !min_width, !base_font_size)
|
|
94
|
+
#{!block_selector}
|
|
95
|
+
+yui-block-base
|
|
96
|
+
:float left
|
|
97
|
+
+em-size-hacked("width", !column_width, !base_font_size)
|
|
98
|
+
#{!main_selector}
|
|
99
|
+
:width 100%
|
|
100
|
+
:float right
|
|
101
|
+
:margin-left -25em
|
|
102
|
+
#{!block_selector}
|
|
103
|
+
+yui-main-block
|
|
104
|
+
+em-size("margin-left", !column_width + 13px, !base_font_size)
|
|
105
|
+
// 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
|
|
106
|
+
@if !column_width > 180px
|
|
107
|
+
+em-size("*margin-left", (!column_width + 15px) * 39 / 40, !base_font_size)
|
|
108
|
+
@else
|
|
109
|
+
+em-size("*margin-left", (!column_width + 14px) * 39 / 40, !base_font_size)
|
|
110
|
+
|
|
111
|
+
=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)
|
|
112
|
+
+yui-document(!document_width, !min_width, !base_font_size)
|
|
113
|
+
#{!block_selector}
|
|
114
|
+
+yui-block-base
|
|
115
|
+
:float right
|
|
116
|
+
+em-size-hacked("width", !column_width, !base_font_size)
|
|
117
|
+
#{!main_selector}
|
|
118
|
+
:width 100%
|
|
119
|
+
:float left
|
|
120
|
+
:margin-right -25em
|
|
121
|
+
#{!block_selector}
|
|
122
|
+
+yui-main-block
|
|
123
|
+
+em-size("margin-right", !column_width + 13px, !base_font_size)
|
|
124
|
+
// 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
|
|
125
|
+
@if !column_width > 180px
|
|
126
|
+
+em-size("*margin-right", (!column_width + 15px) * 39 / 40, !base_font_size)
|
|
127
|
+
@else
|
|
128
|
+
+em-size("*margin-right", (!column_width + 14px) * 39 / 40, !base_font_size)
|
|
129
|
+
|
|
130
|
+
=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)
|
|
131
|
+
+yui-document(!document_width, !min_width, !base_font_size)
|
|
132
|
+
#{!main_selector}
|
|
133
|
+
#{!block_selector}
|
|
134
|
+
+yui-main-block
|
|
135
|
+
:display block
|
|
136
|
+
:margin 0 0 1em 0
|
|
137
|
+
|
|
138
|
+
=yui-custom-template(!main_selector = "#yui-main", !block_selector = ".yui-b")
|
|
139
|
+
#{!block_selector}
|
|
140
|
+
+yui-block-base
|
|
141
|
+
#{!main_selector}
|
|
142
|
+
:width 100%
|
|
143
|
+
#{!block_selector}
|
|
144
|
+
+yui-main-block
|
|
145
|
+
|
|
146
|
+
=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")
|
|
147
|
+
|
|
148
|
+
/* Section: Grids and Nesting Grids
|
|
149
|
+
|
|
150
|
+
/* from #yui-main, .yui-g .yui-u .yui-g
|
|
151
|
+
#{nest(!g_50_50, !unit, !g_50_50)}
|
|
152
|
+
width: 100%
|
|
153
|
+
|
|
154
|
+
/* Children generally take half the available space
|
|
155
|
+
#{nest(!g_33_33_33, !unit)},
|
|
156
|
+
#{nest(!g_50_50, !g_33_33_33, !unit)},
|
|
157
|
+
#{nest(!g_33_33_33, !g_50_50)},
|
|
158
|
+
#{nest(!g_33_33_33, !g_33_33_33)},
|
|
159
|
+
#{nest(!g_33_33_33, !g_67_33)},
|
|
160
|
+
#{nest(!g_33_33_33, !g_33_67)},
|
|
161
|
+
#{nest(!g_33_33_33, !g_75_25)},
|
|
162
|
+
#{nest(!g_33_33_33, !g_25_75)},
|
|
163
|
+
#{nest(!g_67_33, !unit)},
|
|
164
|
+
#{nest(!g_67_33, !g_50_50)},
|
|
165
|
+
#{nest(!g_33_67, !unit)}
|
|
166
|
+
float: left
|
|
167
|
+
|
|
168
|
+
/* Float units (and sub grids) to the right
|
|
169
|
+
#{nest(!g_50_50, !unit)},
|
|
170
|
+
#{nest(!g_50_50, !g_50_50)},
|
|
171
|
+
#{nest(!g_50_50, !g_33_33_33)},
|
|
172
|
+
#{nest(!g_50_50, !g_67_33)},
|
|
173
|
+
#{nest(!g_50_50, !g_33_67)},
|
|
174
|
+
#{nest(!g_50_50, !g_75_25)},
|
|
175
|
+
#{nest(!g_50_50, !g_25_75)},
|
|
176
|
+
#{nest(!g_67_33, !unit)},
|
|
177
|
+
#{nest(!g_33_67, !g_50_50)},
|
|
178
|
+
#{nest(!g_50_50, !g_67_33, !unit)},
|
|
179
|
+
#{nest(!g_75_25, !unit)},
|
|
180
|
+
#{nest(!g_75_25, !g_50_50)},
|
|
181
|
+
#{nest(!g_25_75, !g_50_50)},
|
|
182
|
+
#{nest(!g_25_75, !unit)}
|
|
183
|
+
float: right
|
|
184
|
+
|
|
185
|
+
/* Float units (and sub grids) to the left
|
|
186
|
+
#{!g_50_50},
|
|
187
|
+
#{!g_33_33_33},
|
|
188
|
+
#{!g_67_33},
|
|
189
|
+
#{!g_33_67},
|
|
190
|
+
#{!g_75_25},
|
|
191
|
+
#{!g_25_75},
|
|
192
|
+
#{nest(!g_50_50, !g_67_33)},
|
|
193
|
+
#{nest(!g_50_50, !g_75_25)},
|
|
194
|
+
#{nest(!g_67_33, "div.first")}
|
|
195
|
+
div.first
|
|
196
|
+
float: left
|
|
197
|
+
|
|
198
|
+
#{!g_50_50}
|
|
199
|
+
#{!unit},
|
|
200
|
+
#{!g_50_50},
|
|
201
|
+
#{!g_33_33_33},
|
|
202
|
+
#{!g_67_33},
|
|
203
|
+
#{!g_33_67},
|
|
204
|
+
#{!g_75_25},
|
|
205
|
+
#{!g_25_75}
|
|
206
|
+
width: 49.1%
|
|
207
|
+
|
|
208
|
+
#{nest(!g_33_33_33, !unit)},
|
|
209
|
+
#{nest(!g_50_50, !g_33_33_33, !unit)},
|
|
210
|
+
#{nest(!g_33_33_33, !g_50_50)},
|
|
211
|
+
#{nest(!g_33_33_33, !g_33_33_33)},
|
|
212
|
+
#{nest(!g_33_33_33, !g_67_33)},
|
|
213
|
+
#{nest(!g_33_33_33, !g_33_67)},
|
|
214
|
+
#{nest(!g_33_33_33, !g_75_25)},
|
|
215
|
+
#{nest(!g_33_33_33, !g_25_75)},
|
|
216
|
+
#{nest(!g_67_33, !unit)},
|
|
217
|
+
#{nest(!g_67_33, !g_50_50)},
|
|
218
|
+
#{nest(!g_33_67, !unit)}
|
|
219
|
+
width: 32%
|
|
220
|
+
margin-left: 1.99%
|
|
221
|
+
|
|
222
|
+
/* Give IE some extra breathing room for 1/3-based rounding issues
|
|
223
|
+
#{nest(!g_33_33_33, !unit)}
|
|
224
|
+
*margin-left: 1.9%
|
|
225
|
+
*width: 31.9%
|
|
226
|
+
|
|
227
|
+
#{nest(!g_50_50, !g_33_33_33)},
|
|
228
|
+
#{!g_33_33_33},
|
|
229
|
+
#{!g_67_33},
|
|
230
|
+
#{!g_33_67}
|
|
231
|
+
div.first
|
|
232
|
+
margin-left: 0
|
|
233
|
+
|
|
234
|
+
/* Section: Deep Nesting
|
|
235
|
+
#{!g_50_50},
|
|
236
|
+
#{!g_33_33_33},
|
|
237
|
+
#{!g_67_33},
|
|
238
|
+
#{!g_33_67},
|
|
239
|
+
#{!g_75_25},
|
|
240
|
+
#{!g_25_75}
|
|
241
|
+
#{!g_50_50}
|
|
242
|
+
#{!unit}
|
|
243
|
+
width: 49%
|
|
244
|
+
*width: 48.1%
|
|
245
|
+
*margin-left: 0
|
|
246
|
+
|
|
247
|
+
#{nest(!g_50_50, !g_50_50, !unit)}
|
|
248
|
+
width: 48.1%
|
|
249
|
+
|
|
250
|
+
#{!g_50_50},
|
|
251
|
+
#{!g_33_33_33}
|
|
252
|
+
#{!g_33_33_33}
|
|
253
|
+
div.first
|
|
254
|
+
*margin-right: 0
|
|
255
|
+
*width: 32%
|
|
256
|
+
_width: 31.7%
|
|
257
|
+
|
|
258
|
+
#{nest(!g_50_50, !g_67_33, "div.first")},
|
|
259
|
+
#{nest(!g_67_33, "div.first")},
|
|
260
|
+
#{nest(!g_33_67, !g_50_50)},
|
|
261
|
+
#{nest(!g_33_67, !unit)}
|
|
262
|
+
width: 66%
|
|
263
|
+
|
|
264
|
+
#{nest(!g_33_33_33, !g_50_50, "div.first")}
|
|
265
|
+
*margin-right: 4%
|
|
266
|
+
_margin-right: 1.3%
|
|
267
|
+
|
|
268
|
+
#{!g_33_33_33}
|
|
269
|
+
#{!g_67_33},
|
|
270
|
+
#{!g_33_67}
|
|
271
|
+
div.first
|
|
272
|
+
*margin-right: 0
|
|
273
|
+
|
|
274
|
+
#{!g_33_33_33}
|
|
275
|
+
#{!g_33_33_33},
|
|
276
|
+
#{!g_67_33}
|
|
277
|
+
#{!unit}
|
|
278
|
+
*margin-left: 1.8%
|
|
279
|
+
_margin-left: 4%
|
|
280
|
+
|
|
281
|
+
#{nest(!g_50_50, !g_33_33_33, !unit)}
|
|
282
|
+
_margin-left: 1.0%
|
|
283
|
+
|
|
284
|
+
#{nest(!g_33_33_33, !g_33_67, !unit)}
|
|
285
|
+
*width: 66%
|
|
286
|
+
_width: 61.2%
|
|
287
|
+
|
|
288
|
+
#{nest(!g_33_33_33, !g_33_67, "div.first")}
|
|
289
|
+
*width: 31%
|
|
290
|
+
_width: 29.5%
|
|
291
|
+
|
|
292
|
+
#{!g_50_50},
|
|
293
|
+
#{!g_33_33_33}
|
|
294
|
+
#{!g_67_33}
|
|
295
|
+
#{!unit}
|
|
296
|
+
width: 32%
|
|
297
|
+
_float: right
|
|
298
|
+
margin-right: 0
|
|
299
|
+
_margin-left: 0
|
|
300
|
+
|
|
301
|
+
#{nest(!g_33_33_33, !g_67_33, "div.first")}
|
|
302
|
+
width: 66%
|
|
303
|
+
*float: left
|
|
304
|
+
*margin-left: 0
|
|
305
|
+
|
|
306
|
+
#{!g_33_33_33}
|
|
307
|
+
#{!g_75_25},
|
|
308
|
+
#{!g_25_75}
|
|
309
|
+
#{!unit}
|
|
310
|
+
margin: 0
|
|
311
|
+
|
|
312
|
+
#{nest(!g_33_33_33, !g_33_33_33, !unit)}
|
|
313
|
+
_margin-left: .7%
|
|
314
|
+
|
|
315
|
+
#{nest(!g_33_33_33, !g_50_50)},
|
|
316
|
+
#{nest(!g_33_33_33, !g_33_33_33)}
|
|
317
|
+
div.first
|
|
318
|
+
*margin-left: 0
|
|
319
|
+
|
|
320
|
+
#{!g_67_33},
|
|
321
|
+
#{!g_33_67}
|
|
322
|
+
#{!g_50_50}
|
|
323
|
+
#{!unit}
|
|
324
|
+
*width: 48.1%
|
|
325
|
+
*margin-left: 0
|
|
326
|
+
|
|
327
|
+
#{!g_33_67},
|
|
328
|
+
#{nest(!g_33_33_33, !g_33_67)}
|
|
329
|
+
div.first
|
|
330
|
+
width: 32%
|
|
331
|
+
|
|
332
|
+
#{nest(!g_50_50, !g_33_67, "div.first")}
|
|
333
|
+
_width: 29.9%
|
|
334
|
+
|
|
335
|
+
#{nest(!g_75_25, !unit)},
|
|
336
|
+
#{nest(!g_75_25, !g_50_50)},
|
|
337
|
+
#{nest(!g_25_75, "div.first")}
|
|
338
|
+
width: 24%
|
|
339
|
+
|
|
340
|
+
#{nest(!g_75_25, "div.first")},
|
|
341
|
+
#{nest(!g_25_75, !g_50_50)},
|
|
342
|
+
#{nest(!g_25_75, !unit)}
|
|
343
|
+
width: 74.2%
|
|
344
|
+
|
|
345
|
+
#{!g_33_33_33}
|
|
346
|
+
#{!g_75_25},
|
|
347
|
+
#{!g_25_75}
|
|
348
|
+
div#{!unit}
|
|
349
|
+
float: right
|
|
350
|
+
|
|
351
|
+
#{!g_33_33_33}
|
|
352
|
+
#{!g_75_25},
|
|
353
|
+
#{!g_25_75}
|
|
354
|
+
div.first
|
|
355
|
+
float: left
|
|
356
|
+
|
|
357
|
+
/* Width Accommodation for Nested Contexts
|
|
358
|
+
#{!g_33_33_33}
|
|
359
|
+
#{nest(!g_75_25, !unit)},
|
|
360
|
+
#{nest(!g_25_75, "div.first")}
|
|
361
|
+
*width: 24%
|
|
362
|
+
_width: 20%
|
|
363
|
+
|
|
364
|
+
/* Width Accommodation for Nested Contexts
|
|
365
|
+
#{!g_33_33_33}
|
|
366
|
+
#{nest(!g_75_25, "div.first")},
|
|
367
|
+
#{nest(!g_25_75, !unit)}
|
|
368
|
+
*width: 73.5%
|
|
369
|
+
_width: 65.5%
|
|
370
|
+
|
|
371
|
+
/* Patch for GD within GE
|
|
372
|
+
#{nest(!g_75_25, "div.first", !g_33_67, !unit)}
|
|
373
|
+
width: 65%
|
|
374
|
+
|
|
375
|
+
#{nest(!g_75_25, "div.first", !g_33_67, "div.first")}
|
|
376
|
+
width: 32%
|
|
377
|
+
|
|
378
|
+
/* @group Clearing
|
|
379
|
+
#{!g_50_50},
|
|
380
|
+
#{!g_33_33_33},
|
|
381
|
+
#{!g_67_33},
|
|
382
|
+
#{!g_33_67},
|
|
383
|
+
#{!g_75_25},
|
|
384
|
+
#{!g_25_75}
|
|
385
|
+
+yui-group-clearing
|