💄 Style: change line-break style of code element from anywhere to auto

This commit is contained in:
Cell
2022-09-22 14:46:52 +08:00
parent 2640471fdb
commit 87d0ad76b9
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
Submodule docs updated: c4e4c675ca...ccaff76245