From 66927c0588b050f23ad3f98d62b48307bc7e79e7 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 24 Jul 2020 11:26:22 +0200 Subject: modify user-quota to match account settings style --- .../app/+admin/users/user-list/user-list.component.scss | 2 +- .../shared/shared-main/users/user-quota.component.html | 15 ++++++++------- .../shared/shared-main/users/user-quota.component.scss | 13 ++++++------- client/src/sass/include/_mixins.scss | 6 ++++-- 4 files changed, 19 insertions(+), 17 deletions(-) (limited to 'client') diff --git a/client/src/app/+admin/users/user-list/user-list.component.scss b/client/src/app/+admin/users/user-list/user-list.component.scss index 59ad7da35..98fc4d027 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.scss +++ b/client/src/app/+admin/users/user-list/user-list.component.scss @@ -54,7 +54,7 @@ my-global-icon { } .progress { - @include progressbar; + @include progressbar($small: true); width: auto; max-width: 100%; } diff --git a/client/src/app/shared/shared-main/users/user-quota.component.html b/client/src/app/shared/shared-main/users/user-quota.component.html index f9fb32133..06981223a 100644 --- a/client/src/app/shared/shared-main/users/user-quota.component.html +++ b/client/src/app/shared/shared-main/users/user-quota.component.html @@ -1,21 +1,22 @@
- Total video quota +
- {{ userVideoQuotaUsed | bytes: 0 }}
- {{ userVideoQuota }} + [attr.aria-valuenow]="userVideoQuotaUsed" aria-valuemin="0" [attr.aria-valuemax]="user.videoQuota">
+ {{ userVideoQuotaUsed | bytes: 1 }} + {{ userVideoQuota }}
- Daily video quota +
- {{ userVideoQuotaUsedDaily | bytes: 0 }}
+ [attr.aria-valuenow]="userVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="user.videoQuotaDaily">
{{ userVideoQuotaDaily }} + {{ userVideoQuotaUsedDaily | bytes: 1 }} + {{ userVideoQuotaDaily }}
\ No newline at end of file diff --git a/client/src/app/shared/shared-main/users/user-quota.component.scss b/client/src/app/shared/shared-main/users/user-quota.component.scss index 904add0f4..c670559d3 100644 --- a/client/src/app/shared/shared-main/users/user-quota.component.scss +++ b/client/src/app/shared/shared-main/users/user-quota.component.scss @@ -1,10 +1,12 @@ @import '_variables'; @import '_mixins'; -.user-quota { - font-size: 15px; - margin-top: 20px; +label { + font-weight: $font-regular; + font-size: 100%; +} +.user-quota { label { margin-right: 5px; } @@ -13,12 +15,9 @@ width: 100% !important; } - .user-quota-title, .progress { + .progress { @include disable-outline; @include button-focus(pvar(--mainColorLightest)); - } - - .progress { @include progressbar; height: 2rem; diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 0fb54f121..ee2fe0497 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -683,7 +683,7 @@ } } -@mixin progressbar { +@mixin progressbar($small: false) { background-color: $grey-background-color; display: flex; height: 1rem; @@ -695,7 +695,9 @@ span { position: absolute; color: $grey-foreground-color; - top: -1px; + @if $small { + top: -1px; + } &:nth-of-type(1) { left: .2rem; -- cgit v1.2.3