aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Brattlof <hello@bryanbrattlof.com>2021-02-07 15:49:56 -0500
committerBryan Brattlof <hello@bryanbrattlof.com>2021-02-07 15:49:56 -0500
commit2c8b55905744c34fb74cf753085f4507f4c29b54 (patch)
tree5c877d56a13b4f0e38f319866ac733103eee6d78
parent9413bbd6f771f95f044e71e6b55c985511c39823 (diff)
downloadbryanbrattlof.com-2c8b55905744c34fb74cf753085f4507f4c29b54.tar.gz
bryanbrattlof.com-2c8b55905744c34fb74cf753085f4507f4c29b54.tar.bz2
add default font size to entire website
better screens than my t430 (all displays purchased in the 21st century) use a much smaller default font size than I had expected. This change will set 16px as the default font-size for all pages.
-rw-r--r--stylesheets/article.scss1
-rw-r--r--stylesheets/base/base.scss1
-rw-r--r--stylesheets/base/variables.scss1
-rw-r--r--stylesheets/code.scss1
4 files changed, 4 insertions, 0 deletions
diff --git a/stylesheets/article.scss b/stylesheets/article.scss
index d626851..21ad89a 100644
--- a/stylesheets/article.scss
+++ b/stylesheets/article.scss
@@ -79,6 +79,7 @@ img {
}
}
}
+
/* svg objects */
object {
display: inline;
diff --git a/stylesheets/base/base.scss b/stylesheets/base/base.scss
index c805beb..0233269 100644
--- a/stylesheets/base/base.scss
+++ b/stylesheets/base/base.scss
@@ -13,6 +13,7 @@ body {
font-family: $display-font;
color: $display-font-color;
background: $background-color;
+ font-size: $font-size;
line-height: $line-height;
padding: 0;
diff --git a/stylesheets/base/variables.scss b/stylesheets/base/variables.scss
index acb4692..8a38e2c 100644
--- a/stylesheets/base/variables.scss
+++ b/stylesheets/base/variables.scss
@@ -4,6 +4,7 @@ $default-spacing: 1.25em !default;
$display-font: serif !default;
$code-font: monospace !default;
+$font-size: 16px;
$mobile-font-size: .75em !default;
$line-height: 1.75 !default;
diff --git a/stylesheets/code.scss b/stylesheets/code.scss
index 1c44a94..f87a8f3 100644
--- a/stylesheets/code.scss
+++ b/stylesheets/code.scss
@@ -7,6 +7,7 @@ $deleted-code-color: rgb(255, 229, 229);
font-family: $code-font;
background-color: $display-font-color;
color: $normal-code-color;
+ font-size: .85em;
box-sizing: content-box;
border-radius: 3px;