Golfier
frperalde 4 years ago
parent a295c44372
commit d213046247

@ -4,7 +4,7 @@
.anneau { .anneau {
position: relative; position: relative;
left: calc((var(--x) - var(--y)) / 2); left: calc((var(--x) - var(--y)) / 2);
background-color: var(--colorrond); background-color: var(--colorbase);
border-radius: var(--y); border-radius: var(--y);
height: var(--y); height: var(--y);
width: var(--y); width: var(--y);

@ -3,7 +3,11 @@
--lightprima: #DEDEDE; --lightprima: #DEDEDE;
--lightsedonca: #B7B7B7; --lightsedonca: #B7B7B7;
--lighttercia: #E6E6E6; --lighttercia: #E6E6E6;
--colorrond : #e75259; /*Couleur*/
--colorbase : #e75259;
--colorone : #00CBFF;
--colortwo : #00FF6E;
--colorthree : #C800FF;
--colorcarre : #30C0DE; --colorcarre : #30C0DE;
/*Les formes*/ /*Les formes*/
--x : 3vw; --x : 3vw;

@ -171,13 +171,13 @@ class Figure {
unCercle.className = "anneau"; unCercle.className = "anneau";
if (pos == 0 || pos == 2 || pos == 9 || pos == 11) { if (pos == 0 || pos == 2 || pos == 9 || pos == 11) {
unCercle.style.backgroundColor = "#00CBFF"; unCercle.style.backgroundColor = "var(--colorone)";
} }
if (pos == 1 || pos == 10) { if (pos == 1 || pos == 10) {
unCercle.style.backgroundColor = "#00FF6E"; unCercle.style.backgroundColor = "var(--colortwo)";
} }
if (pos == 4 || pos == 7) { if (pos == 4 || pos == 7) {
unCercle.style.backgroundColor = "#C800FF"; unCercle.style.backgroundColor = "var(--colorthree)";
} }
var unRond = document.createElement('div'); var unRond = document.createElement('div');

Loading…
Cancel
Save