App.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. }
  12. .header {
  13. display: block;
  14. text-align: center;
  15. }
  16. .footer {
  17. display: block;
  18. text-align: center;
  19. }
  20. .loading {
  21. text-align: center;
  22. }
  23. .click-to-copy {
  24. position: relative;
  25. display: inline-flex;
  26. justify-content: center;
  27. }
  28. .click-to-copy__text {
  29. border-bottom: 1px dashed black;
  30. }
  31. .click-to-copy__tooltip {
  32. background-color: black;
  33. color: white;
  34. text-align: center;
  35. padding: 2px 8px;
  36. border-radius: 8px;
  37. position: absolute;
  38. z-index: 1;
  39. top: -115%;
  40. white-space: nowrap;
  41. transition: opacity 0.25s;
  42. opacity: 0;
  43. }
  44. .click-to-copy__tooltip--visible {
  45. opacity: 0.75;
  46. }
  47. .click-to-copy__textarea {
  48. position: absolute;
  49. top: -1000px;
  50. }
  51. .btn {
  52. border-radius: 0px;
  53. border: none;
  54. padding: 8px;
  55. background: #333;
  56. color: #fff;
  57. cursor: pointer;
  58. }
  59. .btn:disabled {
  60. color: #777;
  61. cursor: default;
  62. }
  63. .inpt {
  64. border-radius: 0px;
  65. border: black solid 1px;
  66. }
  67. .join-game-form {
  68. display: flex;
  69. flex-flow: column nowrap;
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. .join-game-form__label {
  74. padding: 0.1em;
  75. }
  76. .join-game-form__input {
  77. padding: 0.5em;
  78. }
  79. .join-game-form__btn {
  80. margin: 0.1em;
  81. }
  82. .player-name-form {
  83. display: flex;
  84. flex-flow: column nowrap;
  85. justify-content: center;
  86. align-items: center;
  87. }
  88. .player-name-form__label {
  89. padding: 0.2em;
  90. }
  91. .player-name-form__input {
  92. padding: 0.5em;
  93. }
  94. .new-game__btn {
  95. display: inline;
  96. }
  97. .pre-game {
  98. display: flex;
  99. flex-flow: column nowrap;
  100. justify-content: space-around;
  101. align-items: center;
  102. }
  103. .pre-game__divider {
  104. margin-left: 0;
  105. margin-right: 0;
  106. align-self: stretch;
  107. }
  108. @media only screen and (min-width: 600px) {
  109. .pre-game {
  110. flex-flow: row nowrap;
  111. justify-content: space-around;
  112. /* align-items: stretch; */
  113. }
  114. .pre-game__divider {
  115. margin-left: 0;
  116. margin-right: 0;
  117. align-self: stretch;
  118. }
  119. }
  120. .pre-round {
  121. flex: 1;
  122. display: flex;
  123. flex-flow: column nowrap;
  124. justify-content: center;
  125. align-items: center;
  126. }
  127. .pre-round__name-label {
  128. padding: 0.2em;
  129. }
  130. .pre-round__game-code {
  131. padding: 0.2em;
  132. margin-bottom: 0.3em;
  133. }
  134. .pre-round__button {
  135. padding: 0.2em;
  136. margin: 0.2em;
  137. }
  138. .round-summary {
  139. flex: 1;
  140. display: flex;
  141. flex-flow: row nowrap;
  142. justify-content: space-around;
  143. align-items: center;
  144. }
  145. .round-summary__info-pane {
  146. display: flex;
  147. flex-flow: column nowrap;
  148. justify-content: center;
  149. align-items: flex-start;
  150. }
  151. .round-summary__map {
  152. display: inline;
  153. }
  154. .round-summary__guess {
  155. display: inline;
  156. }
  157. .round-summary__guess--timed-out {
  158. color: red;
  159. }
  160. .round-summary__target-point {
  161. display: inline;
  162. }
  163. .round-summary__round-score {
  164. display: inline;
  165. }
  166. .round-summary__total-score {
  167. display: inline;
  168. }
  169. .round-summary__button {
  170. display: inline;
  171. }
  172. .player-scores {
  173. display: flex;
  174. flex-flow: column nowrap;
  175. justify-content: space-around;
  176. align-items: center;
  177. }
  178. .player-scores__score-board {
  179. display: flex;
  180. flex-flow: row wrap;
  181. justify-content: space-around;
  182. align-items: center;
  183. align-content: space-around;
  184. }
  185. .player-scores__score-tile {
  186. flex: 1;
  187. display: flex;
  188. flex-flow: column nowrap;
  189. justify-content: flex-start;
  190. align-items: center;
  191. }
  192. .player-scores__player-name {
  193. display: inline;
  194. }
  195. .player-scores__total-score {
  196. display: inline;
  197. }
  198. .player-scores__round-score-list {
  199. display: flex;
  200. flex-flow: column nowrap;
  201. justify-content: center;
  202. align-items: flex-start;
  203. margin-bottom: 20%;
  204. }
  205. .player-scores__round-score {
  206. flex: 1;
  207. }
  208. .player-scores__button {
  209. display: inline;
  210. }
  211. .game-panel {
  212. height: 100%;
  213. width: 100%;
  214. display: flex;
  215. flex-flow: column nowrap;
  216. justify-content: space-between;
  217. align-items: center;
  218. }
  219. .game-panel__streetview {
  220. height: 100%;
  221. width: 100%;
  222. margin-bottom: 2px;
  223. flex: 3;
  224. }
  225. .game-panel__spacer {
  226. width: 100%;
  227. margin-top: -2px;
  228. height: 2px;
  229. background-color: black;
  230. }
  231. .guess-pane {
  232. height: 100%;
  233. width: 100%;
  234. flex: 1;
  235. display: flex;
  236. flex-flow: row nowrap;
  237. justify-content: space-around;
  238. }
  239. .guess-pane__map {
  240. flex: 3;
  241. height: 100%;
  242. width: 100%;
  243. }
  244. .guess-pane__timer-submit-wrapper {
  245. flex: 1;
  246. display: flex;
  247. flex-flow: column nowrap;
  248. justify-content: center;
  249. text-align: center;
  250. }
  251. .guess-pane__submit {
  252. flex: 1;
  253. margin: 2px;
  254. }
  255. @media only screen and (min-width: 600px) {
  256. .game-panel {
  257. display: block;
  258. position: relative;
  259. flex-flow: row nowrap;
  260. }
  261. .game-panel {
  262. margin-bottom: 0px;
  263. margin-right: 2px;
  264. }
  265. .guess-pane {
  266. position: absolute;
  267. left: 10px;
  268. bottom: 30px;
  269. height: 200px;
  270. width: 200px;
  271. flex-flow: column nowrap;
  272. z-index: 1;
  273. opacity: .5;
  274. transition: 1s;
  275. }
  276. .guess-pane:hover {
  277. height: 400px;
  278. width: 400px;
  279. opacity: 1;
  280. transition: 0.5s;
  281. }
  282. .game-panel__spacer {
  283. height: 0px;
  284. width: 0px;
  285. }
  286. .guess-pane__timer-submit-wrapper {
  287. margin-top: 4px;
  288. color: #fff;
  289. }
  290. .guess-pane__submit {
  291. margin: 5px;
  292. }
  293. }
  294. .timer {
  295. display: inline;
  296. }
  297. .timer__time {
  298. display: inline-block;
  299. }
  300. .timer--timeout {
  301. color: red;
  302. }
  303. .map-div {
  304. height: 100%;
  305. width: 100%;
  306. }
  307. .streetview-pane {
  308. position: relative;
  309. height: 100%;
  310. width: 100%;
  311. }
  312. .streetview-pane__pano-div {
  313. height: 100%;
  314. width: 100%
  315. }
  316. .streetview-pane__reset-button {
  317. /* TODO improve this to be less brittle */
  318. display: block;
  319. position: absolute;
  320. z-index: 1;
  321. bottom: 200px;
  322. right: 9px;
  323. background-color: #222;
  324. color: #666;
  325. padding: 5px;
  326. border-radius: 2px;
  327. font-weight: bold;
  328. cursor: pointer;
  329. }
  330. .streetview-pane__reset-button:hover {
  331. color: #b1b1b1;
  332. }