[Compass Core] Support :first-child and :last-child pseudo selectors for +horizontal-list.
This commit is contained in:
parent
1eef589c29
commit
9a0b2f5bcd
@ -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
|
||||||
|
|
||||||
//**
|
//**
|
||||||
|
Loading…
Reference in New Issue
Block a user