Disabled state simplification
This commit is contained in:
parent
15d98f4c12
commit
47071627c5
|
@ -50,7 +50,7 @@
|
|||
Cancel
|
||||
</button>
|
||||
|
||||
<button *ngIf="isAddButtonDisplayed()" class="peertube-button orange-button" [ngClass]="{ disabled: !form.valid || addingComment }">
|
||||
<button *ngIf="isAddButtonDisplayed()" class="peertube-button orange-button" [disabled]="!form.valid || addingComment">
|
||||
{{ addingCommentButtonValue }}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
i18n-labelText labelText="Auto select subtitle"
|
||||
></my-peertube-checkbox>
|
||||
|
||||
<div class="peertube-select-container" [ngClass]="{ disabled: !customizations.subtitleCheckbox }">
|
||||
<div class="peertube-select-container">
|
||||
<select [(ngModel)]="customizations.subtitle" [disabled]="!customizations.subtitleCheckbox" class="form-control">
|
||||
<option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option>
|
||||
</select>
|
||||
|
|
|
@ -134,8 +134,7 @@
|
|||
background-color: pvar(--mainHoverColor);
|
||||
}
|
||||
|
||||
&[disabled],
|
||||
&.disabled {
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
color: #fff;
|
||||
background-color: pvar(--inputBorderColor);
|
||||
|
@ -165,8 +164,7 @@
|
|||
background-color: pvar(--mainColorLightest);
|
||||
}
|
||||
|
||||
&[disabled],
|
||||
&.disabled {
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
color: pvar(--mainColor);
|
||||
background-color: pvar(--inputBorderColor);
|
||||
|
@ -183,8 +181,7 @@
|
|||
|
||||
@include button-focus($grey-button-outline-color);
|
||||
|
||||
&[disabled],
|
||||
.disabled {
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
@ -202,14 +199,12 @@
|
|||
&:hover,
|
||||
&:active,
|
||||
&:focus,
|
||||
&[disabled],
|
||||
&.disabled {
|
||||
&[disabled] {
|
||||
color: pvar(--greyForegroundColor);
|
||||
background-color: pvar(--greySecondaryBackgroundColor);
|
||||
}
|
||||
|
||||
&[disabled],
|
||||
&.disabled {
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
@ -230,13 +225,11 @@
|
|||
&:hover,
|
||||
&:active,
|
||||
&:focus,
|
||||
&[disabled],
|
||||
&.disabled {
|
||||
&[disabled] {
|
||||
background-color: color.adjust($color: $color, $lightness: 10%);
|
||||
}
|
||||
|
||||
&[disabled],
|
||||
&.disabled {
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
@ -369,14 +362,6 @@
|
|||
position: relative;
|
||||
height: min-content;
|
||||
|
||||
&.disabled {
|
||||
background-color: #E5E5E5;
|
||||
|
||||
select {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
select[disabled] {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue