2014-07-28 13:35:53 +00:00
|
|
|
// Rem output with px fallback
|
Normalize rather than Reset.
The reset we used was a mix of Normalize, the Paul Irish reset,
sprinkled with some blueprint.css, and base styles. It was hard to
maintain and just seemed outdated (setting the base font-size to 10px
instead of 16px, among other things).
Normalize sets saner defaults and is generally just not as disruptive
as a full reset.
The code was added as is, has only its comments stripped (for now), and
is not mixed with any styles to make future updates to it as easy as
possible.
See #3, #44, #174, #267, #617.
2014-12-30 00:28:19 +00:00
|
|
|
@mixin font-size($sizeValue: 1) {
|
2015-02-18 03:28:00 +00:00
|
|
|
font-size: ($sizeValue * 16) * 1px;
|
|
|
|
font-size: $sizeValue * 1rem;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Center block
|
|
|
|
@mixin center-block {
|
2014-08-13 16:38:51 +00:00
|
|
|
display: block;
|
2015-01-11 19:23:26 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Clearfix
|
|
|
|
@mixin clearfix() {
|
2014-08-13 16:38:51 +00:00
|
|
|
content: "";
|
|
|
|
display: table;
|
2015-01-11 21:50:06 +00:00
|
|
|
table-layout: fixed;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
2014-08-18 15:38:19 +00:00
|
|
|
// Clear after (not all clearfix need this also)
|
2014-07-28 13:35:53 +00:00
|
|
|
@mixin clearfix-after() {
|
2014-08-13 16:38:51 +00:00
|
|
|
clear: both;
|
2014-08-13 12:03:05 +00:00
|
|
|
}
|
2017-08-01 13:21:13 +00:00
|
|
|
|
|
|
|
// Column width with margin
|
|
|
|
@mixin column-width($numberColumns: 3) {
|
2017-08-23 16:13:49 +00:00
|
|
|
width: map-get( $columns, $numberColumns ) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns );
|
2017-08-01 13:21:13 +00:00
|
|
|
}
|