diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-06-10 17:09:43 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-06-10 17:14:21 +0200 |
commit | 64ad3f3b8a1c7f4e0ef879c8c29c0f68b6ae5824 (patch) | |
tree | baa171d5f56ae95fe7afbc5a0034923eef38449b /assets | |
parent | fead34957cdefa3a88313c30e9c2850d8f89deb5 (diff) |
Allow override code font as well
Diffstat (limited to 'assets')
-rw-r--r-- | assets/_fonts.scss | 58 | ||||
-rw-r--r-- | assets/_markdown.scss | 6 | ||||
-rw-r--r-- | assets/_variables.scss | 2 | ||||
-rw-r--r-- | assets/book.scss | 4 |
4 files changed, 36 insertions, 34 deletions
diff --git a/assets/_fonts.scss b/assets/_fonts.scss index 5e10a6a..afc405d 100644 --- a/assets/_fonts.scss +++ b/assets/_fonts.scss @@ -26,35 +26,39 @@ url('fonts/oxygen-v8-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('fonts/oxygen-v8-latin-regular.svg#Oxygen') format('svg'); /* Legacy iOS */ } -/* oxygen-700 - latin */ -@font-face { - font-family: 'Oxygen'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('fonts/oxygen-v8-latin-700.eot'); /* IE9 Compat Modes */ - src: local('Oxygen Bold'), local('Oxygen-Bold'), - url('fonts/oxygen-v8-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('fonts/oxygen-v8-latin-700.woff2') format('woff2'), /* Super Modern Browsers */ - url('fonts/oxygen-v8-latin-700.woff') format('woff'), /* Modern Browsers */ - url('fonts/oxygen-v8-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */ - url('fonts/oxygen-v8-latin-700.svg#Oxygen') format('svg'); /* Legacy iOS */ -} -/* oxygen-mono-regular - latin */ -@font-face { - font-family: 'Oxygen Mono'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('fonts/oxygen-mono-v6-latin-regular.eot'); /* IE9 Compat Modes */ - src: local('Oxygen Mono'), local('OxygenMono-Regular'), - url('fonts/oxygen-mono-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('fonts/oxygen-mono-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ - url('fonts/oxygen-mono-v6-latin-regular.woff') format('woff'), /* Modern Browsers */ - url('fonts/oxygen-mono-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ - url('fonts/oxygen-mono-v6-latin-regular.svg#OxygenMono') format('svg'); /* Legacy iOS */ +/* oxygen-700 - latin */ +@font-face { + font-family: 'Oxygen'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('fonts/oxygen-v8-latin-700.eot'); /* IE9 Compat Modes */ + src: local('Oxygen Bold'), local('Oxygen-Bold'), + url('fonts/oxygen-v8-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('fonts/oxygen-v8-latin-700.woff2') format('woff2'), /* Super Modern Browsers */ + url('fonts/oxygen-v8-latin-700.woff') format('woff'), /* Modern Browsers */ + url('fonts/oxygen-v8-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */ + url('fonts/oxygen-v8-latin-700.svg#Oxygen') format('svg'); /* Legacy iOS */ +} +/* oxygen-mono-regular - latin */ +@font-face { + font-family: 'Oxygen Mono'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('fonts/oxygen-mono-v6-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('Oxygen Mono'), local('OxygenMono-Regular'), + url('fonts/oxygen-mono-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('fonts/oxygen-mono-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('fonts/oxygen-mono-v6-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('fonts/oxygen-mono-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('fonts/oxygen-mono-v6-latin-regular.svg#OxygenMono') format('svg'); /* Legacy iOS */ } body { font-family: 'Oxygen', sans-serif; } + +code { + font-family: 'Oxygen Mono', monospace; +} diff --git a/assets/_markdown.scss b/assets/_markdown.scss index 466a1d5..10286c4 100644 --- a/assets/_markdown.scss +++ b/assets/_markdown.scss @@ -6,7 +6,7 @@ $block-border-radius: 0.15rem; line-height: 1.7; h1, h2, h3, h4, h5 { - font-weight: 400; + font-weight: $body-font-weight; line-height: 1.25; } @@ -17,7 +17,7 @@ $block-border-radius: 0.15rem; } b, optgroup, strong { - font-weight: 700; + font-weight: bolder; } a { @@ -29,8 +29,6 @@ $block-border-radius: 0.15rem; } code { - font-family: 'Oxygen Mono', monospace; - padding: 0 $padding-4; background: $gray-100; border-radius: $block-border-radius; diff --git a/assets/_variables.scss b/assets/_variables.scss index 19d69b9..68d1099 100644 --- a/assets/_variables.scss +++ b/assets/_variables.scss @@ -27,7 +27,7 @@ $color-dark-link: $gray-800; $body-background: white; $body-font-color: $gray-800; -$body-font-weight: 400; +$body-font-weight: normal; $body-min-width: 20rem; $container-max-width: 80rem; diff --git a/assets/book.scss b/assets/book.scss index c0a4b9b..835395a 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -38,7 +38,7 @@ h2, h3, h4, h5 { - font-weight: 400; + font-weight: $body-font-weight; } a { @@ -117,7 +117,7 @@ ul.pagination { > a, > span { - font-weight: 600; + font-weight: bolder; } > ul { |