Created
September 18, 2019 20:52
-
-
Save rikas/765e0ea5729e3a6cc4ab9fd0e4a98ca4 to your computer and use it in GitHub Desktop.
React counter styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.counter { | |
padding: 50px; | |
width: 200px; | |
margin: auto; | |
display: flex; | |
align-items: center; | |
} | |
.counter button { | |
font-size: 2em; | |
} | |
.count { | |
font-size: 40px; | |
text-align: center; | |
flex-grow: 1; | |
font-weight: bold; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or the scss version: