From 9a0b2f5bcd21d71bce2956054ce4fccf3663249d Mon Sep 17 00:00:00 2001 From: Cody Robbins Date: Fri, 5 Feb 2010 13:49:35 -0800 Subject: [PATCH] [Compass Core] Support :first-child and :last-child pseudo selectors for +horizontal-list. --- .../compass/utilities/lists/_horizontal_list.sass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass b/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass index 8c601d6c..04205ef0 100644 --- a/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +++ b/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass @@ -30,6 +30,10 @@ //** Can be mixed into any li selector that is meant to participate in a horizontal layout. 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) +no-bullet white-space: nowrap @@ -37,9 +41,9 @@ padding: left= !padding right= !padding - &.first + &:first-child, &.first padding-left: 0px - &.last + &:last-child, &.last padding-right: 0px //**