[Compass Core] Support :first-child and :last-child pseudo selectors for +horizontal-list.

This commit is contained in:
Cody Robbins 2010-02-05 13:49:35 -08:00 committed by Chris Eppstein
parent 1eef589c29
commit 9a0b2f5bcd

View File

@ -30,6 +30,10 @@
//** //**
Can be mixed into any li selector that is meant to participate in a horizontal layout. Can be mixed into any li selector that is meant to participate in a horizontal layout.
Used to implement +horizontal-list. Used to implement +horizontal-list.
:last-child is not fully supported
see http://www.quirksmode.org/css/contents.html#t29 for the support matrix
=horizontal-list-item(!padding = 4px) =horizontal-list-item(!padding = 4px)
+no-bullet +no-bullet
white-space: nowrap white-space: nowrap
@ -37,9 +41,9 @@
padding: padding:
left= !padding left= !padding
right= !padding right= !padding
&.first &:first-child, &.first
padding-left: 0px padding-left: 0px
&.last &:last-child, &.last
padding-right: 0px padding-right: 0px
//** //**