From 87d0ad76b9a3f9fca4e9e8bca6bcf32260f42d8c Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 22 Sep 2022 14:46:52 +0800 Subject: [PATCH] :lipstick: Style: change line-break style of code element from `anywhere` to `auto` --- CHANGELOG.md | 1 + assets/css/_partials/_single/_code.scss | 2 +- assets/lib/valine/valine.scss | 2 +- docs | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc3338bf..88984441 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ All notable changes to this project will be documented in this file. - :art: Style: change the default icons of some social links - :bug: Fix: component `paginator` style error ([#188](https://github.com/hugo-fixit/FixIt/issues/188)) - :lipstick: Style: fix language and theme switch cursor style ([#193](https://github.com/hugo-fixit/FixIt/issues/193)) +- :lipstick: Style: change line-break style of code element from `anywhere` to `auto` - :globe_with_meridians: Docs(i18n): update pt-br, de in i18n - :mag: Perf(SEO): enhance SEO performance - :wrench: Chore: modify babel config and optimize theme.js compilation and loading diff --git a/assets/css/_partials/_single/_code.scss b/assets/css/_partials/_single/_code.scss index 9dd4c70e..560f840b 100644 --- a/assets/css/_partials/_single/_code.scss +++ b/assets/css/_partials/_single/_code.scss @@ -9,7 +9,7 @@ code { text-decoration: inherit; @include border-radius($global-border-radius); @include overflow-wrap(break-word); - @include line-break(anywhere); + @include line-break(auto); [data-theme='dark'] & { color: $code-color-dark; diff --git a/assets/lib/valine/valine.scss b/assets/lib/valine/valine.scss index da302239..9d6ba561 100644 --- a/assets/lib/valine/valine.scss +++ b/assets/lib/valine/valine.scss @@ -51,7 +51,7 @@ $code-background-color-dark: #272C34 !default; code, pre, pre code { font-size: 90%; @include overflow-wrap(break-word); - @include line-break(anywhere); + @include line-break(auto); @include tab-size(4); color: $code-color; background: $code-background-color; diff --git a/docs b/docs index c4e4c675..ccaff762 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit c4e4c675ca96d014fead31fe57c0ce6ac48277cc +Subproject commit ccaff762457f794870a7087b8504bfa134682187