Sha256: 199f51f5114b4c0c24595d6595a8f807c4fa8614bfef1d5bf5178a35e7cadde0

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

!yui_default_base_font_size ||= 13px
!yui_default_base_line_height ||= 1.231
!yui_default_font_family ||= arial,helvetica,clean,sans-serif

// Sets the font size specified in pixels using percents so that the base
// font size changes and 1em has the correct value. When nesting font size
// declarations, within the DOM tree, the base_font_size must be the parent's
// effective font-size in pixels.
// Usage Examples:
//   .big
//     +font-size(16px)
//   .bigger
//     +font-size(18px)
//   .big .bigger
//     +font-size(18px, 16px)
// 
// For more information see the table found at http://developer.yahoo.com/yui/fonts/#fontsize
=font-size(!size, !base_font_size = !yui_default_base_font_size)
  :font-size= percentage(!size / !base_font_size)

// Sets the base fonts for a page, this should be mixed into the top level of a stylesheet.
=yui-base-fonts(!family = !yui_default_font_family, !size = !yui_default_base_font_size, !line_height = !yui_default_base_line_height)
  body
    :font
      :size= !size
      :family= !family
    :line-height= !line_height
    :*font-size small
    :*font x-small

  table
    :font-size inherit
    :font 100%

  pre, code, kbd, samp, tt
    :font-family monospace
    :*font-size 108%
    :line-height 100%

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chriseppstein-compass-0.1.1 frameworks/yui/stylesheets/yui/modules/_fonts.sass
chriseppstein-compass-0.3.0 frameworks/yui/stylesheets/yui/modules/_fonts.sass
chriseppstein-compass-0.3.1 frameworks/yui/stylesheets/yui/modules/_fonts.sass
chriseppstein-compass-0.3.2 frameworks/yui/stylesheets/yui/modules/_fonts.sass
chriseppstein-compass-0.3.3 frameworks/yui/stylesheets/yui/modules/_fonts.sass