mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat: improve word wrap (#4506)
This commit is contained in:
parent
5a84bc8cc5
commit
68da81a51a
@ -22,7 +22,7 @@ export default {
|
||||
box-sizing: border-box;
|
||||
|
||||
pre {
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ code {
|
||||
font-family: @van-doc-code-font-family;
|
||||
line-height: 24px;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
pre {
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
&__title,
|
||||
&__desc {
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
&__title {
|
||||
|
@ -35,6 +35,7 @@
|
||||
// allow newline charactor
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
&--has-title {
|
||||
|
@ -51,7 +51,7 @@
|
||||
&__text {
|
||||
color: @grid-item-text-color;
|
||||
font-size: @grid-item-text-font-size;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
&__icon + &__text {
|
||||
|
@ -57,6 +57,7 @@
|
||||
&__content {
|
||||
position: relative;
|
||||
white-space: normal;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,7 @@
|
||||
// allow newline charactor
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
|
||||
&--primary {
|
||||
background-color: @notify-primary-background-color;
|
||||
|
@ -8,7 +8,7 @@
|
||||
color: @sidebar-text-color;
|
||||
font-size: @sidebar-font-size;
|
||||
line-height: @sidebar-line-height;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
background-color: @sidebar-background-color;
|
||||
border-left: 3px solid transparent;
|
||||
user-select: none;
|
||||
|
@ -75,7 +75,7 @@
|
||||
font-weight: 500;
|
||||
font-size: 22px;
|
||||
vertical-align: middle;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
&__goods-price {
|
||||
|
@ -22,7 +22,7 @@
|
||||
// allow newline charactor
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
background-color: @toast-background-color;
|
||||
border-radius: @toast-border-radius;
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user