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.

104 lines
2.2 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 {
  29. height: 40px;
  30. overflow: auto;
  31. white-space: nowrap; }
  32. #tally .gameTable {
  33. display: inline-block;
  34. padding-right: 13.5px; }
  35. #tally .gameTable:last-child {
  36. padding-right: 0px; }
  37. #tally .gameTable tr td {
  38. font-size: 0;
  39. line-height: 0;
  40. height: 8px;
  41. width: 8px;
  42. content: ""; }
  43. .gameTable tr td {
  44. font: normal normal bold 30px/30px 'Lato', sans-serif;
  45. border-bottom: 1px solid #333;
  46. border-right: 1px solid #333;
  47. height: 160px;
  48. width: 160px;
  49. text-align: center; }
  50. .gameTable tr td:last-child {
  51. border-right: none; }
  52. .gameTable tr td.dim {
  53. opacity: 0.3; }
  54. .gameTable tr td.dim.highlight {
  55. opacity: 1; }
  56. .gameTable tr td.highlight {
  57. opacity: 1; }
  58. .gameTable tr:last-child td {
  59. border-bottom: none; }
  60. .hide {
  61. display: none !important; }
  62. .tooltip {
  63. position: relative;
  64. display: inline-block; }
  65. .tooltip .tooltiptext {
  66. visibility: hidden;
  67. width: 140px;
  68. background-color: #555;
  69. color: #fff;
  70. text-align: center;
  71. border-radius: 6px;
  72. padding: 5px;
  73. position: absolute;
  74. z-index: 1;
  75. bottom: 150%;
  76. left: 50%;
  77. margin-left: -75px;
  78. opacity: 0;
  79. transition: opacity 0.3s; }
  80. .tooltip .tooltiptext::after {
  81. content: "";
  82. position: absolute;
  83. top: 100%;
  84. left: 50%;
  85. margin-left: -5px;
  86. border-width: 5px;
  87. border-style: solid;
  88. border-color: #555 transparent transparent transparent; }
  89. .tooltip:hover .tooltiptext {
  90. visibility: visible;
  91. opacity: 1; }