From db2a091a2fca6502f2cff96493b794823df2de18 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Mon, 12 Aug 2024 21:42:42 +1000 Subject: [PATCH] chore (rewrite): code editor font --- public/assets/css/designsystem.css | 29 +++++++++++++++++++ .../pages/viewerpage/application_editor.css | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/public/assets/css/designsystem.css b/public/assets/css/designsystem.css index 50b19d7d..705abc47 100644 --- a/public/assets/css/designsystem.css +++ b/public/assets/css/designsystem.css @@ -145,3 +145,32 @@ select:-moz-focusring { scrollbar-shadow-color: #2d2c4d; scrollbar-track-color: rgba(0, 0, 0, .1); } + +@font-face { + font-family: "Source Code Pro"; + font-style: normal; + font-weight: 400; + src: local("Source Code Pro"), local("SourceCodePro-Regular"), url(../fonts/SourceCodePro-Regular-400-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +@font-face { + font-family: "Source Code Pro"; + font-style: normal; + font-weight: 400; + src: local("Source Code Pro"), local("SourceCodePro-Regular"), url(../fonts/SourceCodePro-Regular-400-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +@font-face { + font-family: "Source Code Pro"; + font-style: normal; + font-weight: 600; + src: local('Source Code Pro Semibold'), local('SourceCodePro-Semibold'), url(../fonts/SourceCodePro-Semibold-600-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +@font-face { + font-family: "Source Code Pro"; + font-style: normal; + font-weight: 600; + src: local("Source Code Pro Semibold"), local("SourceCodePro-Semibold"), url(../fonts/SourceCodePro-Semibold-600-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/public/assets/pages/viewerpage/application_editor.css b/public/assets/pages/viewerpage/application_editor.css index 7c968584..45186f6e 100644 --- a/public/assets/pages/viewerpage/application_editor.css +++ b/public/assets/pages/viewerpage/application_editor.css @@ -91,7 +91,7 @@ /* Font stuff */ .CodeMirror { font-size: 16px; - font-family: 'Source Code Pro', monospace; + font-family: "Source Code Pro", monospace; } .cm-s-default .cm-header {