Sha256: 093f1e479ab2e21291207e71d97b90b3557624715492072c2a6e007152ca19f1

Contents?: true

Size: 1.32 KB

Versions: 38

Compression:

Stored size: 1.32 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

  select,
  input,
  button,
  textarea,
  button
    :font 99% arial,helvetica,clean,sans-serif

  table
    :font-size inherit
    :font 100%

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

Version data entries

38 entries across 20 versions & 3 rubygems

Version Path
compass-0.10.0.rc1 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.rc1 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre9 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre9 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre8 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre8 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre7 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre7 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre6 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre6 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/compass-0.10.0.pre4/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/compass-0.10.0.pre4/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/compass-0.10.0.pre5/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/compass-0.10.0.pre5/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre5 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre5 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre4 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre4 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre3 examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass
compass-0.10.0.pre3 examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass