Skip to content

Commit 98a43b7

Browse files
author
Sheldon Baker
committed
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`
1 parent 75594db commit 98a43b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scss/_items.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Items
43
* --------------------------------------------------
@@ -403,7 +402,7 @@ button.item-button-right:after {
403402
padding-left: $item-thumbnail-width + $item-thumbnail-margin + $item-padding;
404403
min-height: $item-thumbnail-height + ($item-thumbnail-margin * 2);
405404

406-
img:first-child, .item-image {
405+
> img:first-child, > .item-image {
407406
position: absolute;
408407
top: $item-thumbnail-margin;
409408
left: $item-thumbnail-margin;
@@ -417,7 +416,7 @@ button.item-button-right:after {
417416
padding-right: $item-thumbnail-width + $item-thumbnail-margin + $item-padding;
418417
min-height: $item-thumbnail-height + ($item-thumbnail-margin * 2);
419418

420-
img:first-child, .item-image {
419+
> img:first-child, > .item-image {
421420
position: absolute;
422421
top: $item-thumbnail-margin;
423422
right: $item-thumbnail-margin;

0 commit comments

Comments
 (0)