arnebrasseur-compass 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. data/Manifest +160 -0
  2. data/README.markdown +18 -0
  3. data/Rakefile +112 -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/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 +153 -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/print.sass +3 -0
  77. data/frameworks/blueprint/templates/project/screen.sass +8 -0
  78. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  79. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  80. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  81. data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
  82. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  83. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -0
  84. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  85. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  86. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  87. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +1 -0
  88. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  89. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
  90. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  91. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +58 -0
  92. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  93. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  94. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  95. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  96. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  97. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  98. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +20 -0
  99. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  100. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +25 -0
  101. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  102. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
  103. data/frameworks/compass/templates/project/grid.png +0 -0
  104. data/frameworks/compass/templates/project/ie.sass +3 -0
  105. data/frameworks/compass/templates/project/print.sass +4 -0
  106. data/frameworks/compass/templates/project/screen.sass +4 -0
  107. data/frameworks/yui/COPYRIGHT +15 -0
  108. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  109. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  110. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  111. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  112. data/frameworks/yui/templates/project/screen.sass +4 -0
  113. data/lib/compass/commands/base.rb +94 -0
  114. data/lib/compass/commands/create_project.rb +32 -0
  115. data/lib/compass/commands/install_rails.rb +115 -0
  116. data/lib/compass/commands/print_version.rb +23 -0
  117. data/lib/compass/commands/update_project.rb +101 -0
  118. data/lib/compass/commands/watch_project.rb +42 -0
  119. data/lib/compass/core_ext.rb +39 -0
  120. data/lib/compass/exec.rb +164 -0
  121. data/lib/compass/frameworks/blueprint.rb +2 -0
  122. data/lib/compass/frameworks/compass.rb +2 -0
  123. data/lib/compass/frameworks/yui.rb +2 -0
  124. data/lib/compass/frameworks.rb +27 -0
  125. data/lib/compass/merb.rb +43 -0
  126. data/lib/compass/test_case.rb +37 -0
  127. data/lib/compass/validate/COPYRIGHT.html +93 -0
  128. data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
  129. data/lib/compass/validate/README.html +83 -0
  130. data/lib/compass/validate/XERCES_COPYING.txt +56 -0
  131. data/lib/compass/validate/css-validator-javadoc.jar +0 -0
  132. data/lib/compass/validate/css-validator.jar +0 -0
  133. data/lib/compass/validate/jigsaw.jar +0 -0
  134. data/lib/compass/validate/xerces.jar +0 -0
  135. data/lib/compass/validate.rb +13 -0
  136. data/lib/compass/validator.rb +59 -0
  137. data/lib/compass/version.rb +48 -0
  138. data/lib/compass.rb +20 -0
  139. data/lib/sass_extensions.rb +13 -0
  140. data/test/compass_test.rb +152 -0
  141. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  142. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  143. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  144. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  145. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  146. data/test/fixtures/stylesheets/compass/css/layout.css +14 -0
  147. data/test/fixtures/stylesheets/compass/css/print.css +19 -0
  148. data/test/fixtures/stylesheets/compass/css/reset.css +69 -0
  149. data/test/fixtures/stylesheets/compass/css/utilities.css +21 -0
  150. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  151. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  152. data/test/fixtures/stylesheets/compass/sass/reset.sass +1 -0
  153. data/test/fixtures/stylesheets/compass/sass/utilities.sass +5 -0
  154. data/test/fixtures/stylesheets/yui/css/mixins.css +16 -0
  155. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  156. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  157. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  158. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  159. data/test/sass_extensions_test.rb +26 -0
  160. data/test/test_helper.rb +37 -0
  161. metadata +264 -0
@@ -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,3 @@
1
+ /*
2
+ Welcome to Compass. We'll show you the way, but you'll have to get there on your own.
3
+ Use this file to write IE specific override styles.
@@ -0,0 +1,4 @@
1
+ /*
2
+ Welcome to Compass. We'll show you the way, but you'll have to get there on your own.
3
+ Use this file to define print styles.
4
+
@@ -0,0 +1,4 @@
1
+ /*
2
+ Welcome to Compass. We'll show you the way, but you'll have to get there on your own.
3
+ In this file you should write (or centralize your imports) the main styles.
4
+ @import compass/reset.sass
@@ -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%