diff --git a/themes/openrail/assets/sass/custom/fonts.scss b/themes/openrail/assets/sass/custom/fonts.scss new file mode 100644 index 0000000..8571627 --- /dev/null +++ b/themes/openrail/assets/sass/custom/fonts.scss @@ -0,0 +1,48 @@ +/* source-sans-3-300 - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: normal; + font-weight: 300; + src: url('../webfonts/source-sans-3-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ +} +/* source-sans-3-300italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: italic; + font-weight: 300; + src: url('../webfonts/source-sans-3-v15-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ +} +/* source-sans-3-regular - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: normal; + font-weight: 400; + src: url('../webfonts/source-sans-3-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ +} +/* source-sans-3-italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: italic; + font-weight: 400; + src: url('../webfonts/source-sans-3-v15-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ +} +/* source-sans-3-700 - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: normal; + font-weight: 700; + src: url('../webfonts/source-sans-3-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ +} +/* source-sans-3-700italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: italic; + font-weight: 700; + src: url('../webfonts/source-sans-3-v15-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ +} diff --git a/themes/openrail/assets/sass/libs/_vars.scss b/themes/openrail/assets/sass/libs/_vars.scss index e65f129..8bec462 100644 --- a/themes/openrail/assets/sass/libs/_vars.scss +++ b/themes/openrail/assets/sass/libs/_vars.scss @@ -38,7 +38,7 @@ // Font. $font: ( - family: ('Source Sans Pro', Helvetica, sans-serif), + family: ('Source Sans 3', Helvetica, sans-serif), family-fixed: ('Courier New', monospace), weight: 300, weight-bold: 400, @@ -77,4 +77,4 @@ border-bg: rgba(255,255,255,0.125), accent: #837164 ), - ); \ No newline at end of file + ); diff --git a/themes/openrail/assets/sass/main.scss b/themes/openrail/assets/sass/main.scss index 6d529ca..24755cc 100644 --- a/themes/openrail/assets/sass/main.scss +++ b/themes/openrail/assets/sass/main.scss @@ -5,7 +5,7 @@ @import 'libs/breakpoints'; @import 'libs/html-grid'; @import 'fontawesome-all.min.css'; -@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i'); +@import 'custom/fonts.scss'; // Custom offline fonts /* Hugo Story by CaressOfSteel diff --git a/themes/openrail/static/webfonts/source-sans-3-v15-latin-300.woff2 b/themes/openrail/static/webfonts/source-sans-3-v15-latin-300.woff2 new file mode 100644 index 0000000..07151b6 Binary files /dev/null and b/themes/openrail/static/webfonts/source-sans-3-v15-latin-300.woff2 differ diff --git a/themes/openrail/static/webfonts/source-sans-3-v15-latin-300italic.woff2 b/themes/openrail/static/webfonts/source-sans-3-v15-latin-300italic.woff2 new file mode 100644 index 0000000..e8ea2b8 Binary files /dev/null and b/themes/openrail/static/webfonts/source-sans-3-v15-latin-300italic.woff2 differ diff --git a/themes/openrail/static/webfonts/source-sans-3-v15-latin-700.woff2 b/themes/openrail/static/webfonts/source-sans-3-v15-latin-700.woff2 new file mode 100644 index 0000000..4a3e7ea Binary files /dev/null and b/themes/openrail/static/webfonts/source-sans-3-v15-latin-700.woff2 differ diff --git a/themes/openrail/static/webfonts/source-sans-3-v15-latin-700italic.woff2 b/themes/openrail/static/webfonts/source-sans-3-v15-latin-700italic.woff2 new file mode 100644 index 0000000..f5c202b Binary files /dev/null and b/themes/openrail/static/webfonts/source-sans-3-v15-latin-700italic.woff2 differ diff --git a/themes/openrail/static/webfonts/source-sans-3-v15-latin-italic.woff2 b/themes/openrail/static/webfonts/source-sans-3-v15-latin-italic.woff2 new file mode 100644 index 0000000..c9766c4 Binary files /dev/null and b/themes/openrail/static/webfonts/source-sans-3-v15-latin-italic.woff2 differ diff --git a/themes/openrail/static/webfonts/source-sans-3-v15-latin-regular.woff2 b/themes/openrail/static/webfonts/source-sans-3-v15-latin-regular.woff2 new file mode 100644 index 0000000..c77d9e3 Binary files /dev/null and b/themes/openrail/static/webfonts/source-sans-3-v15-latin-regular.woff2 differ