grey out disabled badges in admin overview (#5416)

* gray out disabled badges in admin overview

* fix style
This commit is contained in:
Maja Komel 2017-12-27 06:57:21 +01:00 committed by Sam
parent cc46ab5bb1
commit 2a32536645
2 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
export default Ember.Component.extend({
tagName: 'span',
classNameBindings: [':user-badge', 'badge.badgeTypeClassName'],
classNameBindings: [':user-badge', 'badge.badgeTypeClassName', 'badge.enabled::disabled'],
title: function(){
return $("<div>"+this.get('badge.description')+"</div>").text();
}.property('badge.description'),

View File

@ -30,6 +30,14 @@
&.badge-type-bronze .fa {
color: #cd7f32 !important;
}
&.disabled {
color: $primary-medium;
background-color: $primary-very-low;
.fa {
opacity: 0.4;
}
}
}
@media all and (max-width: 750px) {