mediawiki-extensions-Echo/modules/mixins.less
jdlrobson 5ff3189146 Prevent horizontal scroll bars in Firefox
Use inline block and width to force truncation of the flow topics

Bug: 69563
Change-Id: I62fc95a58dbdf0f21e36e67e1941e4e35585e2d2
2014-08-14 13:21:49 -07:00

21 lines
532 B
Plaintext

// Begin Mixins
// FIXME: Use a core mixin.
// truncated-text
//
// Add the truncated-text mixin to any element where long text is
// expected, and truncating improves the UX.
// Can be used with .truncated-text(true) to undo text truncation.
//
// Use in Flow, Echo and MobileFrontend extensions.
.truncated-text(@undo: false) when not (@undo) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.truncated-text(@undo: false) when (@undo) {
white-space: inherit;
overflow: inherit;
text-overflow: inherit;
}