Skip to content

Commit

Permalink
Merge pull request #44 from flying-sheep/patch-1
Browse files Browse the repository at this point in the history
made text-overflow backwards-compatible
  • Loading branch information
maxmx committed May 21, 2014
2 parents 98d9f13 + 68a7356 commit 583b711
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions stylus/mixins.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -913,4 +917,4 @@ input-size(input-height, padding-vertical, padding-horizontal, font-size, line-h
select[multiple]& {
height: auto;
}
}
}

0 comments on commit 583b711

Please sign in to comment.