compass 0.8.16
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 +551 -0
- data/LICENSE.markdown +29 -0
- data/README.markdown +44 -0
- data/REVISION +1 -0
- data/Rakefile +127 -0
- data/VERSION.yml +4 -0
- data/bin/compass +8 -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 +3 -0
- data/examples/blueprint_scoped/src/print.sass +3 -0
- data/examples/blueprint_scoped/src/screen.sass +4 -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 +70 -0
- data/examples/blueprint_semantic/src/print.sass +3 -0
- data/examples/blueprint_semantic/src/screen.sass +71 -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/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/yui/divisions.html.haml +179 -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/frameworks/blueprint.rb +2 -0
- data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
- data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +93 -0
- data/frameworks/blueprint/stylesheets/blueprint/_print.sass +83 -0
- data/frameworks/blueprint/stylesheets/blueprint/_reset.sass +3 -0
- data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +141 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +104 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +155 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
- data/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
- data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
- data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/frameworks/blueprint/templates/buttons/manifest.rb +5 -0
- data/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/frameworks/blueprint/templates/link_icons/manifest.rb +10 -0
- data/frameworks/blueprint/templates/project/grid.png +0 -0
- data/frameworks/blueprint/templates/project/ie.sass +15 -0
- data/frameworks/blueprint/templates/project/manifest.rb +6 -0
- data/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
- data/frameworks/blueprint/templates/project/print.sass +3 -0
- data/frameworks/blueprint/templates/project/screen.sass +40 -0
- data/frameworks/compass.rb +2 -0
- data/frameworks/compass/stylesheets/_compass.sass +1 -0
- data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
- data/frameworks/compass/stylesheets/compass/_misc.sass +24 -0
- data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
- data/frameworks/compass/stylesheets/compass/_utilities.sass +6 -0
- data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
- data/frameworks/compass/stylesheets/compass/utilities/_general.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
- data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_float.sass +17 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +134 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +52 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +12 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass +13 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +17 -0
- data/frameworks/compass/templates/ellipsis/ellipsis.sass +6 -0
- data/frameworks/compass/templates/ellipsis/manifest.rb +2 -0
- data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
- data/frameworks/compass/templates/project/ie.sass +6 -0
- data/frameworks/compass/templates/project/manifest.rb +3 -0
- data/frameworks/compass/templates/project/print.sass +6 -0
- data/frameworks/compass/templates/project/screen.sass +13 -0
- data/frameworks/yui.rb +2 -0
- data/frameworks/yui/stylesheets/_yui.sass +7 -0
- data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
- data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
- data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
- data/frameworks/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/frameworks/yui/templates/project/manifest.rb +1 -0
- data/frameworks/yui/templates/project/screen.sass +4 -0
- data/lib/compass.rb +23 -0
- data/lib/compass/actions.rb +110 -0
- data/lib/compass/app_integration.rb +5 -0
- data/lib/compass/app_integration/merb.rb +43 -0
- data/lib/compass/app_integration/rails.rb +12 -0
- data/lib/compass/app_integration/rails/action_controller.rb +15 -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/commands/base.rb +33 -0
- data/lib/compass/commands/create_project.rb +19 -0
- data/lib/compass/commands/generate_grid_background.rb +24 -0
- data/lib/compass/commands/installer_command.rb +31 -0
- data/lib/compass/commands/list_frameworks.rb +16 -0
- data/lib/compass/commands/print_version.rb +23 -0
- data/lib/compass/commands/project_base.rb +112 -0
- data/lib/compass/commands/stamp_pattern.rb +33 -0
- data/lib/compass/commands/update_project.rb +34 -0
- data/lib/compass/commands/validate_project.rb +21 -0
- data/lib/compass/commands/watch_project.rb +64 -0
- data/lib/compass/commands/write_configuration.rb +28 -0
- data/lib/compass/compiler.rb +54 -0
- data/lib/compass/configuration.rb +324 -0
- data/lib/compass/core_ext.rb +14 -0
- data/lib/compass/dependencies.rb +10 -0
- data/lib/compass/errors.rb +7 -0
- data/lib/compass/exec.rb +251 -0
- data/lib/compass/frameworks.rb +29 -0
- data/lib/compass/grid_builder.rb +72 -0
- data/lib/compass/installers.rb +5 -0
- data/lib/compass/installers/base.rb +158 -0
- data/lib/compass/installers/manifest.rb +58 -0
- data/lib/compass/installers/rails.rb +135 -0
- data/lib/compass/installers/stand_alone.rb +60 -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 +39 -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 +41 -0
- data/lib/vendor/fssm/backends/fsevents.rb +37 -0
- data/lib/vendor/fssm/backends/polling.rb +26 -0
- data/lib/vendor/fssm/cache.rb +193 -0
- data/lib/vendor/fssm/ext.rb +37 -0
- data/lib/vendor/fssm/fsevents.rb +129 -0
- data/lib/vendor/fssm/monitor.rb +25 -0
- data/lib/vendor/fssm/path.rb +91 -0
- data/lib/vendor/fssm/state.rb +54 -0
- data/lib/vendor/fssm/support.rb +22 -0
- data/lib/vendor/fssm/tree.rb +176 -0
- data/test/command_line_helper.rb +102 -0
- data/test/command_line_test.rb +66 -0
- data/test/compass_test.rb +141 -0
- data/test/configuration_test.rb +118 -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 +13 -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/fixtures/stylesheets/yui/config.rb +9 -0
- data/test/fixtures/stylesheets/yui/css/mixins.css +13 -0
- data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
- data/test/rails_integration_test.rb +83 -0
- data/test/sass_extensions_test.rb +31 -0
- data/test/test_case_helper.rb +13 -0
- data/test/test_helper.rb +21 -0
- data/test/test_rails_helper.rb +20 -0
- metadata +372 -0
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Emits styles for a tag cloud
|
|
2
|
+
=tag-cloud(!base_size = 1em)
|
|
3
|
+
:font-size= !base_size
|
|
4
|
+
:line-height= 1.2 * !base_size
|
|
5
|
+
.xxs, .xs, .s, .l, .xl, .xxl
|
|
6
|
+
:line-height= 1.2 * !base_size
|
|
7
|
+
.xxs
|
|
8
|
+
:font-size= !base_size / 2.0
|
|
9
|
+
.xs
|
|
10
|
+
:font-size= 2.0 * !base_size / 3.0
|
|
11
|
+
.s
|
|
12
|
+
:font-size= 3.0 * !base_size / 4.0
|
|
13
|
+
.l
|
|
14
|
+
:font-size= 4.0 * !base_size / 3.0
|
|
15
|
+
.xl
|
|
16
|
+
:font-size= 3.0 * !base_size / 2.0
|
|
17
|
+
.xxl
|
|
18
|
+
:font-size= 2.0 * !base_size
|
|
19
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Set all the colors for a link with one mixin call
|
|
2
|
+
// Order of arguments is:
|
|
3
|
+
// normal, hover, active, visited, focus
|
|
4
|
+
// states not specified will inherit.
|
|
5
|
+
// Mixin like so:
|
|
6
|
+
// a
|
|
7
|
+
// +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)
|
|
8
|
+
|
|
9
|
+
=link-colors(!normal, !hover = false, !active = false, !visited = false, !focus = false)
|
|
10
|
+
:color= !normal
|
|
11
|
+
@if !visited
|
|
12
|
+
&:visited
|
|
13
|
+
:color= !visited
|
|
14
|
+
@if !focus
|
|
15
|
+
&:focus
|
|
16
|
+
:color= !focus
|
|
17
|
+
@if !hover
|
|
18
|
+
&:hover
|
|
19
|
+
:color= !hover
|
|
20
|
+
@if !active
|
|
21
|
+
&:active
|
|
22
|
+
:color= !active
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Turn off the bullet for an element of a list
|
|
2
|
+
=no-bullet
|
|
3
|
+
:list-style-type none
|
|
4
|
+
:margin-left 0px
|
|
5
|
+
|
|
6
|
+
// turns off the bullets for an entire list
|
|
7
|
+
=no-bullets
|
|
8
|
+
li
|
|
9
|
+
+no-bullet
|
|
10
|
+
|
|
11
|
+
// Make a list(ul/ol) have an image bullet
|
|
12
|
+
// mixin should be used like this for an icon that is 5x7:
|
|
13
|
+
// ul.pretty
|
|
14
|
+
// +pretty-bullets("my-icon.png", 5px, 7px)
|
|
15
|
+
=pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
|
|
16
|
+
:margin-left 0
|
|
17
|
+
li
|
|
18
|
+
:padding-left= !padding
|
|
19
|
+
:background= image_url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
|
|
20
|
+
:list-style-type none
|
|
21
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//**\\
|
|
2
|
+
Horizontal list layout module.
|
|
3
|
+
|
|
4
|
+
Easy mode using simple descendant li selectors:
|
|
5
|
+
|
|
6
|
+
ul.nav
|
|
7
|
+
+horizontal-list
|
|
8
|
+
|
|
9
|
+
Advanced mode:
|
|
10
|
+
If you need to target the list items using a different selector then use
|
|
11
|
+
+horizontal-list-container on your ul/ol and +horizontal-list-item on your li.
|
|
12
|
+
This may help when working on layouts involving nested lists. For example:
|
|
13
|
+
|
|
14
|
+
ul.nav
|
|
15
|
+
+horizontal-list-container
|
|
16
|
+
> li
|
|
17
|
+
+horizontal-list-item
|
|
18
|
+
|
|
19
|
+
@import bullets.sass
|
|
20
|
+
@import compass/utilities/general/reset.sass
|
|
21
|
+
@import compass/utilities/general/float.sass
|
|
22
|
+
|
|
23
|
+
//**
|
|
24
|
+
Can be mixed into any selector that target a ul or ol that is meant
|
|
25
|
+
to have a horizontal layout. Used to implement +horizontal-list.
|
|
26
|
+
=horizontal-list-container
|
|
27
|
+
+reset-box-model
|
|
28
|
+
+clearfix
|
|
29
|
+
|
|
30
|
+
//**
|
|
31
|
+
Can be mixed into any li selector that is meant to participate in a horizontal layout.
|
|
32
|
+
Used to implement +horizontal-list.
|
|
33
|
+
=horizontal-list-item(!padding = 4px)
|
|
34
|
+
+no-bullet
|
|
35
|
+
:white-space nowrap
|
|
36
|
+
+float-left
|
|
37
|
+
:padding
|
|
38
|
+
:left= !padding
|
|
39
|
+
:right= !padding
|
|
40
|
+
&.first
|
|
41
|
+
:padding-left 0px
|
|
42
|
+
&.last
|
|
43
|
+
:padding-right 0px
|
|
44
|
+
|
|
45
|
+
//**
|
|
46
|
+
A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
|
|
47
|
+
This is not an inline list.
|
|
48
|
+
=horizontal-list(!padding = 4px)
|
|
49
|
+
+horizontal-list-container
|
|
50
|
+
li
|
|
51
|
+
+horizontal-list-item(!padding)
|
|
52
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// makes a list inline.
|
|
2
|
+
|
|
3
|
+
=inline-list
|
|
4
|
+
:list-style-type none
|
|
5
|
+
:margin 0px
|
|
6
|
+
:padding 0px
|
|
7
|
+
:display inline
|
|
8
|
+
li
|
|
9
|
+
:margin 0px
|
|
10
|
+
:padding 0px
|
|
11
|
+
:display inline
|
|
12
|
+
|
|
13
|
+
// makes an inlin list that is comma delimited.
|
|
14
|
+
// use of this recipe is not recommended at this time due to browser support issues.
|
|
15
|
+
//
|
|
16
|
+
// use of :content and :after is not fully supported in all browsers.
|
|
17
|
+
// See http://www.quirksmode.org/css/contents.html#t15 for the support matrix
|
|
18
|
+
//
|
|
19
|
+
// :last-child is not fully supported
|
|
20
|
+
// see http://www.quirksmode.org/css/contents.html#t29 for the support matrix
|
|
21
|
+
|
|
22
|
+
=comma-delimited-list
|
|
23
|
+
+inline-list
|
|
24
|
+
li
|
|
25
|
+
&:after
|
|
26
|
+
:content ", "
|
|
27
|
+
&:last-child, &.last
|
|
28
|
+
&:after
|
|
29
|
+
:content ""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
!sprite_image_default_width ||= 32px
|
|
2
|
+
!sprite_image_default_height ||= 32px
|
|
3
|
+
!sprite_image_default_margin ||= 0px
|
|
4
|
+
|
|
5
|
+
// Simplest use: +sprite-img("icons-32.png", 1)
|
|
6
|
+
=sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_image_default_margin)
|
|
7
|
+
!x = ((!col - 1) * -!width) - ((!col - 1) * !margin)
|
|
8
|
+
!y = ((!row - 1) * -!height) - ((!row - 1) * !margin)
|
|
9
|
+
:background= image_url(!img) "no-repeat" !x !y
|
|
10
|
+
:width= !width
|
|
11
|
+
:height= !height
|
|
12
|
+
:overflow hidden
|
data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
=alternating-rows-and-columns(!even_row_color, !odd_row_color, !dark_intersection, !header_color = #FFF, !footer_color = #FFF)
|
|
2
|
+
th
|
|
3
|
+
:background-color= !header_color
|
|
4
|
+
&.even
|
|
5
|
+
:background-color= !header_color - !dark_intersection
|
|
6
|
+
tr.odd
|
|
7
|
+
td
|
|
8
|
+
:background-color= !odd_row_color
|
|
9
|
+
&.even
|
|
10
|
+
:background-color= !odd_row_color - !dark_intersection
|
|
11
|
+
tr.even
|
|
12
|
+
td
|
|
13
|
+
:background-color= !even_row_color
|
|
14
|
+
&.even
|
|
15
|
+
:background-color= !even_row_color - !dark_intersection
|
|
16
|
+
tfoot
|
|
17
|
+
th, td
|
|
18
|
+
:background-color= !footer_color
|
|
19
|
+
&.even
|
|
20
|
+
:background-color= !footer_color - !dark_intersection
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
=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
|
+
=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,13 @@
|
|
|
1
|
+
//
|
|
2
|
+
This technique, by [Justin Maxwell](http://code404.com/), was originally
|
|
3
|
+
published at http://mattsnider.com/css/css-string-truncation-with-ellipsis/
|
|
4
|
+
Firefox implementation by [Rikkert Koppes](http://www.rikkertkoppes.com/thoughts/2008/6/)
|
|
5
|
+
|
|
6
|
+
=ellipsis(!no_wrap = true)
|
|
7
|
+
@if !no_wrap
|
|
8
|
+
white-space: nowrap
|
|
9
|
+
overflow: hidden
|
|
10
|
+
text-overflow: ellipsis
|
|
11
|
+
-o-text-overflow: ellipsis
|
|
12
|
+
-ms-text-overflow: ellipsis
|
|
13
|
+
-moz-binding= stylesheet_url("xml/ellipsis.xml#ellipsis")
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
Hides html text and replaces it with an image.
|
|
3
|
+
If you use this on an inline element, you will need to change the display to block or inline-block.
|
|
4
|
+
Also, if the size of the image differs significantly from the font size, you'll need to set the width and/or height.
|
|
5
|
+
@param img
|
|
6
|
+
the relative path from the project image directory to the image.
|
|
7
|
+
@param x
|
|
8
|
+
the x position of the background image.
|
|
9
|
+
@param y
|
|
10
|
+
the y position of the background image.
|
|
11
|
+
=replace-text( !img, !x = 50%, !y = 50% )
|
|
12
|
+
:text-indent -9999em
|
|
13
|
+
:overflow hidden
|
|
14
|
+
:background
|
|
15
|
+
:image= image_url(!img)
|
|
16
|
+
:repeat no-repeat
|
|
17
|
+
:position= !x !y
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
@import compass/utilities/text/ellipsis.sass
|
|
2
|
+
|
|
3
|
+
// You can delete this sass file if you want, it's just an example of how to use the ellipsis mixin.
|
|
4
|
+
// By default, ellipsis text is no-wrap. Pass false as the first argument if you don't want that.
|
|
5
|
+
.ellipsis
|
|
6
|
+
+ellipsis
|
|
@@ -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,13 @@
|
|
|
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.sass
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
The *:focus rule is reset and suppresses link outlining.
|
|
11
|
+
You _must_ remember to redefine your own outline, as it’s an important accessibility aid. E.g.
|
|
12
|
+
*:focus
|
|
13
|
+
outline: #ccc dotted medium
|
data/frameworks/yui.rb
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=yui-base
|
|
2
|
+
h1
|
|
3
|
+
:font-size 138.5%
|
|
4
|
+
|
|
5
|
+
h2
|
|
6
|
+
:font-size 123.1%
|
|
7
|
+
|
|
8
|
+
h3
|
|
9
|
+
:font-size 108%
|
|
10
|
+
|
|
11
|
+
h1, h2, h3
|
|
12
|
+
:margin 1em 0
|
|
13
|
+
|
|
14
|
+
h1,h2, h3, h4, h5, h6, strong
|
|
15
|
+
:font-weight bold
|
|
16
|
+
|
|
17
|
+
abbr, acronym
|
|
18
|
+
:border-bottom 1px dotted #000
|
|
19
|
+
:cursor help
|
|
20
|
+
|
|
21
|
+
em
|
|
22
|
+
:font-style italic
|
|
23
|
+
|
|
24
|
+
blockquote
|
|
25
|
+
:margin 1em
|
|
26
|
+
|
|
27
|
+
ul
|
|
28
|
+
:margin 1em
|
|
29
|
+
:margin-left 2em
|
|
30
|
+
li
|
|
31
|
+
:list-style disc outside
|
|
32
|
+
|
|
33
|
+
ol
|
|
34
|
+
:margin 1em
|
|
35
|
+
:margin-left 2em
|
|
36
|
+
li
|
|
37
|
+
:list-style decimal outside
|
|
38
|
+
|
|
39
|
+
dl
|
|
40
|
+
:margin 1em
|
|
41
|
+
:margin-left 2em
|
|
42
|
+
dd
|
|
43
|
+
:margin-left 1em
|
|
44
|
+
|
|
45
|
+
th
|
|
46
|
+
:border 1px solid #000
|
|
47
|
+
:padding .5em
|
|
48
|
+
:font-weight bold
|
|
49
|
+
:text-align center
|
|
50
|
+
|
|
51
|
+
td
|
|
52
|
+
:border 1px solid #000
|
|
53
|
+
:padding .5em
|
|
54
|
+
|
|
55
|
+
caption
|
|
56
|
+
:margin-bottom .5em
|
|
57
|
+
:text-align center
|
|
58
|
+
|
|
59
|
+
p, fieldset, table
|
|
60
|
+
:margin-bottom 1em
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
table
|
|
32
|
+
:font-size inherit
|
|
33
|
+
:font 100%
|
|
34
|
+
|
|
35
|
+
pre, code, kbd, samp, tt
|
|
36
|
+
:font-family monospace
|
|
37
|
+
:*font-size 108%
|
|
38
|
+
:line-height 100%
|