From 38cff2d670ecf7fd325aaaf776a4c250a72cc661 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Tue, 4 Jul 2023 16:48:36 -0700 Subject: [PATCH] more visual polish, adjust colours and spacing --- quartz.config.ts | 10 +- quartz/components/Backlinks.tsx | 2 +- quartz/components/DesktopOnly.tsx | 4 +- quartz/components/Footer.tsx | 14 +- quartz/components/Graph.tsx | 2 +- quartz/components/MobileOnly.tsx | 4 +- quartz/components/ReadingTime.tsx | 2 +- quartz/components/Spacer.tsx | 7 +- quartz/components/TableOfContents.tsx | 2 +- quartz/components/pages/FolderContent.tsx | 1 - quartz/components/pages/TagContent.tsx | 1 - quartz/components/renderPage.tsx | 18 +-- quartz/components/scripts/graph.inline.ts | 13 +- quartz/components/scripts/search.inline.ts | 62 ++++----- quartz/components/styles/darkmode.scss | 2 +- quartz/components/styles/footer.scss | 1 - quartz/components/styles/popover.scss | 4 +- quartz/components/styles/search.scss | 6 +- quartz/components/styles/toc.scss | 2 +- quartz/components/types.ts | 3 + quartz/styles/base.scss | 150 +++++++++++++-------- quartz/styles/variables.scss | 3 +- 22 files changed, 173 insertions(+), 140 deletions(-) diff --git a/quartz.config.ts b/quartz.config.ts index 18f2533e..4f17bd92 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -22,6 +22,7 @@ const contentPageLayout: PageLayout = { ], left: [ Component.PageTitle(), + Component.MobileOnly(Component.Spacer()), Component.Search(), Component.Darkmode(), Component.DesktopOnly(Component.TableOfContents()), @@ -38,6 +39,7 @@ const listPageLayout: PageLayout = { ], left: [ Component.PageTitle(), + Component.MobileOnly(Component.Spacer()), Component.Search(), Component.Darkmode() ], @@ -63,8 +65,8 @@ const config: QuartzConfig = { colors: { lightMode: { light: '#faf8f8', - lightgray: '#e8e8e8', - gray: '#dadada', + lightgray: '#e5e5e5', + gray: '#b8b8b8', darkgray: '#4e4e4e', dark: '#141021', secondary: '#284b63', @@ -73,8 +75,8 @@ const config: QuartzConfig = { }, darkMode: { light: '#161618', - lightgray: '#292629', - gray: '#343434', + lightgray: '#393639', + gray: '#646464', darkgray: '#d4d4d4', dark: '#fbfffe', secondary: '#7b97aa', diff --git a/quartz/components/Backlinks.tsx b/quartz/components/Backlinks.tsx index 50969770..0784e9ae 100644 --- a/quartz/components/Backlinks.tsx +++ b/quartz/components/Backlinks.tsx @@ -8,7 +8,7 @@ function Backlinks({ fileData, allFiles }: QuartzComponentProps) { const backlinkFiles = allFiles.filter(file => file.links?.includes(slug)) return