Sha256: 3a5409a3f011bff585b7204ec455346fbc2f8db1ba52120ee7163175cf2d6421

Contents?: true

Size: 1.78 KB

Versions: 12

Compression:

Stored size: 1.78 KB

Contents

$base-font-family: unquote("sans-serif") !default;
$base-font-size: 13px !default;
$base-line-height: 1.231 !default;

//
// fonts.css from the YUI Library: developer.yahoo.com/yui/fonts
//
// There are two custom edits:
// * remove arial, helvetica from explicit font stack
// * we normalize monospace styles ourselves
//
// Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved.
//

@mixin cyaml-fonts($family: $base-font-family, $size: $base-font-size, $line-height: $base-line-height) {
  body { 
    font-size: $size;
    font-family: $family;
    line-height: $line-height; // hack retained to preserve specificity
    *font-size: small;
  }

  table { font-size: inherit; font: 100%; }

  select, input, textarea, button { font: 99% $family; }

  // normalize monospace sizing 
  // meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
  // en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
  pre, code, kbd, samp { font-family: monospace, sans-serif; }
}

// maxvoltar.com/archive/-webkit-font-smoothing
@mixin font-smoothing {
  -webkit-font-smoothing: antialiased;
}

// 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/3/cssfonts/#fontsize
@mixin font-size($size, $base-font-size: $base-font-size) {
  font-size: percentage($size / $base-font-size);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cyaml-0.0.33 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.32 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.31 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.30 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.29 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.27 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.26 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.25 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.24 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.23 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.22 stylesheets/cyaml/mypart/_fonts.scss
cyaml-0.0.21 stylesheets/cyaml/mypart/_fonts.scss