项目作者: lemnis

项目描述 :
Baseline tool for sass
高级语言: CSS
项目地址: git://github.com/lemnis/baseline.git
创建时间: 2017-09-17T23:46:29Z
项目社区:https://github.com/lemnis/baseline

开源协议:

下载


Base

Installation

There are two imports to choose from. The default scss/base comes with
un-prefixed versions of the core API functions.
If you want Base to be name-spaced, import scss/base-prefix instead.

  1. // un-prefixed functions
  2. @import '<path-to>/base/scss/base';
  3. // susy-prefixed functions
  4. @import '<path-to>/base/scss/base-prefix';

Starting guide using base

  1. @import "path-to-base";
  2. $base: (
  3. cap-height: .7 // cap-height of your font
  4. )
  5. h1 {
  6. $font-size: 4rem;
  7. font-size: $font-size;
  8. line-height: line-height($font-size);
  9. margin-top: top($font-size) + row(); // top offset + extra row of white space
  10. margin-bottom: bottom($font-size);
  11. }

See the full documentation

Credits

  • Susy - Lots of code is based on their internal structure and I reused lots of their comments.

Todo

  • add advise for margin collapsing
  • add more tests
  • create more debug-image options
  • allow calculation with a different vertical-align