Sha256: 32152ca0752bf2378f9031a0e2e93c846f21c9f3ea0626671c6f1be3c5bff397

Contents?: true

Size: 1.38 KB

Versions: 35

Compression:

Stored size: 1.38 KB

Contents

// Inline-Block list layout module.
//
// Easy mode using simple descendant li selectors:
//
//   ul.nav
//     +inline-block-list
//
// Advanced mode:
// If you need to target the list items using a different selector then use
// +inline-block-list-container on your ul/ol and +inline-block-list-item on your li.
// This may help when working on layouts involving nested lists. For example:
//
//   ul.nav
//     +inline-block-list-container
//     > li
//       +inline-block-list-item

@import "bullets";
@import "horizontal-list";
@import "compass/utilities/general/float";
@import "compass/css3/inline-block";

// Can be mixed into any selector that target a ul or ol that is meant
// to have an inline-block layout. Used to implement +inline-block-list.
@mixin inline-block-list-container {
  @include horizontal-list-container; }

// Can be mixed into any li selector that is meant to participate in a horizontal layout.
// Used to implement +inline-block-list.

@mixin inline-block-list-item($padding: false) {
  @include no-bullet;
  @include inline-block;
  white-space: nowrap;
  @if $padding {
    padding: {
      left: $padding;
      right: $padding;
    };    
  }
}

// A list(ol,ul) that is layed out such that the elements are inline-block and won't wrap.
@mixin inline-block-list($padding: false) {
  @include inline-block-list-container;
  li {
    @include inline-block-list-item($padding); } }

Version data entries

35 entries across 32 versions & 4 rubygems

Version Path
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
concen-0.2.9 app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss
concen-0.2.8 app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss
concen-0.2.7 app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss
concen-0.2.6 app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss
concen-0.2.5 app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss
compass-0.12.alpha.0 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-rails31-0.12.0.alpha.0.91a748a frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.5 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.4 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.3 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.2 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.1 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.0 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss
compass-0.11.beta.7 frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss