jsmestad-compass 0.4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +175 -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 +65 -0
- data/examples/compass/utilities.html.haml +136 -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 +153 -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 +1 -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 +58 -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 +25 -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 +26 -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 +74 -0
- data/lib/compass/commands/update_project.rb +61 -0
- data/lib/compass/commands/watch_project.rb +53 -0
- data/lib/compass/compiler.rb +40 -0
- data/lib/compass/configuration.rb +92 -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 +125 -0
- data/lib/compass/installers/stand_alone.rb +76 -0
- data/lib/compass/logger.rb +34 -0
- data/lib/compass/merb.rb +43 -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 +28 -0
- data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -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 +69 -0
- data/test/fixtures/stylesheets/compass/css/utilities.css +21 -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 +291 -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 @@
|
|
1
|
+
@import tables/alternating_rows_and_columns.sass
|
@@ -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,58 @@
|
|
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
|
+
body
|
17
|
+
:line-height 1.5
|
18
|
+
blockquote, q
|
19
|
+
+reset-quotation
|
20
|
+
th, td, caption
|
21
|
+
+reset-table-cell
|
22
|
+
table
|
23
|
+
+reset-table
|
24
|
+
a img
|
25
|
+
:border none
|
26
|
+
|
27
|
+
=reset-box-model
|
28
|
+
:margin 0
|
29
|
+
:padding 0
|
30
|
+
:border 0
|
31
|
+
|
32
|
+
=reset
|
33
|
+
+reset-box-model
|
34
|
+
:font
|
35
|
+
:weight inherit
|
36
|
+
:style inherit
|
37
|
+
:size 100%
|
38
|
+
:family inherit
|
39
|
+
:vertical-align baseline
|
40
|
+
|
41
|
+
=reset-quotation
|
42
|
+
+reset
|
43
|
+
:quotes "" ""
|
44
|
+
&:before,
|
45
|
+
&:after
|
46
|
+
:content ""
|
47
|
+
|
48
|
+
=reset-table-cell
|
49
|
+
+reset
|
50
|
+
:text-align left
|
51
|
+
:font-weight normal
|
52
|
+
:vertical-align middle
|
53
|
+
|
54
|
+
=reset-table
|
55
|
+
+reset
|
56
|
+
:border-collapse separate
|
57
|
+
:border-spacing 0
|
58
|
+
: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,25 @@
|
|
1
|
+
=alternating-rows-and-columns(!even_row_color, !odd_row_color, !dark_intersection)
|
2
|
+
td,
|
3
|
+
th
|
4
|
+
:padding 2px
|
5
|
+
&.numeric
|
6
|
+
:text-align right
|
7
|
+
tbody
|
8
|
+
th
|
9
|
+
:text-align center
|
10
|
+
thead
|
11
|
+
:font-size .9em
|
12
|
+
th.even
|
13
|
+
:background-color= #fff - !dark_intersection
|
14
|
+
tfoot
|
15
|
+
:font-size .9em
|
16
|
+
td.even
|
17
|
+
:background-color= #fff - !dark_intersection
|
18
|
+
tr.odd
|
19
|
+
:background-color= !odd_row_color
|
20
|
+
td.even
|
21
|
+
:background-color= !odd_row_color - !dark_intersection
|
22
|
+
tr.even
|
23
|
+
:background-color= !even_row_color
|
24
|
+
td.even
|
25
|
+
:background-color= !even_row_color - !dark_intersection
|
@@ -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.
|
@@ -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
|