Remove secondary color theme

This commit is contained in:
Chocobozzz 2022-06-10 14:06:52 +02:00
parent 60d3601371
commit 1fef6bccd9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
8 changed files with 9 additions and 34 deletions

View File

@ -139,7 +139,7 @@
<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>

View File

@ -190,6 +190,7 @@ export class UserListComponent extends RestTable implements OnInit {
}
getUserVideoQuotaDailyPercentage (user: UserForList) {
console.log(user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily)
return user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily
}

View File

@ -1,14 +1,5 @@
@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);
@ -16,6 +7,11 @@
margin-bottom: 5px;
.second-avatar {
@include secondary();
height: 60%;
width: 60%;
position: absolute;
bottom: -5px;
right: -5px;
background-color: rgba(0, 0, 0, 0);
}
}

View File

@ -12,7 +12,7 @@
<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>

View File

@ -37,8 +37,6 @@ body {
--mainBackgroundColor: #{$bg-color};
--mainForegroundColor: #{$fg-color};
--secondaryColor: #{$secondary-color};
--greyForegroundColor: #{$grey-foreground-color};
--greyBackgroundColor: #{$grey-background-color};
--greySecondaryBackgroundColor: #{$grey-background-hover-color};

View File

@ -264,18 +264,6 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
}
}
.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;

View File

@ -678,10 +678,6 @@
white-space: nowrap;
transition: width 0.6s ease;
&.secondary {
background-color: pvar(--secondaryColor);
}
&.red {
background-color: lighten($color: #c54130, $amount: 10);
}

View File

@ -23,8 +23,6 @@ $main-color-lightest: lighten($main-color, 40%);
$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;
@ -118,8 +116,6 @@ $variables: (
--mainBackgroundColor: var(--mainBackgroundColor),
--mainForegroundColor: var(--mainForegroundColor),
--secondaryColor: var(--secondaryColor),
--greyForegroundColor: var(--greyForegroundColor),
--greyBackgroundColor: var(--greyBackgroundColor),
--greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),