Skip to content

Commit

Permalink
feat(md-collection): invert theme color for avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ullfis committed Sep 19, 2016
1 parent 0f8c8e9 commit ab09b97
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sample/src/samples/collections/avatar.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,15 @@
<i class="material-icons">send</i>
</div>
</md-collection-item>
<md-collection-item class="accent-text avatar">
<i class="circle material-icons primary-text" style="font-size:36px;">person</i>
<span class="title">Title</span>
<p>First Line <br>
Second Line
</p>
<div class="secondary-content">
<i class="material-icons">send</i>
</div>
</md-collection-item>
</div>
</template>
16 changes: 16 additions & 0 deletions src/colors/md-colors.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,22 @@
md-collection .collection md-collection-item.collection-item.avatar i.circle.success {
background-color: ${mdAccentColor};
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.primary-text {
color: ${mdPrimaryColor};
background-color: transparent;
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.accent-text {
color: ${mdAccentColor};
background-color: transparent;
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.error-text {
color: ${mdErrorColor};
background-color: transparent;
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.success-text {
color: ${mdAccentColor};
background-color: transparent;
}


/* datepicker */
Expand Down

0 comments on commit ab09b97

Please sign in to comment.