2014-02-03 16:33:44 +01:00
|
|
|
@mixin media($size) {
|
2014-02-03 23:10:54 +01:00
|
|
|
@media screen and (max-width: $size) {
|
|
|
|
@content;
|
|
|
|
}
|
2014-01-30 12:20:51 +01:00
|
|
|
}
|
|
|
|
|
2014-02-03 23:10:54 +01:00
|
|
|
@function calculate-rem($px, $base: $base-font-size) {
|
|
|
|
$rem: $px / $base;
|
|
|
|
@return #{$rem}rem;
|
2014-01-30 12:20:51 +01:00
|
|
|
}
|
|
|
|
|
2014-02-03 23:10:54 +01:00
|
|
|
@mixin font-size($px) {
|
|
|
|
font-size: $px + px;
|
|
|
|
font-size: calculate-rem($px);
|
2014-01-30 12:20:51 +01:00
|
|
|
}
|