2019-11-10 19:42:26 +01:00
|
|
|
.asset-size {
|
2019-11-25 11:15:10 +01:00
|
|
|
position: relative;
|
|
|
|
flex: 1;
|
2019-11-14 22:01:33 +01:00
|
|
|
margin-bottom: #{18 / $base-font-size}rem;
|
2019-11-25 11:15:10 +01:00
|
|
|
font-size: #{14 / $base-font-size}rem;
|
2019-11-10 19:42:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.asset-size-bar {
|
|
|
|
position: relative;
|
|
|
|
content: ' ';
|
|
|
|
display: block;
|
|
|
|
width: 200px;
|
|
|
|
height: 20px;
|
|
|
|
|
2019-11-25 11:15:10 +01:00
|
|
|
border-radius: #{3 / $base-font-size}rem;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
overflow: hidden;
|
|
|
|
|
2019-11-10 19:42:26 +01:00
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('progress-bar-background-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.asset-size-bar::before {
|
|
|
|
content: ' ';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2019-11-25 11:15:10 +01:00
|
|
|
width: calc(var(--percent) * 100%);
|
2019-11-10 19:42:26 +01:00
|
|
|
|
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('progress-bar-active-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.asset-current {
|
|
|
|
position: absolute;
|
|
|
|
top: 28px;
|
2019-11-25 11:15:10 +01:00
|
|
|
left: calc(200px * var(--percent));
|
2019-11-10 19:42:26 +01:00
|
|
|
margin-left: -8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.asset-max {
|
|
|
|
position: absolute;
|
2019-11-25 11:15:10 +01:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
transform: translate(210%); // align max label to right of asset-size-bar
|
2019-11-10 19:42:26 +01:00
|
|
|
padding-left: #{8 / $base-font-size}rem;
|
|
|
|
}
|