merbjedi-compass 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +178 -0
- data/README.markdown +17 -0
- data/Rakefile +125 -0
- data/VERSION +1 -0
- data/bin/compass +8 -0
- data/compass.gemspec +37 -0
- data/examples/blueprint_default/index.html +73 -0
- data/examples/blueprint_default/parts/elements.html +246 -0
- data/examples/blueprint_default/parts/forms.html +100 -0
- data/examples/blueprint_default/parts/grid.html +206 -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/stylesheets/ie.sass +3 -0
- data/examples/blueprint_default/stylesheets/images/grid.png +0 -0
- data/examples/blueprint_default/stylesheets/print.sass +3 -0
- data/examples/blueprint_default/stylesheets/screen.sass +8 -0
- data/examples/blueprint_plugins/index.html +60 -0
- data/examples/blueprint_plugins/parts/fancy_type.html +84 -0
- data/examples/blueprint_plugins/parts/test-small.jpg +0 -0
- data/examples/blueprint_plugins/parts/test.jpg +0 -0
- data/examples/blueprint_plugins/parts/valid.png +0 -0
- data/examples/blueprint_plugins/stylesheets/ie.sass +3 -0
- data/examples/blueprint_plugins/stylesheets/images/grid.png +0 -0
- data/examples/blueprint_plugins/stylesheets/print.sass +3 -0
- data/examples/blueprint_plugins/stylesheets/screen.sass +11 -0
- data/examples/blueprint_scoped/stylesheets/ie.sass +3 -0
- data/examples/blueprint_scoped/stylesheets/print.sass +3 -0
- data/examples/blueprint_scoped/stylesheets/screen.sass +4 -0
- data/examples/blueprint_scoped_form/stylesheets/ie.sass +3 -0
- data/examples/blueprint_scoped_form/stylesheets/print.sass +3 -0
- data/examples/blueprint_scoped_form/stylesheets/screen.sass +10 -0
- data/examples/blueprint_semantic/index.html +68 -0
- data/examples/blueprint_semantic/parts/fancy_type.html +84 -0
- data/examples/blueprint_semantic/parts/liquid.html +84 -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/stylesheets/ie.sass +3 -0
- data/examples/blueprint_semantic/stylesheets/images/grid.png +0 -0
- data/examples/blueprint_semantic/stylesheets/liquid.sass +70 -0
- data/examples/blueprint_semantic/stylesheets/print.sass +3 -0
- data/examples/blueprint_semantic/stylesheets/screen.sass +69 -0
- data/examples/compass/compass.html +19 -0
- data/examples/compass/sticky_footer.html.haml +14 -0
- data/examples/compass/stylesheets/compass.sass +47 -0
- data/examples/compass/stylesheets/images/blue_arrow.gif +0 -0
- data/examples/compass/stylesheets/sticky_footer.sass +11 -0
- data/examples/compass/stylesheets/utilities.sass +69 -0
- data/examples/compass/utilities.html.haml +141 -0
- data/examples/yui/divisions.html.haml +179 -0
- data/examples/yui/index.html.haml +19 -0
- data/examples/yui/stylesheets/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/lib/blueprint/constants.rb +17 -0
- data/frameworks/blueprint/lib/blueprint/grid_builder.rb +54 -0
- data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
- data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +49 -0
- data/frameworks/blueprint/stylesheets/blueprint/_print.sass +82 -0
- data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +30 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +81 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +141 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +137 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +46 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +154 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
- data/frameworks/blueprint/templates/project/grid.png +0 -0
- data/frameworks/blueprint/templates/project/ie.sass +3 -0
- data/frameworks/blueprint/templates/project/manifest.rb +5 -0
- data/frameworks/blueprint/templates/project/print.sass +3 -0
- data/frameworks/blueprint/templates/project/screen.sass +8 -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/_reset.sass +3 -0
- data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
- data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
- data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -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/_tables.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +56 -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 +20 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -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/_nowrap.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -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 +7 -0
- data/frameworks/yui.rb +2 -0
- data/frameworks/yui/COPYRIGHT +15 -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/templates/project/manifest.rb +1 -0
- data/frameworks/yui/templates/project/screen.sass +4 -0
- data/lib/compass.rb +39 -0
- data/lib/compass/actions.rb +92 -0
- data/lib/compass/commands/base.rb +29 -0
- data/lib/compass/commands/create_project.rb +41 -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 +82 -0
- data/lib/compass/commands/update_project.rb +25 -0
- data/lib/compass/commands/watch_project.rb +53 -0
- data/lib/compass/commands/write_configuration.rb +37 -0
- data/lib/compass/compiler.rb +40 -0
- data/lib/compass/configuration.rb +167 -0
- data/lib/compass/core_ext.rb +12 -0
- data/lib/compass/errors.rb +7 -0
- data/lib/compass/exec.rb +184 -0
- data/lib/compass/frameworks.rb +29 -0
- data/lib/compass/installers.rb +5 -0
- data/lib/compass/installers/base.rb +135 -0
- data/lib/compass/installers/manifest.rb +57 -0
- data/lib/compass/installers/rails.rb +118 -0
- data/lib/compass/installers/stand_alone.rb +76 -0
- data/lib/compass/logger.rb +34 -0
- data/lib/compass/merb.rb +45 -0
- data/lib/compass/test_case.rb +37 -0
- data/lib/compass/validate.rb +13 -0
- data/lib/compass/validate/COPYRIGHT.html +93 -0
- data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
- data/lib/compass/validate/README.html +83 -0
- data/lib/compass/validate/XERCES_COPYING.txt +56 -0
- data/lib/compass/validate/css-validator-javadoc.jar +0 -0
- data/lib/compass/validate/css-validator.jar +0 -0
- data/lib/compass/validate/jigsaw.jar +0 -0
- data/lib/compass/validate/xerces.jar +0 -0
- data/lib/compass/validator.rb +59 -0
- data/lib/compass/version.rb +66 -0
- data/lib/sass_extensions.rb +13 -0
- data/test/command_line_test.rb +147 -0
- data/test/compass_test.rb +148 -0
- data/test/configuration_test.rb +29 -0
- data/test/fixtures/stylesheets/blueprint/css/typography.css +159 -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/css/layout.css +14 -0
- data/test/fixtures/stylesheets/compass/css/print.css +19 -0
- data/test/fixtures/stylesheets/compass/css/reset.css +66 -0
- data/test/fixtures/stylesheets/compass/css/utilities.css +23 -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 +1 -0
- data/test/fixtures/stylesheets/compass/sass/utilities.sass +5 -0
- data/test/fixtures/stylesheets/yui/css/mixins.css +16 -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/sass_extensions_test.rb +26 -0
- data/test/test_helper.rb +47 -0
- metadata +295 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
@import blueprint.sass
|
2
|
+
@import blueprint/modules/scaffolding.sass
|
3
|
+
@import compass/reset.sass
|
4
|
+
|
5
|
+
+blueprint
|
6
|
+
// Remove the scaffolding when you're ready to start doing visual design.
|
7
|
+
// Or leave it in if you're happy with how blueprint looks out-of-the-box
|
8
|
+
+blueprint-scaffolding
|
@@ -0,0 +1 @@
|
|
1
|
+
@import compass/utilities.sass
|
@@ -0,0 +1 @@
|
|
1
|
+
@import layout/sticky_footer.sass
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// Based on http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
|
2
|
+
// Mix into the top level.
|
3
|
+
// Footer element must be outside of root wrapper element.
|
4
|
+
// Footer must be a fixed height.
|
5
|
+
|
6
|
+
=sticky-footer(!footer_height, !root_selector = "#root", !root_footer_selector = "#root_footer", !footer_selector = "#footer")
|
7
|
+
html, body
|
8
|
+
:height 100%
|
9
|
+
#{!root_selector}
|
10
|
+
:min-height 100%
|
11
|
+
:margin-bottom= -!footer_height
|
12
|
+
#{!root_footer_selector}
|
13
|
+
:height= !footer_height
|
14
|
+
#{!footer_selector}
|
15
|
+
:clear both
|
16
|
+
:position relative
|
17
|
+
:height= !footer_height
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Classes that are useful for controlling what gets printed.
|
2
|
+
// You must mix +print-utilities into your print stylesheet
|
3
|
+
// and +print-utilities("screen") into your screen stylesheet.
|
4
|
+
// Note: these aren't semantic.
|
5
|
+
=print-utilities(!media = "print")
|
6
|
+
@if !media == "print"
|
7
|
+
.noprint,
|
8
|
+
.no-print
|
9
|
+
:display none
|
10
|
+
address, blockquote, center, dir, div, dd, dl, dt,
|
11
|
+
fieldset, form, frameset, h1, h2, h3, h4, h5, h6, hr,
|
12
|
+
isindex, li, menu, noframes, noscript, ol, p, pre,
|
13
|
+
table, tbody, td, tfoot, th, thead, tr, ul
|
14
|
+
&.print-only
|
15
|
+
:display block
|
16
|
+
a, abbr, acronym, b, basefont, bdo, big, br, cite,
|
17
|
+
code, dfn, em, font, i, img, input, kbd, label, q, s,
|
18
|
+
samp, select, small, span, strike, strong, sub, sup,
|
19
|
+
textarea, tt, u, var
|
20
|
+
&.print-only
|
21
|
+
:display inline
|
22
|
+
@else
|
23
|
+
.print-only
|
24
|
+
:display none
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// Clearing floats without extra markup
|
2
|
+
// Simple Clearing of Floats
|
3
|
+
// [http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/]
|
4
|
+
=clearfix
|
5
|
+
:overflow auto
|
6
|
+
:overflow -moz-scrollbars-none
|
7
|
+
// This makes ie6 get layout
|
8
|
+
:display inline-block
|
9
|
+
// and this puts it back to block
|
10
|
+
&
|
11
|
+
:display block
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// Global reset rules.
|
2
|
+
// For more specific resets, use the reset mixins provided below
|
3
|
+
=global-reset
|
4
|
+
html, body
|
5
|
+
+reset
|
6
|
+
+nested-reset
|
7
|
+
|
8
|
+
// Reset all elements within some selector scope.To reset the selector itself,
|
9
|
+
// mixin the appropriate reset mixin for that element type as well. This could be
|
10
|
+
// useful if you want to style a part of your page in a dramatically different way.
|
11
|
+
=nested-reset
|
12
|
+
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
13
|
+
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
14
|
+
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
|
15
|
+
+reset
|
16
|
+
blockquote, q
|
17
|
+
+reset-quotation
|
18
|
+
th, td, caption
|
19
|
+
+reset-table-cell
|
20
|
+
table
|
21
|
+
+reset-table
|
22
|
+
a img
|
23
|
+
:border none
|
24
|
+
|
25
|
+
=reset-box-model
|
26
|
+
:margin 0
|
27
|
+
:padding 0
|
28
|
+
:border 0
|
29
|
+
|
30
|
+
=reset
|
31
|
+
+reset-box-model
|
32
|
+
:font
|
33
|
+
:weight inherit
|
34
|
+
:style inherit
|
35
|
+
:size 100%
|
36
|
+
:family inherit
|
37
|
+
:vertical-align baseline
|
38
|
+
|
39
|
+
=reset-quotation
|
40
|
+
+reset
|
41
|
+
:quotes "" ""
|
42
|
+
&:before,
|
43
|
+
&:after
|
44
|
+
:content ""
|
45
|
+
|
46
|
+
=reset-table-cell
|
47
|
+
+reset
|
48
|
+
:text-align left
|
49
|
+
:font-weight normal
|
50
|
+
:vertical-align middle
|
51
|
+
|
52
|
+
=reset-table
|
53
|
+
+reset
|
54
|
+
:border-collapse separate
|
55
|
+
:border-spacing 0
|
56
|
+
:vertical-align middle
|
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("/images/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= url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
|
20
|
+
:list-style-type none
|
21
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@import bullets.sass
|
2
|
+
@import compass/utilities/general/reset.sass
|
3
|
+
@import compass/utilities/general/clearfix.sass
|
4
|
+
|
5
|
+
// A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
|
6
|
+
// This is not an inline list.
|
7
|
+
=horizontal-list(!padding = 4px)
|
8
|
+
+reset-box-model
|
9
|
+
+clearfix
|
10
|
+
li
|
11
|
+
+no-bullet
|
12
|
+
:white-space nowrap
|
13
|
+
:float left
|
14
|
+
:padding
|
15
|
+
:left= !padding
|
16
|
+
:right= !padding
|
17
|
+
&.first
|
18
|
+
:padding-left 0px
|
19
|
+
&.last
|
20
|
+
:padding-right 0px
|
@@ -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 ""
|
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,10 @@
|
|
1
|
+
// Hides html text and replaces it with an image.
|
2
|
+
// If you use this on an inline element, you will
|
3
|
+
// need to change the display to block or inline-block.
|
4
|
+
=replace-text( !img, !x = 50%, !y = 50% )
|
5
|
+
:text-indent -9999em
|
6
|
+
:overflow hidden
|
7
|
+
:background
|
8
|
+
:image= url(!img)
|
9
|
+
:repeat no-repeat
|
10
|
+
:position= !x !y
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
Welcome to Compass.
|
3
|
+
In this file you should write your main styles. (or centralize your imports)
|
4
|
+
Import this file using the following HTML or equivalent:
|
5
|
+
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
6
|
+
|
7
|
+
@import compass/reset.sass
|
data/frameworks/yui.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved.
|
2
|
+
|
3
|
+
The original CSS required this copyright notice to be present in redistributions, so to be on the safe side:
|
4
|
+
|
5
|
+
Copyright (c) 2008, Yahoo! Inc.
|
6
|
+
All rights reserved.
|
7
|
+
|
8
|
+
Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
9
|
+
|
10
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
11
|
+
following disclaimer.
|
12
|
+
* 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.
|
13
|
+
* 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.
|
14
|
+
|
15
|
+
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.
|