From 1439e9bea410cc8f8aad306a98dc149bb301d774 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 5 Aug 2020 03:52:59 +0200 Subject: [PATCH] path relativi per font --- themes/hackit0x16/static/css/fonts.css | 4 -- themes/maya0x17/static/fonts/fonts.css | 59 ------------------------- themes/maya0x17/static/fonts/fonts.scss | 59 +++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 63 deletions(-) delete mode 100644 themes/hackit0x16/static/css/fonts.css delete mode 100644 themes/maya0x17/static/fonts/fonts.css create mode 100644 themes/maya0x17/static/fonts/fonts.scss diff --git a/themes/hackit0x16/static/css/fonts.css b/themes/hackit0x16/static/css/fonts.css deleted file mode 100644 index 482b2c1..0000000 --- a/themes/hackit0x16/static/css/fonts.css +++ /dev/null @@ -1,4 +0,0 @@ -@font-face { - font-family: "Typo"; - src: url(../fonts/monotype.ttf) format("truetype"); -} diff --git a/themes/maya0x17/static/fonts/fonts.css b/themes/maya0x17/static/fonts/fonts.css deleted file mode 100644 index d7406f8..0000000 --- a/themes/maya0x17/static/fonts/fonts.css +++ /dev/null @@ -1,59 +0,0 @@ -/* recursive-regular - latin */ -$font-display: swap; -@font-face { - font-family: 'Recursive'; - font-display: $font-display; - font-style: normal; - font-weight: 400; - src: url('/theme/fonts/recursive-v20-latin-regular.eot'); /* IE9 Compat Modes */ - src: local(''), - url('/theme/fonts/recursive-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('/theme/fonts/recursive-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ - url('/theme/fonts/recursive-v20-latin-regular.woff') format('woff'), /* Modern Browsers */ - url('/theme/fonts/recursive-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ - url('/theme/fonts/recursive-v20-latin-regular.svg#Recursive') format('svg'); /* Legacy iOS */ -} - -/* recursive-500 - latin */ -@font-face { - font-display: $font-display; - font-family: 'Recursive'; - font-style: normal; - font-weight: 500; - src: url('/theme/fonts/recursive-v20-latin-500.eot'); /* IE9 Compat Modes */ - src: local(''), - url('/theme/fonts/recursive-v20-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('/theme/fonts/recursive-v20-latin-500.woff2') format('woff2'), /* Super Modern Browsers */ - url('/theme/fonts/recursive-v20-latin-500.woff') format('woff'), /* Modern Browsers */ - url('/theme/fonts/recursive-v20-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */ - url('/theme/fonts/recursive-v20-latin-500.svg#Recursive') format('svg'); /* Legacy iOS */ -} - -/* recursive-800 - latin */ -@font-face { - font-display: $font-display; - font-family: 'Recursive'; - font-style: normal; - font-weight: 800; - src: url('/theme/fonts/recursive-v20-latin-800.eot'); /* IE9 Compat Modes */ - src: local(''), - url('/theme/fonts/recursive-v20-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('/theme/fonts/recursive-v20-latin-800.woff2') format('woff2'), /* Super Modern Browsers */ - url('/theme/fonts/recursive-v20-latin-800.woff') format('woff'), /* Modern Browsers */ - url('/theme/fonts/recursive-v20-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */ - url('/theme/fonts/recursive-v20-latin-800.svg#Recursive') format('svg'); /* Legacy iOS */ -} -/* caesar-dressing-regular - latin */ -@font-face { - $font-display: fallback; - font-family: 'Caesar Dressing'; - font-style: normal; - font-weight: 400; - src: url('/theme/fonts/caesar-dressing-v9-latin-regular.eot'); /* IE9 Compat Modes */ - src: local('Caesar Dressing'), local('CaesarDressing-Regular'), - url('/theme/fonts/caesar-dressing-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('/theme/fonts/caesar-dressing-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ - url('/theme/fonts/caesar-dressing-v9-latin-regular.woff') format('woff'), /* Modern Browsers */ - url('/theme/fonts/caesar-dressing-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ - url('/theme/fonts/caesar-dressing-v9-latin-regular.svg#CaesarDressing') format('svg'); /* Legacy iOS */ -} diff --git a/themes/maya0x17/static/fonts/fonts.scss b/themes/maya0x17/static/fonts/fonts.scss new file mode 100644 index 0000000..ed2b802 --- /dev/null +++ b/themes/maya0x17/static/fonts/fonts.scss @@ -0,0 +1,59 @@ +/* recursive-regular - latin */ +$font-display: swap; +@font-face { + font-family: 'Recursive'; + font-display: $font-display; + font-style: normal; + font-weight: 400; + src: url('theme/fonts/recursive-v20-latin-regular.eot'); /* IE9 Compat Modes */ + src: local(''), + url('theme/fonts/recursive-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('theme/fonts/recursive-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('theme/fonts/recursive-v20-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('theme/fonts/recursive-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('theme/fonts/recursive-v20-latin-regular.svg#Recursive') format('svg'); /* Legacy iOS */ +} + +/* recursive-500 - latin */ +@font-face { + font-display: $font-display; + font-family: 'Recursive'; + font-style: normal; + font-weight: 500; + src: url('theme/fonts/recursive-v20-latin-500.eot'); /* IE9 Compat Modes */ + src: local(''), + url('theme/fonts/recursive-v20-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('theme/fonts/recursive-v20-latin-500.woff2') format('woff2'), /* Super Modern Browsers */ + url('theme/fonts/recursive-v20-latin-500.woff') format('woff'), /* Modern Browsers */ + url('theme/fonts/recursive-v20-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */ + url('theme/fonts/recursive-v20-latin-500.svg#Recursive') format('svg'); /* Legacy iOS */ +} + +/* recursive-800 - latin */ +@font-face { + font-display: $font-display; + font-family: 'Recursive'; + font-style: normal; + font-weight: 800; + src: url('theme/fonts/recursive-v20-latin-800.eot'); /* IE9 Compat Modes */ + src: local(''), + url('theme/fonts/recursive-v20-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('theme/fonts/recursive-v20-latin-800.woff2') format('woff2'), /* Super Modern Browsers */ + url('theme/fonts/recursive-v20-latin-800.woff') format('woff'), /* Modern Browsers */ + url('theme/fonts/recursive-v20-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */ + url('theme/fonts/recursive-v20-latin-800.svg#Recursive') format('svg'); /* Legacy iOS */ +} +/* caesar-dressing-regular - latin */ +@font-face { + $font-display: fallback; + font-family: 'Caesar Dressing'; + font-style: normal; + font-weight: 400; + src: url('theme/fonts/caesar-dressing-v9-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('Caesar Dressing'), local('CaesarDressing-Regular'), + url('theme/fonts/caesar-dressing-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('theme/fonts/caesar-dressing-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('theme/fonts/caesar-dressing-v9-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('theme/fonts/caesar-dressing-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('theme/fonts/caesar-dressing-v9-latin-regular.svg#CaesarDressing') format('svg'); /* Legacy iOS */ +}