jsmestad-compass 0.4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/Manifest +175 -0
  2. data/README.markdown +17 -0
  3. data/Rakefile +125 -0
  4. data/VERSION +1 -0
  5. data/bin/compass +8 -0
  6. data/compass.gemspec +37 -0
  7. data/examples/blueprint_default/index.html +73 -0
  8. data/examples/blueprint_default/parts/elements.html +246 -0
  9. data/examples/blueprint_default/parts/forms.html +100 -0
  10. data/examples/blueprint_default/parts/grid.html +206 -0
  11. data/examples/blueprint_default/parts/test-small.jpg +0 -0
  12. data/examples/blueprint_default/parts/test.jpg +0 -0
  13. data/examples/blueprint_default/parts/valid.png +0 -0
  14. data/examples/blueprint_default/stylesheets/ie.sass +3 -0
  15. data/examples/blueprint_default/stylesheets/images/grid.png +0 -0
  16. data/examples/blueprint_default/stylesheets/print.sass +3 -0
  17. data/examples/blueprint_default/stylesheets/screen.sass +8 -0
  18. data/examples/blueprint_plugins/index.html +60 -0
  19. data/examples/blueprint_plugins/parts/fancy_type.html +84 -0
  20. data/examples/blueprint_plugins/parts/test-small.jpg +0 -0
  21. data/examples/blueprint_plugins/parts/test.jpg +0 -0
  22. data/examples/blueprint_plugins/parts/valid.png +0 -0
  23. data/examples/blueprint_plugins/stylesheets/ie.sass +3 -0
  24. data/examples/blueprint_plugins/stylesheets/images/grid.png +0 -0
  25. data/examples/blueprint_plugins/stylesheets/print.sass +3 -0
  26. data/examples/blueprint_plugins/stylesheets/screen.sass +11 -0
  27. data/examples/blueprint_scoped/stylesheets/ie.sass +3 -0
  28. data/examples/blueprint_scoped/stylesheets/print.sass +3 -0
  29. data/examples/blueprint_scoped/stylesheets/screen.sass +4 -0
  30. data/examples/blueprint_scoped_form/stylesheets/ie.sass +3 -0
  31. data/examples/blueprint_scoped_form/stylesheets/print.sass +3 -0
  32. data/examples/blueprint_scoped_form/stylesheets/screen.sass +10 -0
  33. data/examples/blueprint_semantic/index.html +68 -0
  34. data/examples/blueprint_semantic/parts/fancy_type.html +84 -0
  35. data/examples/blueprint_semantic/parts/liquid.html +84 -0
  36. data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
  37. data/examples/blueprint_semantic/parts/test.jpg +0 -0
  38. data/examples/blueprint_semantic/parts/valid.png +0 -0
  39. data/examples/blueprint_semantic/stylesheets/ie.sass +3 -0
  40. data/examples/blueprint_semantic/stylesheets/images/grid.png +0 -0
  41. data/examples/blueprint_semantic/stylesheets/liquid.sass +70 -0
  42. data/examples/blueprint_semantic/stylesheets/print.sass +3 -0
  43. data/examples/blueprint_semantic/stylesheets/screen.sass +69 -0
  44. data/examples/compass/compass.html +19 -0
  45. data/examples/compass/sticky_footer.html.haml +14 -0
  46. data/examples/compass/stylesheets/compass.sass +47 -0
  47. data/examples/compass/stylesheets/images/blue_arrow.gif +0 -0
  48. data/examples/compass/stylesheets/sticky_footer.sass +11 -0
  49. data/examples/compass/stylesheets/utilities.sass +65 -0
  50. data/examples/compass/utilities.html.haml +136 -0
  51. data/examples/yui/divisions.html.haml +179 -0
  52. data/examples/yui/index.html.haml +19 -0
  53. data/examples/yui/stylesheets/screen.sass +13 -0
  54. data/examples/yui/sub_divisions.html.haml +169 -0
  55. data/examples/yui/templates.html.haml +54 -0
  56. data/examples/yui/test.jpg +0 -0
  57. data/examples/yui/typography.html.haml +132 -0
  58. data/frameworks/blueprint.rb +2 -0
  59. data/frameworks/blueprint/lib/blueprint/constants.rb +17 -0
  60. data/frameworks/blueprint/lib/blueprint/grid_builder.rb +54 -0
  61. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  62. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +49 -0
  63. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +82 -0
  64. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  65. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +30 -0
  66. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  67. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +81 -0
  68. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
  69. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +141 -0
  70. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  71. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +137 -0
  72. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +46 -0
  73. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +153 -0
  74. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  75. data/frameworks/blueprint/templates/project/grid.png +0 -0
  76. data/frameworks/blueprint/templates/project/ie.sass +3 -0
  77. data/frameworks/blueprint/templates/project/manifest.rb +5 -0
  78. data/frameworks/blueprint/templates/project/print.sass +3 -0
  79. data/frameworks/blueprint/templates/project/screen.sass +8 -0
  80. data/frameworks/compass.rb +2 -0
  81. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  82. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  83. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  84. data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
  85. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  86. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -0
  87. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  88. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  89. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  90. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +1 -0
  91. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  92. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
  93. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  94. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +58 -0
  95. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  96. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  97. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  98. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  99. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  100. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  101. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +20 -0
  102. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  103. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +25 -0
  104. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  105. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
  106. data/frameworks/compass/templates/project/ie.sass +6 -0
  107. data/frameworks/compass/templates/project/manifest.rb +3 -0
  108. data/frameworks/compass/templates/project/print.sass +6 -0
  109. data/frameworks/compass/templates/project/screen.sass +7 -0
  110. data/frameworks/yui.rb +2 -0
  111. data/frameworks/yui/COPYRIGHT +15 -0
  112. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  113. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  114. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  115. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  116. data/frameworks/yui/templates/project/manifest.rb +1 -0
  117. data/frameworks/yui/templates/project/screen.sass +4 -0
  118. data/lib/compass.rb +39 -0
  119. data/lib/compass/actions.rb +92 -0
  120. data/lib/compass/commands/base.rb +26 -0
  121. data/lib/compass/commands/create_project.rb +41 -0
  122. data/lib/compass/commands/list_frameworks.rb +16 -0
  123. data/lib/compass/commands/print_version.rb +23 -0
  124. data/lib/compass/commands/project_base.rb +74 -0
  125. data/lib/compass/commands/update_project.rb +61 -0
  126. data/lib/compass/commands/watch_project.rb +53 -0
  127. data/lib/compass/compiler.rb +40 -0
  128. data/lib/compass/configuration.rb +92 -0
  129. data/lib/compass/core_ext.rb +12 -0
  130. data/lib/compass/errors.rb +7 -0
  131. data/lib/compass/exec.rb +184 -0
  132. data/lib/compass/frameworks.rb +29 -0
  133. data/lib/compass/installers.rb +5 -0
  134. data/lib/compass/installers/base.rb +135 -0
  135. data/lib/compass/installers/manifest.rb +57 -0
  136. data/lib/compass/installers/rails.rb +125 -0
  137. data/lib/compass/installers/stand_alone.rb +76 -0
  138. data/lib/compass/logger.rb +34 -0
  139. data/lib/compass/merb.rb +43 -0
  140. data/lib/compass/test_case.rb +37 -0
  141. data/lib/compass/validate.rb +13 -0
  142. data/lib/compass/validate/COPYRIGHT.html +93 -0
  143. data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
  144. data/lib/compass/validate/README.html +83 -0
  145. data/lib/compass/validate/XERCES_COPYING.txt +56 -0
  146. data/lib/compass/validate/css-validator-javadoc.jar +0 -0
  147. data/lib/compass/validate/css-validator.jar +0 -0
  148. data/lib/compass/validate/jigsaw.jar +0 -0
  149. data/lib/compass/validate/xerces.jar +0 -0
  150. data/lib/compass/validator.rb +59 -0
  151. data/lib/compass/version.rb +66 -0
  152. data/lib/sass_extensions.rb +13 -0
  153. data/test/command_line_test.rb +147 -0
  154. data/test/compass_test.rb +148 -0
  155. data/test/configuration_test.rb +28 -0
  156. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  157. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  158. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  159. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  160. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  161. data/test/fixtures/stylesheets/compass/css/layout.css +14 -0
  162. data/test/fixtures/stylesheets/compass/css/print.css +19 -0
  163. data/test/fixtures/stylesheets/compass/css/reset.css +69 -0
  164. data/test/fixtures/stylesheets/compass/css/utilities.css +21 -0
  165. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  166. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  167. data/test/fixtures/stylesheets/compass/sass/reset.sass +1 -0
  168. data/test/fixtures/stylesheets/compass/sass/utilities.sass +5 -0
  169. data/test/fixtures/stylesheets/yui/css/mixins.css +16 -0
  170. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  171. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  172. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  173. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  174. data/test/sass_extensions_test.rb +26 -0
  175. data/test/test_helper.rb +47 -0
  176. metadata +291 -0
