diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-13 20:38:50 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-13 20:38:50 +0100 |
commit | e61151b01c80e525db068ff12fcfe2c8ae04e1a4 (patch) | |
tree | 000244ef543eee9608afb1646561c8287bb7e9ef /client/src/sass/include | |
parent | c4741804bceac6f5f3ea06f9041c5b4fde7a3d7d (diff) | |
download | PeerTube-e61151b01c80e525db068ff12fcfe2c8ae04e1a4.tar.gz PeerTube-e61151b01c80e525db068ff12fcfe2c8ae04e1a4.tar.zst PeerTube-e61151b01c80e525db068ff12fcfe2c8ae04e1a4.zip |
Replace p-progressbar and bootstrap progressbar with pure CSS alt
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_bootstrap.scss | 2 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 29 |
2 files changed, 28 insertions, 3 deletions
diff --git a/client/src/sass/include/_bootstrap.scss b/client/src/sass/include/_bootstrap.scss index 61bb4739d..b1a23be6b 100644 --- a/client/src/sass/include/_bootstrap.scss +++ b/client/src/sass/include/_bootstrap.scss | |||
@@ -26,7 +26,7 @@ | |||
26 | @import '~bootstrap/scss/badge'; | 26 | @import '~bootstrap/scss/badge'; |
27 | //@import '~bootstrap/scss/jumbotron'; | 27 | //@import '~bootstrap/scss/jumbotron'; |
28 | @import '~bootstrap/scss/alert'; | 28 | @import '~bootstrap/scss/alert'; |
29 | @import '~bootstrap/scss/progress'; | 29 | //@import '~bootstrap/scss/progress'; |
30 | //@import '~bootstrap/scss/media'; | 30 | //@import '~bootstrap/scss/media'; |
31 | //@import '~bootstrap/scss/list-group'; | 31 | //@import '~bootstrap/scss/list-group'; |
32 | @import '~bootstrap/scss/close'; | 32 | @import '~bootstrap/scss/close'; |
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 5163ea056..e8dfb79bc 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -225,6 +225,7 @@ | |||
225 | overflow: hidden; | 225 | overflow: hidden; |
226 | display: inline-block; | 226 | display: inline-block; |
227 | width: $width; | 227 | width: $width; |
228 | min-height: 30px; | ||
228 | 229 | ||
229 | @include peertube-button; | 230 | @include peertube-button; |
230 | @include orange-button; | 231 | @include orange-button; |
@@ -233,8 +234,8 @@ | |||
233 | position: absolute; | 234 | position: absolute; |
234 | top: 0; | 235 | top: 0; |
235 | right: 0; | 236 | right: 0; |
236 | min-width: 100%; | 237 | width: 100%; |
237 | min-height: 100%; | 238 | height: 100%; |
238 | font-size: 100px; | 239 | font-size: 100px; |
239 | text-align: right; | 240 | text-align: right; |
240 | filter: alpha(opacity=0); | 241 | filter: alpha(opacity=0); |
@@ -596,3 +597,27 @@ | |||
596 | top: -2px; | 597 | top: -2px; |
597 | } | 598 | } |
598 | } | 599 | } |
600 | |||
601 | @mixin progressbar { | ||
602 | background-color: $grey-background-color; | ||
603 | display: flex; | ||
604 | height: 1rem; | ||
605 | overflow: hidden; | ||
606 | font-size: 0.75rem; | ||
607 | border-radius: 0.25rem; | ||
608 | |||
609 | .progress-bar { | ||
610 | color: var(--mainBackgroundColor); | ||
611 | background-color: var(--mainColor); | ||
612 | display: flex; | ||
613 | flex-direction: column; | ||
614 | justify-content: center; | ||
615 | text-align: center; | ||
616 | white-space: nowrap; | ||
617 | transition: width 0.6s ease; | ||
618 | |||
619 | &.secondary { | ||
620 | background-color: var(--secondaryColor); | ||
621 | } | ||
622 | } | ||
623 | } | ||