Skip to content

Commit 583b711

Browse files
committed
Merge pull request #44 from flying-sheep/patch-1
made text-overflow backwards-compatible
2 parents 98d9f13 + 68a7356 commit 583b711

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

stylus/mixins.styl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@ placeholder(color = $input-color-placeholder) {
8080
// Text overflow
8181
// Requires inline-block or block for proper styling
8282
text-overflow() {
83-
overflow: hidden;
84-
text-overflow: ellipsis;
85-
white-space: nowrap;
83+
if arguments {
84+
text-overflow: arguments;
85+
} else {
86+
overflow: hidden;
87+
white-space: nowrap;
88+
text-overflow: ellipsis;
89+
}
8690
}
8791

8892
// CSS image replacement
@@ -913,4 +917,4 @@ input-size(input-height, padding-vertical, padding-horizontal, font-size, line-h
913917
select[multiple]& {
914918
height: auto;
915919
}
916-
}
920+
}

0 commit comments

Comments
 (0)