Skip to content

Commit

Permalink
style: adding ::after
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugahnstn committed Oct 2, 2023
1 parent b76cba4 commit 702db5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/CardResult/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
`}
`;

0 comments on commit 702db5e

Please sign in to comment.