mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	user pills: Rename class notmem to not-editable for generalization.
				
					
				
			This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							5f10fa1692
						
					
				
				
					commit
					9812b81a1e
				
			@@ -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');
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user