From 809df67a14e2a9ff3fbf74fb7b4068003f40b9e3 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Fri, 8 Oct 2021 17:03:12 +1100 Subject: [PATCH] remove csp-blocked fonts from themes --- repo/dracula/variables.css | 5 ----- repo/menu/styles.mjs | 2 +- repo/neutral/app.css | 4 ++-- repo/neutral/mod.json | 2 +- repo/neutral/variables.css | 9 --------- repo/nord/variables.css | 7 ------- repo/pastel-dark/variables.css | 5 ----- 7 files changed, 4 insertions(+), 30 deletions(-) diff --git a/repo/dracula/variables.css b/repo/dracula/variables.css index 7eef340..bd8686f 100644 --- a/repo/dracula/variables.css +++ b/repo/dracula/variables.css @@ -6,8 +6,6 @@ * (https://notion-enhancer.github.io/) under the MIT license */ -@import 'https://rsms.me/inter/inter.css'; - :root.dark { --dracula--bg: #282a36; --dracula--bg_lighter: #424450; @@ -42,9 +40,6 @@ --dracula--bg_pink: #8d4a7c; --dracula--bg_red: #943844; - --theme--font_sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, - 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; - --theme--accent_blue: var(--dracula--purple); --theme--accent_blue-selection: #bb8dfd3d; --theme--accent_blue-hover: #b179ff; diff --git a/repo/menu/styles.mjs b/repo/menu/styles.mjs index dbf8c04..4a99029 100644 --- a/repo/menu/styles.mjs +++ b/repo/menu/styles.mjs @@ -97,7 +97,7 @@ setup({ theme: { fontFamily: { sans: ['var(--theme--font_sans)'], - mono: ['var(--theme--font_mono)'], + mono: ['var(--theme--font_code)'], }, colors: { 'notion': 'var(--theme--bg)', diff --git a/repo/neutral/app.css b/repo/neutral/app.css index c1c967d..038e209 100644 --- a/repo/neutral/app.css +++ b/repo/neutral/app.css @@ -17,8 +17,8 @@ } /* 1.3 supreme ratio. https://www.modularscale.com/ */ -.notion-frame .notion-page-block div[placeholder='Untitled'], -.notion-overlay-container .notion-page-block div[placeholder='Untitled'] { +.notion-frame .notion-page-block > div[placeholder='Untitled'], +.notion-overlay-container .notion-page-block > div[placeholder='Untitled'] { font-size: 33px !important; } [placeholder='Heading 1'] { diff --git a/repo/neutral/mod.json b/repo/neutral/mod.json index 4e741ae..57c535a 100644 --- a/repo/neutral/mod.json +++ b/repo/neutral/mod.json @@ -2,7 +2,7 @@ "name": "neutral", "id": "c4435543-4705-4d68-8cf7-d11c342f8089", "version": "0.2.0", - "description": "smoother colours and fonts, designed to be more pleasing to the eye.", + "description": "smoother colours and text sizing, designed to be more pleasing to the eye.", "tags": ["theme", "dark"], "authors": [ { diff --git a/repo/neutral/variables.css b/repo/neutral/variables.css index 58360b6..1ab1de8 100644 --- a/repo/neutral/variables.css +++ b/repo/neutral/variables.css @@ -5,16 +5,7 @@ * under the MIT license */ -@import 'https://rsms.me/inter/inter.css'; -@import 'https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap'; - :root.dark { - --theme--font_sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, - 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; - --theme--font_mono: 'Roboto Mono', iawriter-mono, Nitti, Menlo, Courier, monospace; - --theme--font_code: 'Roboto Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, - Courier, monospace; - --theme--accent_blue: #404040; --theme--accent_blue-selection: #52525244; --theme--accent_blue-hover: #6d6d6d; diff --git a/repo/nord/variables.css b/repo/nord/variables.css index 8f5622e..bc40718 100644 --- a/repo/nord/variables.css +++ b/repo/nord/variables.css @@ -6,9 +6,6 @@ * (https://notion-enhancer.github.io/) under the MIT license */ -@import 'https://rsms.me/inter/inter.css'; -@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap'); - :root.dark { --nord--dark1: #2e3440; --nord--dark2: #3b4252; @@ -27,10 +24,6 @@ --nord--green: #a3be8c; --nord--purple: #b48ead; - --theme--font_sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, - 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; - --theme--font_code: 'Fira Code', monospace; - --theme--accent_blue: var(--nord--frost2); --theme--accent_blue-selection: rgb(136 192 208 / 50%); --theme--accent_blue-hover: var(--nord--frost1); diff --git a/repo/pastel-dark/variables.css b/repo/pastel-dark/variables.css index 1e38b3d..bc77ff6 100644 --- a/repo/pastel-dark/variables.css +++ b/repo/pastel-dark/variables.css @@ -5,12 +5,7 @@ * under the MIT license */ -@import 'https://rsms.me/inter/inter.css'; - :root.dark { - --theme--font_sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, - 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; - --theme--accent_blue: #b887f7; --theme--accent_blue-selection: rgba(184, 135, 247, 0.3); --theme--accent_blue-hover: #08d7c2;