From b33f13ccaf4ec14a94ee0ee467dda04cf4981d00 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 01 Jan 2024 22:20:34 +0000
Subject: [PATCH] fix: dont show last page if folder
---
quartz/components/styles/listPage.scss | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/quartz/components/styles/listPage.scss b/quartz/components/styles/listPage.scss
index a5d0a91..c8fc9e9 100644
--- a/quartz/components/styles/listPage.scss
+++ b/quartz/components/styles/listPage.scss
@@ -1,3 +1,5 @@
+@use "../../styles/variables.scss" as *;
+
ul.section-ul {
list-style: none;
margin-top: 2em;
@@ -8,29 +10,31 @@
margin-bottom: 1em;
& > .section {
- display: flex;
- align-items: center;
+ display: grid;
+ grid-template-columns: 6em 3fr 1fr;
- @media all and (max-width: 600px) {
- & .tags {
+ @media all and (max-width: $mobileBreakpoint) {
+ & > .tags {
display: none;
}
}
- & h3 > a {
- font-weight: 700;
- margin: 0;
+ & > .desc > h3 > a {
background-color: transparent;
}
- & p {
+ & > .meta {
margin: 0;
- padding-right: 1em;
flex-basis: 6em;
+ opacity: 0.6;
}
}
+}
- & .meta {
- opacity: 0.6;
+// modifications in popover context
+.popover .section {
+ grid-template-columns: 6em 1fr !important;
+ & > .tags {
+ display: none;
}
}
--
Gitblit v1.10.0