mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Indicate disabled but active All button
This commit is contained in:
		| @@ -13,12 +13,12 @@ | |||||||
|   <div class="dropdown-menu py-0 shadow" ngbDropdownMenu attr.aria-labelledby="dropdown{{title}}"> |   <div class="dropdown-menu py-0 shadow" ngbDropdownMenu attr.aria-labelledby="dropdown{{title}}"> | ||||||
|     <div class="list-group list-group-flush"> |     <div class="list-group list-group-flush"> | ||||||
|       <div *ngIf="!editing && multiple" class="list-group-item d-flex"> |       <div *ngIf="!editing && multiple" class="list-group-item d-flex"> | ||||||
|         <div class="btn-group btn-group-xs btn-group-toggle flex-fill" ngbRadioGroup [(ngModel)]="selectionModel.logicalOperator" (change)="selectionModel.toggleOperator()"> |         <div class="btn-group btn-group-xs btn-group-toggle flex-fill" ngbRadioGroup [(ngModel)]="selectionModel.logicalOperator" (change)="selectionModel.toggleOperator()" [disabled]="!operatorToggleEnabled"> | ||||||
|           <label ngbButtonLabel class="btn btn-outline-primary"> |           <label ngbButtonLabel class="btn btn-outline-primary"> | ||||||
|             <input ngbButton type="radio" name="logicalOperator" value="and" [disabled]="!operatorToggleEnabled"> All |             <input ngbButton type="radio" name="logicalOperator" value="and"> All | ||||||
|           </label> |           </label> | ||||||
|           <label ngbButtonLabel class="btn btn-outline-primary"> |           <label ngbButtonLabel class="btn btn-outline-primary"> | ||||||
|             <input ngbButton type="radio" name="logicalOperator" value="or" [disabled]="!operatorToggleEnabled"> Any |             <input ngbButton type="radio" name="logicalOperator" value="or"> Any | ||||||
|           </label> |           </label> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|   | |||||||
| @@ -1,3 +1,5 @@ | |||||||
|  | @import "/src/theme"; | ||||||
|  |  | ||||||
| .badge-corner { | .badge-corner { | ||||||
|   position: absolute; |   position: absolute; | ||||||
|   top: -8px; |   top: -8px; | ||||||
| @@ -34,8 +36,13 @@ | |||||||
|  |  | ||||||
| .btn-group > label.disabled { | .btn-group > label.disabled { | ||||||
|   filter: brightness(0.5); |   filter: brightness(0.5); | ||||||
|  |  | ||||||
|  |   &.active { | ||||||
|  |     background-color: lighten($primary, 30%); | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| small > svg { | small > svg { | ||||||
|   margin-top: -2px; |   margin-top: -2px; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -231,6 +231,10 @@ $border-color-dark-mode: #47494f; | |||||||
|       border-color: darken($primary-dark-mode, 10%); |       border-color: darken($primary-dark-mode, 10%); | ||||||
|       color: $text-color-dark-mode-accent; |       color: $text-color-dark-mode-accent; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     &.disabled.active { | ||||||
|  |       background-color: darken($primary-dark-mode, 10%); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .btn-outline-secondary { |   .btn-outline-secondary { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon