]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove secondary color theme
authorChocobozzz <me@florianbigard.com>
Fri, 10 Jun 2022 12:06:52 +0000 (14:06 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 10 Jun 2022 12:06:52 +0000 (14:06 +0200)
client/src/app/+admin/overview/users/user-list/user-list.component.html
client/src/app/+admin/overview/users/user-list/user-list.component.ts
client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss
client/src/app/shared/shared-main/users/user-quota.component.html
client/src/sass/application.scss
client/src/sass/bootstrap.scss
client/src/sass/include/_mixins.scss
client/src/sass/include/_variables.scss

index f6915ae9a0d8e6e4b5d71634c37d1c53bb1bdbc3..4da46dc7bd18bab7a5d8099ed399a7338ca567d6 100644 (file)
 
       <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>
index f7dc22256f041d5145f471f29b08b82097a90d4f..c3a7646cc8b7da97c9884e96261e9cdc1b513c8e 100644 (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
   }
 
index 80711ff321deb7f3bce8982934805eff902f6d1f..fd9dd1a6a2adfc01dbd2760559c677238f5812b0 100644 (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);
   }
 }
index dd1fc20d08732083fc041739b45eafa8875e7072..0e0d38c2ab3ebb85a451561c1eddaa8aaa2fdc16 100644 (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>
index b5b05a3c4a67a3ac0b156acf94dc2257993092bd..44c0d13ffa9e732867e689dd8459f8da897d13e3 100644 (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};
index 2df2d0680ac67cb1a969447bab11ddcebfb00053..b4a6b86799272b35ea16b798c9188a3c9dfcde57 100644 (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;
 
index 26f5a149af2e2eddca341248300dc995bc96035d..e1817313077af5e2ca3724fc3046e07ffc47f8bb 100644 (file)
     white-space: nowrap;
     transition: width 0.6s ease;
 
-    &.secondary {
-      background-color: pvar(--secondaryColor);
-    }
-
     &.red {
       background-color: lighten($color: #c54130, $amount: 10);
     }
index 884e7b5d0e14ae70d4463e87075008c77fa40c03..776e820be107956a4081121058fb3aca568dabb6 100644 (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),