Skip to content

Commit

Permalink
Fix: 修复页面宽度有小数点导致的渲染错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 28, 2024
1 parent 69ef32b commit 6c3c610
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions content/en/documentation/advanced/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions content/zh-cn/documentation/advanced/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down

0 comments on commit 6c3c610

Please sign in to comment.