diff --git a/packages/presentation/src/components/message/Nodes.svelte b/packages/presentation/src/components/message/Nodes.svelte index 9d398b0516..da2bc652bb 100644 --- a/packages/presentation/src/components/message/Nodes.svelte +++ b/packages/presentation/src/components/message/Nodes.svelte @@ -169,4 +169,12 @@ s { color: var(--theme-accent-color); } + code { + padding: 0 0.25rem; + font-family: var(--mono-font); + color: var(--theme-code-color); + background-color: var(--theme-button-enabled); + border: 1px solid var(--theme-button-border); + border-radius: 0.25rem; + } diff --git a/packages/theme/fonts/complete/otf/Raleway-Bold.otf b/packages/theme/fonts/complete/otf/Raleway-Bold.otf deleted file mode 100644 index 08bf50e8be..0000000000 Binary files a/packages/theme/fonts/complete/otf/Raleway-Bold.otf and /dev/null differ diff --git a/packages/theme/fonts/complete/otf/Raleway-Regular.otf b/packages/theme/fonts/complete/otf/Raleway-Regular.otf deleted file mode 100644 index 7d3812ba9e..0000000000 Binary files a/packages/theme/fonts/complete/otf/Raleway-Regular.otf and /dev/null differ diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss index 1cef9fb751..bb0429152c 100644 --- a/packages/theme/styles/_colors.scss +++ b/packages/theme/styles/_colors.scss @@ -108,6 +108,7 @@ --theme-dark-color: rgba(255, 255, 255, .6); --theme-content-color: rgba(255, 255, 255, .8); --theme-caption-color: #FFF; + --theme-code-color: #EB7861; --theme-list-border-color: rgba(255, 255, 255, .05); --theme-list-header-color: #C88C65; @@ -299,6 +300,7 @@ --theme-dark-color: rgba(0, 0, 0, .6); --theme-content-color: rgba(0, 0, 0, .8); --theme-caption-color: #000; + --theme-code-color: #377AE6; --theme-list-border-color: rgba(0, 0, 0, .09); --theme-list-header-color: red; //#ECD4CA; diff --git a/packages/theme/styles/global.scss b/packages/theme/styles/global.scss index f238620ea5..0c12b262a3 100644 --- a/packages/theme/styles/global.scss +++ b/packages/theme/styles/global.scss @@ -25,6 +25,8 @@ @import "./button.scss"; @import "./_text-editor.scss"; +@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400;1,500&display=swap'); + @font-face { font-family: 'IBM Plex Sans'; font-style: normal; @@ -70,6 +72,7 @@ --body-font-size: .875rem; --panel-aside-width: 25rem; // 20rem; --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto; + --mono-font: 'IBM Plex Mono', monospace; --timing-shadow: cubic-bezier(0,.65,.35,1); --timing-main: cubic-bezier(0.25, 0.46, 0.45, 0.94); --timing-rotate: cubic-bezier(.28,1.92,.39,.56); diff --git a/packages/theme/styles/prose.scss b/packages/theme/styles/prose.scss index c9da788b28..ffd2ce8faf 100644 --- a/packages/theme/styles/prose.scss +++ b/packages/theme/styles/prose.scss @@ -46,26 +46,11 @@ table.proseTable { } } -.theme-dark .proseCode { - padding: 0px 4px; - - color: #EB7861; - - /* Button/Theme Dark/Default */ - background: rgba(255, 255, 255, 0.02); - /* Button/Theme Dark/Stroke */ - border: 1px solid rgba(255, 255, 255, 0.09); - border-radius: 4px; +.proseCode { + padding: 0 .25rem; + font-family: var(--mono-font); + color: var(--theme-code-color); + background-color: var(--theme-button-enabled); + border: 1px solid var(--theme-button-border); + border-radius: .25rem; } - -.theme-light .proseCode { - padding: 0px 4px; - - color: #377AE6; - - /* Button/Theme Light/Default */ - background: rgba(0, 0, 0, 0.02); - /* Button/Theme Light/Stroke */ - border: 1px solid rgba(0, 0, 0, 0.09); - border-radius: 4px; -} \ No newline at end of file diff --git a/plugins/attachment-resources/src/components/AttachmentPresenter.svelte b/plugins/attachment-resources/src/components/AttachmentPresenter.svelte index 9f05943381..083fce194f 100644 --- a/plugins/attachment-resources/src/components/AttachmentPresenter.svelte +++ b/plugins/attachment-resources/src/components/AttachmentPresenter.svelte @@ -87,6 +87,7 @@
-