Debian Codegraph @

lib/compass/typography/lists/_inline-list.scss

raw
1 // makes a list inline.
2
3 @mixin inline-list {
4 list-style-type: none;
5 &, & li {
6 margin: 0px;
7 padding: 0px;
8 display: inline;
9 }
10 }
11
12 // makes an inline list delimited with the passed string.
13 // Defaults to making a comma-separated list.
14 //
15 // Please make note of the browser support issues before using this mixin:
16 //
17 // use of `content` and `:after` is not fully supported in all browsers.
18 // See quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t15)
19 //
20 // `:last-child` is not fully supported.
21 // see quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t29).
22 //
23 // IE8 ignores rules that are included on the same line as :last-child
24 // see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details
25
26 @mixin delimited-list($separator: ", ") {
27 @include inline-list;
28 li {
29 &:after { content: $separator; }
30 &:last-child {
31 &:after { content: ""; }
32 }
33 &.last {
34 &:after { content: ""; }
35 }
36 }
37 }
38
39 // See [delimited-list](#mixin-delimited-list)
40 // @deprecated
41 @mixin comma-delimited-list {
42 @warn "comma-delimited-list is deprecated. Please use delimited-list instead.";
43 @include delimited-list;
44 }