From 1416f62a471f6b9910a86ae57e48bafc24af3278 Mon Sep 17 00:00:00 2001 From: Emile Bangma Date: Mon, 30 Sep 2024 04:24:15 +0200 Subject: [PATCH] fix(layout): backlinks grid triage (#1447) * fix: mobile backlinks orientation * temp: hide broken list gradient * fix: backlinks overflow --- quartz/components/styles/backlinks.scss | 48 ++++++++++++------------- quartz/components/styles/explorer.scss | 4 +-- quartz/styles/base.scss | 4 +-- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/quartz/components/styles/backlinks.scss b/quartz/components/styles/backlinks.scss index 36fb6a4c6..dc82ce74a 100644 --- a/quartz/components/styles/backlinks.scss +++ b/quartz/components/styles/backlinks.scss @@ -1,11 +1,8 @@ @use "../../styles/variables.scss" as *; .backlinks { - @media all and not ($mobile) { - overflow-y: auto; - display: flex; - flex-direction: column; - &:after { + flex-direction: column; + /*&:after { pointer-events: none; content: ""; width: 100%; @@ -16,29 +13,32 @@ opacity: 1; transition: opacity 0.3s ease; background: linear-gradient(transparent 0px, var(--light)); - } + }*/ - & > h3 { - font-size: 1rem; - margin: 0; - } + & > h3 { + font-size: 1rem; + margin: 0; + } - & > ul { - list-style: none; - padding: 0; - margin: 0.5rem 0; + & > ul { + list-style: none; + padding: 0; + margin: 0.5rem 0; - & > li { - & > a { - background-color: transparent; - } - } - } - - & > .overflow { - &:after { - display: none; + & > li { + & > a { + background-color: transparent; } } } + + & > .overflow { + &:after { + display: none; + } + height: auto; + @media all and ($desktop) { + height: 250px; + } + } } diff --git a/quartz/components/styles/explorer.scss b/quartz/components/styles/explorer.scss index ab388dce5..397fd0241 100644 --- a/quartz/components/styles/explorer.scss +++ b/quartz/components/styles/explorer.scss @@ -9,7 +9,7 @@ display: flex; } } - &:after { + /*&:after { pointer-events: none; content: ""; width: 100%; @@ -20,7 +20,7 @@ opacity: 1; transition: opacity 0.3s ease; background: linear-gradient(transparent 0px, var(--light)); - } + }*/ } button#explorer { diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 8511b2d62..9cf8cc98d 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -554,7 +554,7 @@ ol.overflow { & > li:last-of-type { margin-bottom: 30px; } - &:after { + /*&:after { pointer-events: none; content: ""; width: 100%; @@ -565,7 +565,7 @@ ol.overflow { opacity: 1; transition: opacity 0.3s ease; background: linear-gradient(transparent 0px, var(--light)); - } + }*/ } .transclude {