Sha256: 9a42549cde140665d93081fd6227eab94c4e3035de1f0379259c2e949a91579f

Contents?: true

Size: 1.57 KB

Versions: 18

Compression:

Stored size: 1.57 KB

Contents

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

//
// Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
// Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved.
//

@mixin html5-boilerplate-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;
  }

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

  // Normalize 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; }
}

@mixin font-smoothing {
  @warn "The 'font-smoothing' mixin has been deprecated as it made monospace too thin.";
}

// 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: ceil(percentage($size / $base-font-size));
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
playmo-0.1.10 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.9 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.8 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.7 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.6 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.5 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.4 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.3 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.2 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.1 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.1.0 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.18 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.17 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.14 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.13 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.12 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.11 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss
playmo-0.0.10 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_fonts.css.scss