Allow the padding between the list items in horizontal-list mixin to be specified as an argument.

This commit is contained in:
Chris Eppstein 2008-11-01 11:47:36 -07:00
parent 16f83b496a
commit 1182a5cb4d

View File

@ -1,7 +1,7 @@
@import bullets.sass @import bullets.sass
// A list(ol,ul) that is layed out such that the elements are floated left and won't wrap. // 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. // This is not an inline list.
=horizontal-list =horizontal-list(!padding = 4px)
:overflow auto :overflow auto
:padding-left 0px :padding-left 0px
:margin 0px :margin 0px
@ -10,8 +10,8 @@
:white-space nowrap :white-space nowrap
:float left :float left
:padding :padding
:left 4px :left= !padding
:right 4px :right= !padding
&.first &.first
:padding-left 0px :padding-left 0px
&.last &.last