From 143cb9341d0d50c69da9900b4e721db1b66606cd Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 7 Nov 2018 12:54:18 +0100 Subject: Improve font rendering --- assets/_markdown.scss | 4 ++-- assets/_variables.scss | 2 +- assets/book.scss | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'assets') diff --git a/assets/_markdown.scss b/assets/_markdown.scss index b0f7116..cb62a2f 100644 --- a/assets/_markdown.scss +++ b/assets/_markdown.scss @@ -16,7 +16,7 @@ $block-border-radius: 0.15rem; } b, optgroup, strong { - font-weight: 400; + font-weight: 700; } a { @@ -28,7 +28,7 @@ $block-border-radius: 0.15rem; } code { - font-family: 'Roboto Mono', monospace; + font-family: 'Oxygen Mono', monospace; } p code { diff --git a/assets/_variables.scss b/assets/_variables.scss index 19482f1..ced71e2 100644 --- a/assets/_variables.scss +++ b/assets/_variables.scss @@ -21,7 +21,7 @@ $gray-800: #343a40; $gray-900: #212529; $black: #000; -$color-link: #4092f1; +$color-link: #004ed0; $color-visited-link: #8440f1; $body-background: white; diff --git a/assets/book.scss b/assets/book.scss index 350fc52..56fdc9d 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -4,7 +4,7 @@ html { font-size: $font-size-base; - letter-spacing: .3px; + letter-spacing: .33px; } html, body { @@ -15,9 +15,14 @@ html, body { body { color: $body-font-color; background: $body-background; + font-family: 'Oxygen', sans-serif; font-weight: $body-font-weight; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + box-sizing: border-box; * { box-sizing: inherit; -- cgit v1.2.3