add progression system
This commit is contained in:
parent
6c26735680
commit
d3d1672b2f
3 changed files with 53 additions and 4 deletions
41
css/home.css
41
css/home.css
|
|
@ -15,4 +15,43 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Barre de progression */
|
||||
|
||||
.progression {
|
||||
animation: 3s loadbar;
|
||||
width:auto;
|
||||
background-color: white;
|
||||
display: inline-block;
|
||||
padding: 0.7em 0.5em 0.5em 0.5em;
|
||||
}
|
||||
|
||||
@keyframes loadbar {
|
||||
0% { width:0%; }
|
||||
}
|
||||
|
||||
.bar {
|
||||
width : 50%;
|
||||
margin : auto;
|
||||
border : 2px solid white;
|
||||
display: inline-block;
|
||||
}
|
||||
.progression > span {
|
||||
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
font-family: MonTrappist;
|
||||
font-size : 1.5em;
|
||||
}
|
||||
|
||||
.lessthanhalf span {
|
||||
padding-left: 100%;
|
||||
color: white;
|
||||
padding-left: calc(100% + 1em);
|
||||
}
|
||||
|
||||
.morethanhalf {
|
||||
text-align : end;
|
||||
color:black;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue