Style setup

This commit is contained in:
2020-01-02 15:32:45 +01:00
parent 396e6b5f00
commit 635576847d
13 changed files with 331 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/* PX to REM
========================================================================== */
@function rem ($target, $context: $base-font-size) {
@if $target == 0 { @return 0 }
$size: $target / $context;
@return round($size * 1000) / 1000 + rem;
}
/* Headings
========================================================================== */
@function headings ($from: 1, $to: 6) {
@if $from == $to {
@return "h#{$from}";
} @else {
@return "h#{$from}," + headings($from + 1, $to);
}
}