From 6c3c610d36a2f30f6dac7aaa3a5ac8872ad030b8 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 28 Jul 2024 16:18:59 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E6=9C=89=E5=B0=8F=E6=95=B0=E7=82=B9=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E6=B8=B2=E6=9F=93=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/en/documentation/advanced/index.md | 8 ++++---- content/zh-cn/documentation/advanced/index.md | 8 ++++---- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/content/en/documentation/advanced/index.md b/content/en/documentation/advanced/index.md index daa2877..0c52fef 100644 --- a/content/en/documentation/advanced/index.md +++ b/content/en/documentation/advanced/index.md @@ -59,23 +59,23 @@ In addition, you can also customize the `pageStyle` value in `assets/css/_custom For example: `pageStyle="custom"` -```scss +```scss {data-open=true} [data-page-style='custom'] { @media only screen and (min-width: 1441px) { %page-style { - width: 70%; + width: Round(70%, 2px); } } @media only screen and (min-width: 1440px) { %page-style { - width: 60%; + width: Round(60%, 2px); } } @media only screen and (min-width: 1200px) { %page-style { - width: 56%; + width: Round(56%, 2px); } } } diff --git a/content/zh-cn/documentation/advanced/index.md b/content/zh-cn/documentation/advanced/index.md index c343ff3..87db807 100644 --- a/content/zh-cn/documentation/advanced/index.md +++ b/content/zh-cn/documentation/advanced/index.md @@ -59,23 +59,23 @@ FixIt 主题提供了页面宽度配置选项 `pageStyle` 并提供三种选项 例如: `pageStyle="custom"` -```scss +```scss {data-open=true} [data-page-style='custom'] { @media only screen and (min-width: 1441px) { %page-style { - width: 70%; + width: Round(70%, 2px); } } @media only screen and (min-width: 1440px) { %page-style { - width: 60%; + width: Round(60%, 2px); } } @media only screen and (min-width: 1200px) { %page-style { - width: 56%; + width: Round(56%, 2px); } } } diff --git a/go.mod b/go.mod index 294fb7c..fa25614 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/hugo-fixit/docs go 1.20 require ( - github.com/hugo-fixit/FixIt v0.3.10-0.20240728062545-7c8520551925 // indirect + github.com/hugo-fixit/FixIt v0.3.10-0.20240728081823-16c903fac987 // indirect github.com/hugo-fixit/component-projects v1.1.2 // indirect github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect github.com/hugo-fixit/shortcode-rewards v1.0.4 // indirect diff --git a/go.sum b/go.sum index be15d2a..2319b2f 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/hugo-fixit/FixIt v0.3.10-0.20240728062545-7c8520551925 h1:hlPXSCYulPv7I2yzijb1p7B5c/EmAKRL0jXHoenBSdM= -github.com/hugo-fixit/FixIt v0.3.10-0.20240728062545-7c8520551925/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= +github.com/hugo-fixit/FixIt v0.3.10-0.20240728081823-16c903fac987 h1:xT7INWQLeIpvS0SAGC5RZ3v6mGVeIWWRy3tNqJ4BRtI= +github.com/hugo-fixit/FixIt v0.3.10-0.20240728081823-16c903fac987/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= github.com/hugo-fixit/component-projects v1.1.2 h1:hKJ+1CM6Y0wEdA8Pnn8MSZel+ukYtUvzC3VQk+AFSl4= github.com/hugo-fixit/component-projects v1.1.2/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c= github.com/hugo-fixit/shortcode-caniuse v1.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=