diff --git a/static/js/index.js b/static/js/index.js index b3097ca..37a281c 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -13,6 +13,8 @@ window.addEventListener("load", () => { color: transparent; `; + const text_stroke = "-webkit-text-stroke: 0.2px var(--font-color);"; + const tags = [ new Tag("Comment ça marche un PC 😵‍💫"), new Tag("Idiot certifié"), @@ -25,6 +27,7 @@ window.addEventListener("load", () => { ` background: linear-gradient(to bottom right, red 0%, red 50%, black 50%); ${clipping_text} + ${text_stroke} ` ), new Tag("Nul en CSS", "font-family: 'Comic Sans MS', cursive"), @@ -43,7 +46,7 @@ window.addEventListener("load", () => { background: conic-gradient(at 30% 60%, transparent 230deg, red 0, red 310deg, transparent 0), linear-gradient(to bottom, black 45%, white 45%, white 67%, DarkGreen 67%); ${clipping_text} - -webkit-text-stroke: 0.2px var(--font-color); + ${text_stroke} ` ), ];