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.

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