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.

93 lines
2.0 KiB

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