jwhitmire-compass 0.5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/Manifest +178 -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 +69 -0
  50. data/examples/compass/utilities.html.haml +141 -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/lib/blueprint/constants.rb +17 -0
  59. data/frameworks/blueprint/lib/blueprint/grid_builder.rb +54 -0
  60. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  61. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +49 -0
  62. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +82 -0
  63. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  64. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +30 -0
  65. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  66. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +81 -0
  67. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
  68. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +141 -0
  69. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  70. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +137 -0
  71. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +46 -0
  72. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +154 -0
  73. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  74. data/frameworks/blueprint/templates/project/grid.png +0 -0
  75. data/frameworks/blueprint/templates/project/ie.sass +3 -0
  76. data/frameworks/blueprint/templates/project/manifest.rb +5 -0
  77. data/frameworks/blueprint/templates/project/print.sass +3 -0
  78. data/frameworks/blueprint/templates/project/screen.sass +8 -0
  79. data/frameworks/blueprint.rb +2 -0
  80. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  81. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  82. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  83. data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
  84. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  85. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -0
  86. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  87. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  88. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  89. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
  90. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  91. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
  92. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  93. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +56 -0
  94. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  95. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  96. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  97. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  98. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  99. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  100. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +20 -0
  101. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  102. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
  103. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
  104. data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
  105. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  106. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
  107. data/frameworks/compass/templates/project/ie.sass +6 -0
  108. data/frameworks/compass/templates/project/manifest.rb +3 -0
  109. data/frameworks/compass/templates/project/print.sass +6 -0
  110. data/frameworks/compass/templates/project/screen.sass +7 -0
  111. data/frameworks/compass.rb +2 -0
  112. data/frameworks/yui/COPYRIGHT +15 -0
  113. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  114. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  115. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  116. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  117. data/frameworks/yui/templates/project/manifest.rb +1 -0
  118. data/frameworks/yui/templates/project/screen.sass +4 -0
  119. data/frameworks/yui.rb +2 -0
  120. data/lib/compass/actions.rb +92 -0
  121. data/lib/compass/commands/base.rb +29 -0
  122. data/lib/compass/commands/create_project.rb +41 -0
  123. data/lib/compass/commands/list_frameworks.rb +16 -0
  124. data/lib/compass/commands/print_version.rb +23 -0
  125. data/lib/compass/commands/project_base.rb +82 -0
  126. data/lib/compass/commands/update_project.rb +25 -0
  127. data/lib/compass/commands/watch_project.rb +53 -0
  128. data/lib/compass/commands/write_configuration.rb +37 -0
  129. data/lib/compass/compiler.rb +40 -0
  130. data/lib/compass/configuration.rb +167 -0
  131. data/lib/compass/core_ext.rb +12 -0
  132. data/lib/compass/errors.rb +7 -0
  133. data/lib/compass/exec.rb +184 -0
  134. data/lib/compass/frameworks.rb +29 -0
  135. data/lib/compass/installers/base.rb +135 -0
  136. data/lib/compass/installers/manifest.rb +57 -0
  137. data/lib/compass/installers/rails.rb +118 -0
  138. data/lib/compass/installers/stand_alone.rb +76 -0
  139. data/lib/compass/installers.rb +5 -0
  140. data/lib/compass/logger.rb +34 -0
  141. data/lib/compass/merb.rb +43 -0
  142. data/lib/compass/test_case.rb +37 -0
  143. data/lib/compass/validate/COPYRIGHT.html +93 -0
  144. data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
  145. data/lib/compass/validate/README.html +83 -0
  146. data/lib/compass/validate/XERCES_COPYING.txt +56 -0
  147. data/lib/compass/validate/css-validator-javadoc.jar +0 -0
  148. data/lib/compass/validate/css-validator.jar +0 -0
  149. data/lib/compass/validate/jigsaw.jar +0 -0
  150. data/lib/compass/validate/xerces.jar +0 -0
  151. data/lib/compass/validate.rb +13 -0
  152. data/lib/compass/validator.rb +59 -0
  153. data/lib/compass/version.rb +66 -0
  154. data/lib/compass.rb +39 -0
  155. data/lib/sass_extensions.rb +13 -0
  156. data/test/command_line_test.rb +147 -0
  157. data/test/compass_test.rb +148 -0
  158. data/test/configuration_test.rb +29 -0
  159. data/test/fixtures/stylesheets/blueprint/css/typography.css +159 -0
  160. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  161. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  162. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  163. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  164. data/test/fixtures/stylesheets/compass/css/layout.css +14 -0
  165. data/test/fixtures/stylesheets/compass/css/print.css +19 -0
  166. data/test/fixtures/stylesheets/compass/css/reset.css +66 -0
  167. data/test/fixtures/stylesheets/compass/css/utilities.css +23 -0
  168. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  169. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  170. data/test/fixtures/stylesheets/compass/sass/reset.sass +1 -0
  171. data/test/fixtures/stylesheets/compass/sass/utilities.sass +5 -0
  172. data/test/fixtures/stylesheets/yui/css/mixins.css +16 -0
  173. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  174. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  175. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  176. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  177. data/test/sass_extensions_test.rb +26 -0
  178. data/test/test_helper.rb +47 -0
  179. metadata +295 -0
@@ -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,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
@@ -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,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,9 @@
1
+ =table-scaffolding
2
+ th
3
+ :text-align center
4
+ :font-weight bold
5
+ td,
6
+ th
7
+ :padding 2px
8
+ &.numeric
9
+ :text-align right
@@ -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
@@ -0,0 +1,2 @@
1
+ compass_dir = File.join(Compass.base_directory, 'frameworks', 'compass')
2
+ Compass::Frameworks.register('compass', compass_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
@@ -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%