X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a8282aa69e00292bec986722c5230ff89f96f450..f3ee4c1bfbf4e3856268fa79c63465f591f3499e:/src/wolnelektury/static/2022/styles/base/_fonts.scss diff --git a/src/wolnelektury/static/2022/styles/base/_fonts.scss b/src/wolnelektury/static/2022/styles/base/_fonts.scss index 489da8791..eb30a6399 100644 --- a/src/wolnelektury/static/2022/styles/base/_fonts.scss +++ b/src/wolnelektury/static/2022/styles/base/_fonts.scss @@ -1,29 +1,68 @@ +/* source-sans-pro-300 - cyrillic_greek_greek-ext_latin_latin-ext */ @font-face { - font-family: "Futura PT"; - src: url('#{$font-path}/subset-FuturaPT-Book.ttf?20uhbq') format('truetype'), - url('#{$font-path}/subset-FuturaPT-Book.woff?20uhbq') format('woff'), - url('#{$font-path}/subset-FuturaPT-Book.woff2?20uhbq') format('woff2'); - font-weight: $regular; + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans Pro'; font-style: normal; - font-display: swap; + font-weight: 300; + src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-300.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } +/* source-sans-pro-300italic - cyrillic_greek_greek-ext_latin_latin-ext */ @font-face { - font-family: "Canela"; - src: url('#{$font-path}/subset-Canela-Light.ttf?20uhbq') format('truetype'), - url('#{$font-path}/subset-Canela-Light.woff?20uhbq') format('woff'), - url('#{$font-path}/subset-Canela-Light.woff2?20uhbq') format('woff2'); - font-weight: $light; + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans Pro'; + font-style: italic; + font-weight: 300; + src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-300italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-300italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-pro-regular - cyrillic_greek_greek-ext_latin_latin-ext */ +@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 Pro'; font-style: normal; - font-display: swap; + font-weight: 400; + src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } +/* source-sans-pro-italic - cyrillic_greek_greek-ext_latin_latin-ext */ @font-face { - font-family: "Canela"; - src: url('#{$font-path}/subset-Canela-LightItalic.ttf?20uhbq') format('truetype'), - url('#{$font-path}/subset-Canela-LightItalic.woff') format('woff'), - url('#{$font-path}/subset-Canela-LightItalic.woff2') format('woff2'); - font-weight: $light; + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans Pro'; font-style: italic; - font-display: swap; + font-weight: 400; + src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-pro-600 - cyrillic_greek_greek-ext_latin_latin-ext */ +@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 Pro'; + font-style: normal; + font-weight: 600; + src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-600.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-pro-700 - cyrillic_greek_greek-ext_latin_latin-ext */ +@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 Pro'; + font-style: normal; + font-weight: 700; + src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + + + +@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 Serif Pro'; + font-style: normal; + src: url('/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2') format('woff2'); }