'delimited-list' now generalizes 'comma-delimited-list'
This commit is contained in:
parent
3ee95174eb
commit
0944d85ade
@ -9,8 +9,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// makes an inline list that is comma delimited.
|
// makes an inline list delimited with the passed string.
|
||||||
// Please make note of the browser support issues before using this mixin.
|
// 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.
|
// 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)
|
// See quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t15)
|
||||||
@ -21,10 +23,10 @@
|
|||||||
// IE8 ignores rules that are included on the same line as :last-child
|
// 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
|
// 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;
|
@include inline-list;
|
||||||
li {
|
li {
|
||||||
&:after { content: ", "; }
|
&:after { content: $separator; }
|
||||||
&:last-child {
|
&:last-child {
|
||||||
&:after { content: ""; }
|
&:after { content: ""; }
|
||||||
}
|
}
|
||||||
@ -33,3 +35,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// See [delimited-list](#mixin-delimited-list)
|
||||||
|
// @deprecated
|
||||||
|
@mixin comma-delimited-list {
|
||||||
|
@include delimited-list
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user