From 028bcec62c3ca019a96783f17eaee1ecce6e092b Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 07 Aug 2023 00:09:29 +0000
Subject: [PATCH] mobile fixes, fix bug when linking to anchor on home, docs
---
quartz/styles/base.scss | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index ebdc2fa..6bed7ca 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -81,7 +81,9 @@
.page {
@media all and (max-width: $fullPageWidth) {
- margin: 0 5vw;
+ margin: 0 auto;
+ padding: 0 1rem;
+ max-width: 800px;
}
& article {
@@ -136,7 +138,7 @@
& .sidebar.left {
left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);
@media all and (max-width: $fullPageWidth) {
- gap: 0rem;
+ gap: 0;
align-items: center;
}
}
@@ -197,15 +199,13 @@
&::after {
content: "";
- top: -1px;
- left: -1px;
position: absolute;
left: 4px;
top: 1px;
width: 4px;
height: 8px;
display: block;
- border: solid 1px var(--light);
+ border: solid var(--light);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
@@ -312,6 +312,7 @@
&:has(> code.mermaid) {
border: none;
+ position: relative;
}
& > code {
--
Gitblit v1.10.0