From 68a735626e491cf900a29f274d91dbc772b42ad9 Mon Sep 17 00:00:00 2001 From: flying-sheep Date: Sat, 26 Apr 2014 13:36:17 +0200 Subject: [PATCH] made text-overflow backwards-compatible --- stylus/mixins.styl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/stylus/mixins.styl b/stylus/mixins.styl index 1f94e46..6cd8aab 100644 --- a/stylus/mixins.styl +++ b/stylus/mixins.styl @@ -80,9 +80,13 @@ placeholder(color = $input-color-placeholder) { // Text overflow // Requires inline-block or block for proper styling text-overflow() { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + if arguments { + text-overflow: arguments; + } else { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } } // CSS image replacement @@ -913,4 +917,4 @@ input-size(input-height, padding-vertical, padding-horizontal, font-size, line-h select[multiple]& { height: auto; } -} \ No newline at end of file +}