Sha256: 6cb69bbdfbe1ae5b0d24a04fe10b8bc3735eb72c131fdadddece442d1b497b89

Contents?: true

Size: 1.31 KB

Versions: 7

Compression:

Stored size: 1.31 KB

Contents

@import "compass/support";

// makes a list inline.
@mixin inline-list {
  list-style-type: none;
  &, & li {
    margin: 0px;
    padding: 0px;
    display: inline;
  }
}

// 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)
//
// `:last-child` is not fully supported.
// see quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t29).
//
// 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 delimited-list($separator: ", ") {
  @include inline-list;
  li {
    &:after { content: $separator; }
    &:last-child {
      &:after { content: ""; }
    }
    @if support-legacy-browser("ie", "7", $threshold: $css-sel2-support-threshold) {
      &.last {
        &:after { content: ""; }
      }
    }
  }
}

// See [delimited-list](#mixin-delimited-list)
// @deprecated
@mixin comma-delimited-list {
  @warn "comma-delimited-list is deprecated. Please use delimited-list instead.";
  @include delimited-list;
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
compass-core-1.0.0.alpha.15 stylesheets/compass/typography/lists/_inline-list.scss
compass-core-1.0.0.alpha.14 stylesheets/compass/typography/lists/_inline-list.scss
compass-core-1.0.0.alpha.13 stylesheets/compass/typography/lists/_inline-list.scss
compass-0.13.alpha.12 frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss
compass-0.13.alpha.10 frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss
compass-0.13.alpha.9 frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss
compass-0.13.alpha.8 frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss