From bca6f61a2a9cbc66ca99007a45c75a27f698ef46 Mon Sep 17 00:00:00 2001 From: Keldos Date: Mon, 13 Feb 2023 23:02:47 +0800 Subject: [PATCH] feat: add zoom variable, resolve #80 --- src/scss/settings.scss | 2 ++ src/scss/typora.scss | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scss/settings.scss b/src/scss/settings.scss index 1beb4ab..9221e6a 100644 --- a/src/scss/settings.scss +++ b/src/scss/settings.scss @@ -101,6 +101,8 @@ /* == 页面设置 == */ /* 打印页边距 */ --set-margin: 1.8cm 2cm 1.2cm 2cm !important; + /* 页面放大倍率 */ + --set-zoom: 1.13; /* == 控制设置 == */ /* 目录中是否显示一级标题 */ diff --git a/src/scss/typora.scss b/src/scss/typora.scss index 984f1ab..f03884c 100644 --- a/src/scss/typora.scss +++ b/src/scss/typora.scss @@ -1,9 +1,8 @@ @media screen { #write { + zoom: var(--set-zoom); padding: var(--set-margin); @if $theme == "light" { - /* 添加一个淡蓝色的边框 */ - /* border: 0.8px solid #AAC ; */ /* 页边阴影 */ box-shadow: 0 0 24px 12px #cccccc; } @else if $theme == "dark" {