From aaf846ab11300efa5d051334417f11c03f3f5eb2 Mon Sep 17 00:00:00 2001 From: wangzipai <38389763+wangzipai@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:05:05 +0800 Subject: [PATCH] Update custom.scss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加图片居中和高亮美化 --- quartz/styles/custom.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index b0c09dcb9..0a570291c 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -1,3 +1,17 @@ @use "./base.scss"; // put your custom CSS here! + +/* 图片居中 */ +img { + display: block; + margin-left: auto; + margin-right: auto; +} +/* 高亮美化 */ +.text-highlight { + background-color:#3463ffce; + color: white; + border-radius: 5px; + padding: 2px; +}