Skip to content

Commit

Permalink
change(item): tweak size and padding of icon when used inside item
Browse files Browse the repository at this point in the history
- this way they are more balanced and we avoid big width differences
  from icon to icon
  • Loading branch information
ichim-david committed Jul 3, 2022
1 parent 8aa4716 commit dbdef19
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion theme/themes/eea/views/item.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@
}
}

// decrease margin when using icons instead of images
// since the icons have themselves extra whitespace
// and we should aim to get about 32px as seen in the figma design
.item .icon {
width: auto;
margin-right: 0;
}
.ui.items > .item > .icon + .content {
padding-left: @tabletItemSpacing;
}

.item .tile.image,
.block .item .tile.image {
width: @tileImageWidth;
Expand All @@ -80,7 +91,7 @@
margin: @mobileRowItemMargin;
}

// As semantic does for non unstacable items
// As semantic does for non unstackable items
// so columns does not affect margin in mobiles
.ui.items.row > .item:last-child {
margin-bottom: 0;
Expand Down

0 comments on commit dbdef19

Please sign in to comment.