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`
This commit is contained in:
Sheldon Baker
2013-11-23 12:21:51 -08:00
parent 75594db9ee
commit 98a43b78c0

View File

@@ -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;