From 702db5e5f588ad9b7bc79890d603f2aed4c03a32 Mon Sep 17 00:00:00 2001 From: gugahnstn Date: Mon, 2 Oct 2023 16:13:41 -0300 Subject: [PATCH] style: adding ::after --- src/components/CardResult/style.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/CardResult/style.ts b/src/components/CardResult/style.ts index b9a6aa8..b939402 100644 --- a/src/components/CardResult/style.ts +++ b/src/components/CardResult/style.ts @@ -47,5 +47,10 @@ export const CardPhrase = styled.p` color: ${theme.colors.result}; text-align: center; font-weight: 700; + + ::after { + content: attr(data-text); + font-size: calc(${theme.font.sizes.text_lg} - 0.1rem * (attr(data-text) - 10)); + } `} `;