Skip to content

Commit

Permalink
'delimited-list' now generalizes 'comma-delimited-list'
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh authored and chriseppstein committed Feb 22, 2011
1 parent 3ee9517 commit 0944d85
Showing 1 changed file with 12 additions and 4 deletions.
Expand Up @@ -9,8 +9,10 @@
}
}

// makes an inline list that is comma delimited.
// Please make note of the browser support issues before using this mixin.
// makes an inline list delimited with the passed string.
// Defaults to making a comma-separated list.
//
// Please make note of the browser support issues before using this mixin:
//
// use of `content` and `:after` is not fully supported in all browsers.
// See quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t15)
Expand All @@ -21,10 +23,10 @@
// IE8 ignores rules that are included on the same line as :last-child
// see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details

@mixin comma-delimited-list {
@mixin delimited-list($separator: ", ") {
@include inline-list;
li {
&:after { content: ", "; }
&:after { content: $separator; }
&:last-child {
&:after { content: ""; }
}
Expand All @@ -33,3 +35,9 @@
}
}
}

// See [delimited-list](#mixin-delimited-list)
// @deprecated
@mixin comma-delimited-list {
@include delimited-list
}

0 comments on commit 0944d85

Please sign in to comment.