Sha256: 81c3fac1c58d5c9a94fee3e85ee0e85ea74115c65decb784dba4cb84c7c65c99

Contents?: true

Size: 1.32 KB

Versions: 17

Compression:

Stored size: 1.32 KB

Contents

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

@import bullets.sass
@import compass/utilities/general/reset.sass
@import compass/utilities/general/float.sass

//**
  Can be mixed into any selector that target a ul or ol that is meant
  to have a horizontal layout. Used to implement +horizontal-list.
=horizontal-list-container
  +reset-box-model
  +clearfix

//**
  Can be mixed into any li selector that is meant to participate in a horizontal layout.
  Used to implement +horizontal-list.
=horizontal-list-item(!padding = 4px)
  +no-bullet
  white-space: nowrap
  +float-left
  padding:
    left= !padding
    right= !padding
  &.first
    padding-left: 0px
  &.last
    padding-right: 0px

//**
  A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
  This is not an inline list.
=horizontal-list(!padding = 4px)
  +horizontal-list-container
  li
    +horizontal-list-item(!padding)

Version data entries

17 entries across 16 versions & 3 rubygems

Version Path
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/compass-0.10.0.pre5/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/compass-0.10.0.pre4/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-0.10.0.pre5 frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-0.10.0.pre4 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-0.10.0.pre3 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
middleman-0.12.2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
middleman-0.12.1 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-0.10.0.pre2 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-0.10.0.pre1 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-edge-0.9.5.0 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-edge-0.9.4 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-edge-0.9.3 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-edge-0.9.2 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-edge-0.9.1 lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
compass-edge-0.10.0.pre lib/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass