Skip to content

Instantly share code, notes, and snippets.

@mateuszsokola
Last active December 12, 2023 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateuszsokola/77b0903d8ae35a5e7249a42261585fb1 to your computer and use it in GitHub Desktop.
Save mateuszsokola/77b0903d8ae35a5e7249a42261585fb1 to your computer and use it in GitHub Desktop.
2048-in-react
.score {
width: var(--pixel-size) * 75;
background: var(--secondary-background);
border: var(--pixel-size) solid var(--secodary-background);
border-radius: calc(var(--pixel-size) * 0.75);
color: var(--tile-background);
font-weight: bold;
font-size: calc(var(--pixel-size) * 2);
text-align: center;
text-transform: uppercase;
}
.score > div {
font-size: calc(var(--pixel-size) * 3.5);
color: var(--primary-background);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment