Skip to content

Commit

Permalink
fix(list): align text in lists with icons
Browse files Browse the repository at this point in the history
Define min-width for icon in lists, so text is aligned.

Closes #597
  • Loading branch information
globophobe authored and Sean committed May 1, 2019
1 parent 58dafe0 commit 566b363
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/definitions/elements/list.less
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ ol.ui.list ol li,
.ui.list .list > .item > i.icon,
.ui.list > .item > i.icon {
display: table-cell;
min-width: 1.55em;
margin: 0;
padding-top: @iconOffset;
transition: @iconTransition;
Expand All @@ -118,6 +119,7 @@ ol.ui.list ol li,
.ui.list .list > .item > i.icon:only-child,
.ui.list > .item > i.icon:only-child {
display: inline-block;
min-width: auto;
vertical-align: @iconVerticalAlign;
}

Expand Down

0 comments on commit 566b363

Please sign in to comment.