-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(md-colors): add important to background colors #277
Conversation
primary, accent, error and success to be able to color avatar icons in md-collection
I'm not sure really. I always tried to prevent |
Another approach is to be more specific about what to put the theme color on to: md-collection .collection md-collection-item.collection-item.avatar i.circle.primary {
background-color: ${mdPrimaryColor}!important;
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.accent {
background-color: ${mdAccentColor}!important;
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.error {
background-color: ${mdErrorColor}!important;
}
md-collection .collection md-collection-item.collection-item.avatar i.circle.success {
background-color: ${mdAccentColor}!important;
} Cant get away without |
Why close it? The idea is a good one. If you can't get away with |
This overrides bg-color: |
Excellent! Here is some more to add 😄 Use -text classes to remove the circle: 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;
} <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> Result: |
.. primary, accent, error and success
to be able to color avatar icons in md-collection