aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/_custom.scss (renamed from assets/custom.scss)0
-rw-r--r--assets/_fonts.scss8
-rw-r--r--assets/book.scss17
3 files changed, 18 insertions, 7 deletions
diff --git a/assets/custom.scss b/assets/_custom.scss
index 181c87c..181c87c 100644
--- a/assets/custom.scss
+++ b/assets/_custom.scss
diff --git a/assets/_fonts.scss b/assets/_fonts.scss
index 17cd664..cf8f5ab 100644
--- a/assets/_fonts.scss
+++ b/assets/_fonts.scss
@@ -3,6 +3,7 @@
font-family: 'Oxygen';
font-style: normal;
font-weight: 300;
+ font-display: swap;
src: url('/fonts/oxygen-v8-latin-300.eot'); /* IE9 Compat Modes */
src: local('Oxygen Light'), local('Oxygen-Light'),
url('/fonts/oxygen-v8-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@@ -16,6 +17,7 @@
font-family: 'Oxygen';
font-style: normal;
font-weight: 400;
+ font-display: swap;
src: url('/fonts/oxygen-v8-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Oxygen Regular'), local('Oxygen-Regular'),
url('/fonts/oxygen-v8-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@@ -29,6 +31,7 @@
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 */
@@ -42,6 +45,7 @@
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 */
@@ -50,3 +54,7 @@
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;
+}
diff --git a/assets/book.scss b/assets/book.scss
index d0d8c19..350088d 100644
--- a/assets/book.scss
+++ b/assets/book.scss
@@ -2,7 +2,6 @@
@import "variables";
@import "markdown";
@import "utils";
-@import "fonts";
html {
font-size: $font-size-base;
@@ -19,8 +18,8 @@ body {
body {
color: $body-font-color;
background: $body-background;
-
- font-family: "Oxygen",sans-serif;
+
+ font-family: sans-serif;
font-weight: $body-font-weight;
text-rendering: optimizeLegibility;
@@ -68,7 +67,7 @@ aside nav ul {
}
a:hover {
- opacity: .5;
+ opacity: 0.5;
}
ul {
@@ -111,8 +110,9 @@ ul.pagination {
.book-section-flat {
margin-bottom: $padding-16 * 2;
- > a, > span {
- font-weight: 600
+ > a,
+ > span {
+ font-weight: 600;
}
> ul {
@@ -238,5 +238,8 @@ aside nav,
}
}
+// Add fonts
+@import "fonts";
+
// Add custom defined styles
-@import 'custom'
+@import "custom";