index-main/assets/css/components/_gauge.scss
2025-11-04 08:33:44 +01:00

51 lines
952 B
SCSS

.gauge__container{
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
#gauge{
width: 100%;
margin-bottom: calc(var(--spacing)*0.25);
height: calc(var(--h-block)*0.5);
border-radius: calc(var(--h-block)*0.25);
background-color: var(--grey-400);
position: relative;
overflow: hidden;
&::before{
content: '';
display: block;
height: calc(var(--h-block)*0.5);
border-radius: calc(var(--h-block)*0.25);
width: 0%;
background-color: var(--color-txt);
position: absolute;
top: 0;
left: 0;
animation: fillGauge 1s ease forwards;
}
}
@keyframes fillGauge {
from {
width: 0%;
}
to {
width: var(--pourcent);
}
}
.gauge--infos{
.property{
font-size: var(--fs-small);
padding-bottom: 3px;
}
&:last-of-type{
text-align: right;
}
}