2022-02-03 17:08:53 +01:00
|
|
|
@import "~theme/globals";
|
|
|
|
|
2020-11-18 11:07:56 +01:00
|
|
|
:host {
|
|
|
|
display: flex;
|
2021-05-07 10:31:06 +02:00
|
|
|
width: 100%;
|
2020-11-18 11:07:56 +01:00
|
|
|
|
2021-06-03 14:46:36 +02:00
|
|
|
--line-height: 40px;
|
|
|
|
--bar-margin: 16px 0;
|
2022-02-03 17:08:53 +01:00
|
|
|
--height: var(--core-progressbar-height);
|
|
|
|
|
|
|
|
--text-color: var(--core-progressbar-text-color);
|
|
|
|
--progressbar-color: var(--core-progressbar-color);
|
|
|
|
--progressbar-background: var(--core-progressbar-background);
|
|
|
|
|
|
|
|
@each $color-name, $unused in $colors {
|
|
|
|
&.ion-color-#{$color-name} {
|
|
|
|
--progressbar-color: var(--#{$color-name});
|
|
|
|
--progressbar-background: var(--#{$color-name}-tint);
|
|
|
|
}
|
|
|
|
}
|
2021-06-03 14:46:36 +02:00
|
|
|
|
2020-11-18 11:07:56 +01:00
|
|
|
.core-progress-text {
|
2021-06-03 14:46:36 +02:00
|
|
|
line-height: var(--line-height);
|
2022-02-03 17:08:53 +01:00
|
|
|
font-size: 0.9rem;
|
2020-11-18 11:07:56 +01:00
|
|
|
color: var(--text-color);
|
|
|
|
width: 55px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
progress {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
height: var(--height);
|
2021-06-03 14:46:36 +02:00
|
|
|
margin: var(--bar-margin);
|
2020-11-18 11:07:56 +01:00
|
|
|
padding: 0;
|
|
|
|
display: block;
|
2021-05-07 10:31:06 +02:00
|
|
|
width: 100%;
|
|
|
|
flex: 1;
|
2020-11-18 11:07:56 +01:00
|
|
|
|
|
|
|
&[value]::-webkit-progress-bar {
|
2022-02-03 17:08:53 +01:00
|
|
|
background-color: var(--progressbar-background);
|
|
|
|
border-radius: var(--height);
|
2020-11-18 11:07:56 +01:00
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[value]::-webkit-progress-value {
|
2022-02-03 17:08:53 +01:00
|
|
|
background-color: var(--progressbar-color);
|
|
|
|
border-radius: var(--height);
|
2020-11-18 11:07:56 +01:00
|
|
|
}
|
|
|
|
}
|
2021-12-23 16:02:42 +01:00
|
|
|
|
|
|
|
ion-progress-bar {
|
2022-02-03 17:08:53 +01:00
|
|
|
--progress-background: var(--progressbar-color);
|
|
|
|
--buffer-background: var(--progressbar-background);
|
|
|
|
border-radius: var(--height);
|
2021-12-23 16:02:42 +01:00
|
|
|
height: var(--height);
|
|
|
|
margin-top: calc((var(--line-height) - var(--height)) /2);
|
|
|
|
margin-bottom: calc((var(--line-height) - var(--height)) /2);
|
2022-02-03 17:08:53 +01:00
|
|
|
|
|
|
|
&::part(progress) {
|
|
|
|
border-radius: var(--height);
|
|
|
|
}
|
2021-12-23 16:02:42 +01:00
|
|
|
}
|
2020-11-18 11:07:56 +01:00
|
|
|
}
|