App.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. #root {
  2. position: absolute;
  3. width: 100% !important;
  4. height: 100% !important;
  5. }
  6. .App {
  7. height: 100%;
  8. display: flex;
  9. flex-flow: column nowrap;
  10. justify-content: space-between;
  11. text-align: center;
  12. }
  13. .header {
  14. display: block;
  15. }
  16. .footer {
  17. display: block;
  18. }
  19. .click-to-copy {
  20. position: relative;
  21. display: inline-flex;
  22. justify-content: center;
  23. }
  24. .click-to-copy__text {
  25. border-bottom: 1px dashed black;
  26. }
  27. .click-to-copy__tooltip {
  28. background-color: black;
  29. color: white;
  30. text-align: center;
  31. padding: 2px 8px;
  32. border-radius: 8px;
  33. position: absolute;
  34. z-index: 1;
  35. top: -115%;
  36. white-space: nowrap;
  37. transition: opacity 0.25s;
  38. opacity: 0;
  39. }
  40. .click-to-copy__tooltip--visible {
  41. opacity: 0.75;
  42. }
  43. .click-to-copy__textarea {
  44. position: absolute;
  45. top: -1000px;
  46. }
  47. .btn {
  48. display: inline;
  49. }
  50. .inpt {
  51. display: inline;
  52. }
  53. .join-game-form {
  54. display: flex;
  55. flex-flow: column nowrap;
  56. justify-content: center;
  57. align-items: center;
  58. }
  59. .join-game-form__label {
  60. padding: 0.1em;
  61. }
  62. .join-game-form__input {
  63. margin: 0.1em;
  64. }
  65. .join-game-form__btn {
  66. margin: 0.1em;
  67. }
  68. .player-name-form {
  69. display: flex;
  70. flex-flow: column nowrap;
  71. justify-content: center;
  72. align-items: center;
  73. }
  74. .player-name-form__label {
  75. padding: 0.2em;
  76. }
  77. .player-name-form__input {
  78. padding: 0.1em;
  79. }
  80. .new-game {
  81. display: inline;
  82. }
  83. .new-game__btn {
  84. display: inline;
  85. }
  86. .pre-round {
  87. flex: 1;
  88. display: flex;
  89. flex-flow: column nowrap;
  90. justify-content: center;
  91. align-items: center;
  92. }
  93. .pre-round__name-label {
  94. padding: 0.2em;
  95. }
  96. .pre-round__game-code {
  97. padding: 0.2em;
  98. margin-bottom: 0.3em;
  99. }
  100. .pre-round__button {
  101. padding: 0.2em;
  102. margin: 0.2em;
  103. }
  104. .round-summary {
  105. flex: 1;
  106. display: flex;
  107. flex-flow: row nowrap;
  108. justify-content: space-around;
  109. align-items: center;
  110. }
  111. .round-summary__info-pane {
  112. display: flex;
  113. flex-flow: column nowrap;
  114. justify-content: center;
  115. align-items: flex-start;
  116. }
  117. .round-summary__map {
  118. display: inline;
  119. }
  120. .round-summary__guess {
  121. display: inline;
  122. }
  123. .round-summary__guess--timed-out {
  124. color: red;
  125. }
  126. .round-summary__target-point {
  127. display: inline;
  128. }
  129. .round-summary__round-score {
  130. display: inline;
  131. }
  132. .round-summary__total-score {
  133. display: inline;
  134. }
  135. .round-summary__button {
  136. display: inline;
  137. }
  138. .player-scores {
  139. display: flex;
  140. flex-flow: column nowrap;
  141. justify-content: space-around;
  142. align-items: center;
  143. }
  144. .player-scores__score-board {
  145. display: flex;
  146. flex-flow: row wrap;
  147. justify-content: space-around;
  148. align-items: center;
  149. align-content: space-around;
  150. }
  151. .player-scores__score-tile {
  152. flex: 1;
  153. display: flex;
  154. flex-flow: column nowrap;
  155. justify-content: flex-start;
  156. align-items: center;
  157. }
  158. .player-scores__player-name {
  159. display: inline;
  160. }
  161. .player-scores__total-score {
  162. display: inline;
  163. }
  164. .player-scores__round-score-list {
  165. display: flex;
  166. flex-flow: column nowrap;
  167. justify-content: center;
  168. align-items: flex-start;
  169. margin-bottom: 20%;
  170. }
  171. .player-scores__round-score {
  172. flex: 1;
  173. }
  174. .player-scores__button {
  175. display: inline;
  176. }
  177. .game-panel {
  178. height: 100%;
  179. display: flex;
  180. flex-flow: column nowrap;
  181. justify-content: space-between;
  182. align-items: center;
  183. }
  184. .game-panel__streetview {
  185. height: 100%;
  186. width: 100%;
  187. margin-bottom: 2px;
  188. flex: 3;
  189. }
  190. .guess-pane {
  191. height: 100%;
  192. width: 100%;
  193. flex: 1;
  194. display: flex;
  195. flex-flow: row nowrap;
  196. justify-content: space-around;
  197. }
  198. .guess-pane__timer {
  199. flex: 1;
  200. display: flex;
  201. justify-content: center;
  202. align-items: center;
  203. }
  204. .guess-pane__map {
  205. flex: 6;
  206. height: 100%;
  207. width: 100%;
  208. margin: 5px;
  209. }
  210. .guess-pane__submit {
  211. flex: 1;
  212. margin: 5px;
  213. }
  214. @media only screen and (min-width: 600px) {
  215. .game-panel {
  216. flex-flow: row nowrap;
  217. }
  218. .game-panel {
  219. margin-bottom: 0px;
  220. margin-right: 2px;
  221. }
  222. .guess-pane {
  223. flex-flow: column nowrap;
  224. }
  225. }
  226. .timer {
  227. display: inline;
  228. }
  229. .timer--timeout {
  230. color: red;
  231. }
  232. .map-div {
  233. height: 100%;
  234. }
  235. .streetview-pane {
  236. position: relative;
  237. height: 100%;
  238. }
  239. .streetview-pane__pano-div {
  240. height: 100%;
  241. }
  242. .streetview-pane__reset-button {
  243. /* TODO improve this to be less brittle */
  244. display: block;
  245. position: absolute;
  246. z-index: 1;
  247. bottom: 200px;
  248. right: 9px;
  249. background-color: #2a2a2a;
  250. color: #9a9a9a;
  251. padding: 5px;
  252. border-radius: 2px;
  253. font-weight: bold;
  254. cursor: pointer;
  255. }
  256. .streetview-pane__reset-button:hover {
  257. color: #bababa;
  258. }