39 lines
1.2 KiB
Sass
39 lines
1.2 KiB
Sass
!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%
|