From 0944d85ade28594d9e279948fafffd620f6ccdcf Mon Sep 17 00:00:00 2001 From: Chad Ostrowski Date: Thu, 3 Feb 2011 08:09:47 -0500 Subject: [PATCH] 'delimited-list' now generalizes 'comma-delimited-list' --- .../compass/typography/lists/_inline-list.scss | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss b/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss index 29bc74fc..1b5fef6e 100644 --- a/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +++ b/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss @@ -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) @@ -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: ""; } } @@ -33,3 +35,9 @@ } } } + +// See [delimited-list](#mixin-delimited-list) +// @deprecated +@mixin comma-delimited-list { + @include delimited-list +}