user pills: Rename class notmem to not-editable for generalization.

This commit is contained in:
Yashashvi Dave
2018-08-18 09:53:53 +05:30
committed by Tim Abbott
parent 5f10fa1692
commit 9812b81a1e
3 changed files with 6 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ exports.populate_user_groups = function () {
userg.addClass('ntm');
pill_container.find('.input').attr('contenteditable','false');
pill_container.find('.input').css('display', 'none');
pill_container.addClass('notmem');
pill_container.addClass('not-editable');
pill_container.off('keydown', '.pill');
pill_container.off('keydown', '.input');
pill_container.off('click');

View File

@@ -33,23 +33,23 @@
outline: none;
}
.pill-container.notmem {
.pill-container.not-editable {
cursor: not-allowed;
border: none;
}
.pill-container.notmem .pill {
.pill-container.not-editable .pill {
padding-right: 4px;
cursor: not-allowed;
}
.pill-container.notmem .pill:focus {
.pill-container.not-editable .pill:focus {
color: inherit;
border: 1px solid hsla(0, 0%, 0%, 0.15);
background: hsla(0, 0%, 0%, 0.07);
}
.pill-container.notmem .pill .exit {
.pill-container.not-editable .pill .exit {
display: none;
}

View File

@@ -6,6 +6,6 @@
<span class="description" data-placeholder="{{t 'Description' }}">{{description}}</span>
</h4>
<p class="subscribers">{{t 'Subscribers' }}</p>
<div class="pill-container notmem" data-group-pills="{{id}}"></div>
<div class="pill-container not-editable" data-group-pills="{{id}}"></div>
</div>
{{/with}}