From 25571074bd7624a09a9495b4c7266777e97503a1 Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Thu, 1 Feb 2024 17:21:24 +0100 Subject: [PATCH] add Locale callout --- content | 2 +- quartz/styles/custom.scss | 1 + quartz/styles/locale.scss | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 quartz/styles/locale.scss diff --git a/content b/content index dcb8169..65280ab 160000 --- a/content +++ b/content @@ -1 +1 @@ -Subproject commit dcb8169206251554544a83420aea7a5da802ca49 +Subproject commit 65280abf8dbedc478cf7817f5f8fe2caebda67a8 diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index d074276..fe2f1a3 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -1,5 +1,6 @@ @use "./base.scss"; @use "./wiki.scss"; +@use "./locale.scss"; // put your custom CSS here! @media (min-width: 600px) { diff --git a/quartz/styles/locale.scss b/quartz/styles/locale.scss new file mode 100644 index 0000000..b4a7b4d --- /dev/null +++ b/quartz/styles/locale.scss @@ -0,0 +1,38 @@ +.callout[data-callout~="local"] { + //float: right; + width: 28px; + height: 28px; + padding: 0; + margin: 0; + border-radius: unset; + overflow: unset; + position: relative; + z-index: 4; + background-color: unset; + border: unset; + & > .callout-title, + & > p { + justify-content: flex-end; + width: 100%; + height: 100%; + position: absolute; + padding: 0; + margin: 0; + z-index: 5; + border-radius: unset; + + & > .callout-icon { + display: none; + } + & img { + border-radius: unset; + } + } + & > * a { + width: 100%; + height: 100%; + display: block; + overflow: hidden; + font-size: 0; + } +}