2020-12-10 16:49:59 +08:00
|
|
|
/*!markdown
|
|
|
|
|
|
|
|
---
|
|
|
|
title: Text OverFlow
|
|
|
|
---
|
|
|
|
|
2020-12-22 14:58:36 +08:00
|
|
|
| Class | Properties |
|
|
|
|
| ----------- | ------------------------ |
|
|
|
|
| truncate | overflow: hidden; text-overflow: ellipsis; white-space: nowrap |
|
|
|
|
| overflow-ellipsis | text-overflow: ellipsis |
|
|
|
|
| overflow-clip | text-overflow: clip |
|
|
|
|
|
2020-12-10 16:49:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
@mixin make-text-overflow($prefix: '.') {
|
|
|
|
#{$prefix}truncate {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
#{$prefix}overflow-ellipsis {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
#{$prefix}overflow-clip {
|
|
|
|
text-overflow: clip;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include make-text-overflow();
|
|
|
|
@each $deivce in map-keys($devices) {
|
|
|
|
@include media-device($deivce) {
|
|
|
|
@include make-text-overflow('.' + selector-escape($deivce + ':'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// hover ?
|