From 98a43b78c02f210d3eb5848c8feb6b620c3d6756 Mon Sep 17 00:00:00 2001 From: Sheldon Baker Date: Sat, 23 Nov 2013 12:21:51 -0800 Subject: [PATCH] Target only direct descendants of .item-thumbnail-* Prevents the `img` from being positioned twice in the case of: `div.item-thumbnail-left > div.item-image > img` --- scss/_items.scss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scss/_items.scss b/scss/_items.scss index 1d2a6a8b2a0..2fab47f839c 100644 --- a/scss/_items.scss +++ b/scss/_items.scss @@ -1,4 +1,3 @@ - /** * Items * -------------------------------------------------- @@ -403,7 +402,7 @@ button.item-button-right:after { padding-left: $item-thumbnail-width + $item-thumbnail-margin + $item-padding; min-height: $item-thumbnail-height + ($item-thumbnail-margin * 2); - img:first-child, .item-image { + > img:first-child, > .item-image { position: absolute; top: $item-thumbnail-margin; left: $item-thumbnail-margin; @@ -417,7 +416,7 @@ button.item-button-right:after { padding-right: $item-thumbnail-width + $item-thumbnail-margin + $item-padding; min-height: $item-thumbnail-height + ($item-thumbnail-margin * 2); - img:first-child, .item-image { + > img:first-child, > .item-image { position: absolute; top: $item-thumbnail-margin; right: $item-thumbnail-margin;