mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
style(Toast): add transition (#8743)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
|
transition: all @animation-duration-fast;
|
||||||
|
|
||||||
// hack for avoid max-width when use left & fixed
|
// hack for avoid max-width when use left & fixed
|
||||||
width: @toast-default-width;
|
width: @toast-default-width;
|
||||||
@@ -16,7 +17,7 @@
|
|||||||
font-size: @toast-font-size;
|
font-size: @toast-font-size;
|
||||||
line-height: @toast-line-height;
|
line-height: @toast-line-height;
|
||||||
|
|
||||||
// allow newline charactor
|
// allow newline character
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
Reference in New Issue
Block a user