foo.be/_sass/helpers/_mixins.scss

41 lines
812 B
SCSS
Raw Normal View History

2015-12-03 01:59:10 +00:00
/* ==========================================================================
Mixins
========================================================================== */
// Font families
@mixin ff--sans-serif($font-weight: normal) {
2016-05-05 13:11:53 +00:00
font-family: 'Titillium Web', 'Helvetica Neue', Helvetica, sans-serif;
2015-12-03 01:59:10 +00:00
font-weight: $font-weight;
}
@mixin ff--mono($font-weight: normal) {
2016-05-05 13:11:53 +00:00
font-family: 'Inconsolata', monospace;
2015-12-03 01:59:10 +00:00
font-weight: $font-weight;
}
// Font sizing
@mixin fs--title {
line-height: 1.5;
font-size: 4rem; // 40px
}
@mixin fs--heading-1 {
line-height: 1.25;
font-size: 3.5rem; // 35px
}
@mixin fs--heading-2 {
line-height: 1.25;
font-size: 3rem; // 30px
}
@mixin fs--body {
line-height: 1.5;
2016-05-05 13:11:53 +00:00
font-size: 2rem;
2015-12-03 01:59:10 +00:00
}
@mixin fs--meta {
line-height: 1;
font-size: 1.6rem; // 16px
}