bits-sass-helpers-text

Text related mixins


License
MIT
Install
bower install bits-sass-helpers-text

Documentation

Bits.sass helpers: text

Collection of text-related functions and mixins. See other helpers.

Read more about Bits.sass toolkit.

Installation

  • Bower: bower install --save bits-sass-helpers-text
  • Download: zip, tar.gz
  • Git: git clone https://github.com/bits-sass/helpers-text.git

Available SASS variables

  • bits-use-rem - whether to use rem-based font-size, defaults to false
  • bits-base-font-size - defaults to 14px
  • bits-base-line-height - defaults to 20px

Available functions

  • relative-line-height - returns unitless multiple of 'line-height' based on 'font-size'
  • absolute-line-height - returns multiple of 'line-height' based on 'font-size' in length value (px, em, ...)

Available mixins

  • font-size - sets font size while ensuring proper vertical rhythm using single value

Requirements

  • Sass 3.2+

Browser support

  • Google Chrome (latest)
  • Opera (latest)
  • Firefox 4+
  • Safari 5+
  • Internet Explorer 8+