button, switch: add soft wrap mode
This commit is contained in:
parent
231f5c8312
commit
3e97e84943
3 changed files with 26 additions and 2 deletions
|
|
@ -56,6 +56,9 @@
|
|||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
&.wrap-soft {
|
||||
word-break: normal
|
||||
}
|
||||
&.vertical {
|
||||
transform: rotate(180deg);
|
||||
text-overflow: ellipsis;
|
||||
|
|
@ -139,6 +142,12 @@
|
|||
justify-content: center;
|
||||
text-overflow: clip;
|
||||
overflow: hidden;
|
||||
|
||||
white-space: pre;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
|
||||
|
||||
@include pseudo-fill($z: -1);
|
||||
&:after {
|
||||
--line-width: 1rem;
|
||||
|
|
@ -153,6 +162,15 @@
|
|||
|
||||
}
|
||||
|
||||
&.wrap value {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
&.wrap-soft value {
|
||||
word-break: normal
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// @keyframes menu-widget-fade {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue