From 267af1bd9cb0b58e82395d0a91b7dea400dfe475 Mon Sep 17 00:00:00 2001 From: zhouzhongping Date: Thu, 11 Jan 2024 09:20:44 +0800 Subject: [PATCH] feature: add custom css --- quartz.layout.ts | 2 ++ quartz/styles/custom.scss | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/quartz.layout.ts b/quartz.layout.ts index 1f16595..5382a04 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -8,6 +8,7 @@ export const sharedPageComponents: SharedLayout = { header: [], footer: Component.Footer({ links: { + "Home": "https://www.7wate.com", "Blog": "https://blog.7wate.com", GitHub: "https://github.com/7wate", }, @@ -41,6 +42,7 @@ export const defaultContentPageLayout: PageLayout = { Component.Graph(), Component.DesktopOnly(Component.TableOfContents()), Component.Backlinks(), + Component.MobileOnly(Component.Explorer()), ], } diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index b0c09dc..268632d 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -1,3 +1,9 @@ @use "./base.scss"; // put your custom CSS here! +// 移动端下右侧组件垂直布局 +@media (max-width: 1510px) { + #quartz-body .sidebar.right { + flex-direction: column!important; + } +}