@@ -0,0 +1,3 @@
1
+ @import blueprint.sass
2
+
3
+ +blueprint-print
@@ -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,2 @@
1
+ compass_dir = File.join(Compass.base_directory, 'frameworks', 'compass')
2
+ Compass::Frameworks.register('compass', compass_dir)
@@ -0,0 +1 @@
1
+ @import compass/utilities.sass
@@ -0,0 +1 @@
1
+ @import layout/sticky_footer.sass
@@ -0,0 +1,3 @@
1
+ @import utilities/general/reset.sass
2
+
3
+ +global-reset
@@ -0,0 +1,5 @@
1
+ @import utilities/general.sass
2
+ @import utilities/links.sass
3
+ @import utilities/lists.sass
4
+ @import utilities/tables.sass
5
+ @import utilities/text.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,4 @@
1
+ @import general/reset.sass
2
+ @import general/clearfix.sass
3
+ @import general/tag_cloud.sass
4
+ @import general/inline_block.sass
@@ -0,0 +1,3 @@
1
+ @import links/hover_link.sass
2
+ @import links/link_colors.sass
3
+ @import links/unstyled_link.sass
@@ -0,0 +1,3 @@
1
+ @import lists/horizontal_list.sass
2
+ @import lists/inline_list.sass
3
+ @import lists/bullets.sass
@@ -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,2 @@
1
+ @import text/nowrap.sass
2
+ @import text/replacement.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,6 @@
1
+ =inline-block
2
+ :zoom 1
3
+ :display inline
4
+ :display -moz-inline-box
5
+ :display inline-block
6
+ :vertical-align top
@@ -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
@@ -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,5 @@
1
+ // a link that only has an underline when you hover over it
2
+ =hover-link
3
+ :text-decoration none
4
+ &:hover
5
+ :text-decoration underline
@@ -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,5 @@
1
+ // A link that looks and acts like the text it is contained within
2
+ =unstyled-link
3
+ :color inherit
4
+ :text-decoration inherit
5
+ :cursor inherit
@@ -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 ""
@@ -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,3 @@
1
+ // When remembering whether or not there's a hyphen in white-space is too hard
2
+ =nowrap
3
+ :white-space nowrap
@@ -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,6 @@
1
+ /*
2
+ Welcome to Compass. Use this file to write IE specific override styles.
3
+ Import this file using the following HTML or equivalent:
4
+ <!--[if IE]>
5
+ <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
6
+ <![endif]-->
@@ -0,0 +1,3 @@
1
+ stylesheet 'screen.sass', :media => 'screen, projection'
2
+ stylesheet 'print.sass', :media => 'print'
3
+ stylesheet 'ie.sass', :media => 'screen, projection', :ie => true
@@ -0,0 +1,6 @@
1
+ /*
2
+ Welcome to Compass. Use this file to define print styles.
3
+ Import this file using the following HTML or equivalent:
4
+ <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />
5
+
6
+
@@ -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,2 @@
1
+ yui_dir = File.join(Compass.base_directory, 'frameworks', 'yui')
2
+ Compass::Frameworks.register('yui', yui_dir)
@@ -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,7 @@
1
+ @import yui/modules/base.sass
2
+ @import yui/modules/fonts.sass
3
+ @import yui/modules/grids.sass
4
+ =yui
5
+ +yui-base
6
+ +yui-base-fonts
7
+ +yui-grids
@@ -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