Last active
January 15, 2019 04:58
-
-
Save markgarrigan/3740ee8469c139441b12bdfe65cc30b0 to your computer and use it in GitHub Desktop.
The square component for riot tic tac toe.
This file contains hidden or 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
<square> | |
<button onclick={opts.click}>{opts.val}</button> | |
<style> | |
:scope { | |
display: block; | |
background: #fff; | |
border: 1px solid #999; | |
float: left; | |
height: 34px; | |
margin-right: -1px; | |
margin-top: -1px; | |
width: 34px; | |
} | |
button { | |
display: block; | |
background-color: transparent; | |
border: 0; | |
font-size: 24px; | |
font-weight: bold; | |
line-height: 34px; | |
text-align: center; | |
padding: 0; | |
margin: 0; | |
width: 100%; | |
height: 34px; | |
} | |
button:focus { | |
outline: none; | |
} | |
</style> | |
</square> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment