Skip to content

Commit

Permalink
dir support for md-list-item > md-icon
Browse files Browse the repository at this point in the history
edit css for md-list-item > md-icon to better view in each direction (ltr or rtl)
  • Loading branch information
hadimansouri authored Oct 20, 2017
1 parent fa252ad commit a4c4021
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions angular-material-icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,19 @@ md-list-item .md-list-item-inner > ng-md-icon.md-secondary {
box-sizing: content-box;
}

md-list-item > ng-md-icon:first-child,
md-list-item .md-list-item-inner > ng-md-icon:first-child {
[dir=ltr] md-list-item > ng-md-icon:first-child,
[dir=ltr] md-list-item .md-list-item-inner > ng-md-icon:first-child{
-webkit-margin-end: 32px;
margin-right: 32px;
}


[dir=rtl] md-list-item > ng-md-icon:first-child,
[dir=rtl] md-list-item .md-list-item-inner > ng-md-icon:first-child{
-webkit-margin-end: 32px;
margin-left: 32px;
}

md-list-item.md-2-line > ng-md-icon:first-child,
md-list-item.md-2-line > .md-no-style > ng-md-icon:first-child {
-webkit-align-self: flex-start;
Expand Down

0 comments on commit a4c4021

Please sign in to comment.