<td *ngIf="isSelected('quotaDaily')">
<div class="progress" i18n-title title="Total daily video quota">
- <div class="progress-bar secondary" role="progressbar" [style]="{ width: getUserVideoQuotaDailyPercentage(user) + '%' }"
+ <div class="progress-bar" role="progressbar" [style]="{ width: getUserVideoQuotaDailyPercentage(user) + '%' }"
[attr.aria-valuenow]="user.rawVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="user.rawVideoQuotaDaily">
</div>
<span>{{ user.videoQuotaUsedDaily }}</span>
}
getUserVideoQuotaDailyPercentage (user: UserForList) {
+ console.log(user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily)
return user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily
}
@use '_mixins' as *;
-@mixin secondary {
- height: 60%;
- width: 60%;
- position: absolute;
- bottom: -5px;
- right: -5px;
- background-color: rgba(0, 0, 0, 0);
-}
-
.wrapper {
@include margin-right(5px);
margin-bottom: 5px;
.second-avatar {
- @include secondary();
+ height: 60%;
+ width: 60%;
+ position: absolute;
+ bottom: -5px;
+ right: -5px;
+ background-color: rgba(0, 0, 0, 0);
}
}
<div *ngIf="hasDailyQuota()" class="mt-3">
<label class="user-quota-title" tabindex="0" i18n>Daily video quota</label>
<div class="progress" tabindex="0" [ngbTooltip]="titleVideoQuotaDaily()">
- <div class="progress-bar secondary" role="progressbar" [style]="{ width: userVideoQuotaDailyPercentage + '%' }"
+ <div class="progress-bar" role="progressbar" [style]="{ width: userVideoQuotaDailyPercentage + '%' }"
[attr.aria-valuenow]="userVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="user.videoQuotaDaily"></div>
<span>{{ userVideoQuotaUsedDaily | bytes: 1 }}</span>
<span>{{ userVideoQuotaDaily }}</span>
--mainBackgroundColor: #{$bg-color};
--mainForegroundColor: #{$fg-color};
- --secondaryColor: #{$secondary-color};
-
--greyForegroundColor: #{$grey-foreground-color};
--greyBackgroundColor: #{$grey-background-color};
--greySecondaryBackgroundColor: #{$grey-background-hover-color};
}
}
-.btn-outline-tertiary {
- color: pvar(--secondaryColor);
- border-color: pvar(--secondaryColor);
-
- &:focus-within,
- &:focus,
- &:hover {
- color: pvar(--mainBackgroundColor);
- background-color: pvar(--secondaryColor);
- }
-}
-
.btn-group.select-button {
font-weight: $font-semibold;
white-space: nowrap;
transition: width 0.6s ease;
- &.secondary {
- background-color: pvar(--secondaryColor);
- }
-
&.red {
background-color: lighten($color: #c54130, $amount: 10);
}
$main-hover-color: lighten($main-color, 5%);
$main-background-hover-color: #e9ecef;
-$secondary-color: hsl(187, 77%, 34%);
-
$support-button: inherit;
$support-button-heart: #e83e8c;
--mainBackgroundColor: var(--mainBackgroundColor),
--mainForegroundColor: var(--mainForegroundColor),
- --secondaryColor: var(--secondaryColor),
-
--greyForegroundColor: var(--greyForegroundColor),
--greyBackgroundColor: var(--greyBackgroundColor),
--greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),