A simple TicTacToe app with Golang backend and WebSockets gluing it all together.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.6 KiB

  1. @import url(https://fonts.googleapis.com/css?family=Lato);
  2. input#shareLink {
  3. font-family: monospace;
  4. cursor: pointer;
  5. width: 400px; }
  6. span#copySuccess {
  7. display: none;
  8. color: green;
  9. font-weight: bold; }
  10. span#copyError {
  11. display: none;
  12. color: red;
  13. font-weight: bold; }
  14. .link {
  15. color: blue; }
  16. #status {
  17. font: normal normal normal 16px/20px 'Lato', sans-serif;
  18. color: red; }
  19. #turn, #waiting {
  20. font: normal normal normal 16px/20px 'Lato', sans-serif; }
  21. #gameTable tr td {
  22. border-bottom: 1px solid #333;
  23. border-right: 1px solid #333;
  24. height: 160px;
  25. width: 160px;
  26. text-align: center; }
  27. #gameTable tr td:last-child {
  28. border-right: none; }
  29. #gameTable tr td.dim {
  30. opacity: 0.3; }
  31. #gameTable tr td.dim.highlight {
  32. opacity: 1; }
  33. #gameTable tr td.highlight {
  34. opacity: 1; }
  35. #gameTable tr:last-child td {
  36. border-bottom: none; }
  37. .hide {
  38. display: none; }
  39. .tooltip {
  40. position: relative;
  41. display: inline-block; }
  42. .tooltip .tooltiptext {
  43. visibility: hidden;
  44. width: 140px;
  45. background-color: #555;
  46. color: #fff;
  47. text-align: center;
  48. border-radius: 6px;
  49. padding: 5px;
  50. position: absolute;
  51. z-index: 1;
  52. bottom: 150%;
  53. left: 50%;
  54. margin-left: -75px;
  55. opacity: 0;
  56. transition: opacity 0.3s; }
  57. .tooltip .tooltiptext::after {
  58. content: "";
  59. position: absolute;
  60. top: 100%;
  61. left: 50%;
  62. margin-left: -5px;
  63. border-width: 5px;
  64. border-style: solid;
  65. border-color: #555 transparent transparent transparent; }
  66. .tooltip:hover .tooltiptext {
  67. visibility: visible;
  68. opacity: 1; }