Commit 18cfe345 authored by Martijn Cuppens's avatar Martijn Cuppens Committed by XhmikosR
Browse files

Allow modification of the value of rem

parent c463c261
Showing with 11 additions and 0 deletions
+11 -0
...@@ -17,6 +17,14 @@ ...@@ -17,6 +17,14 @@
box-sizing: border-box; box-sizing: border-box;
} }
// Root
//
// 1. Ability to the value of the root font sizes, affecting the value of `rem`.
// null by default, thus nothing is generated.
:root {
font-size: $font-size-root; // 1
}
// Body // Body
// //
......
...@@ -288,6 +288,9 @@ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberati ...@@ -288,6 +288,9 @@ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberati
$font-family-base: $font-family-sans-serif !default; $font-family-base: $font-family-sans-serif !default;
// stylelint-enable value-keyword-case // stylelint-enable value-keyword-case
// $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins
// $font-size-base effects the font size of the body text
$font-size-root: null !default;
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px` $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
$font-size-lg: $font-size-base * 1.25 !default; $font-size-lg: $font-size-base * 1.25 !default;
$font-size-sm: $font-size-base * .875 !default; $font-size-sm: $font-size-base * .875 !default;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment