123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- #root {
- position: absolute;
- width: 100% !important;
- height: 100% !important;
- }
- .App {
- height: 100%;
- display: flex;
- flex-flow: column nowrap;
- justify-content: space-between;
- text-align: center;
- }
- .header {
- display: block;
- }
- .footer {
- display: block;
- }
- .click-to-copy {
- position: relative;
- display: inline-flex;
- justify-content: center;
- }
- .click-to-copy__text {
- border-bottom: 1px dashed black;
- }
- .click-to-copy__tooltip {
- background-color: black;
- color: white;
- text-align: center;
- padding: 2px 8px;
- border-radius: 8px;
- position: absolute;
- z-index: 1;
- top: -115%;
- white-space: nowrap;
- transition: opacity 0.25s;
- opacity: 0;
- }
- .click-to-copy__tooltip--visible {
- opacity: 0.75;
- }
- .click-to-copy__textarea {
- position: absolute;
- top: -1000px;
- }
- .btn {
- display: inline;
- }
- .inpt {
- display: inline;
- }
- .join-game-form {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: center;
- }
- .join-game-form__label {
- padding: 0.1em;
- }
- .join-game-form__input {
- margin: 0.1em;
- }
- .join-game-form__btn {
- margin: 0.1em;
- }
- .player-name-form {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: center;
- }
- .player-name-form__label {
- padding: 0.2em;
- }
- .player-name-form__input {
- padding: 0.1em;
- }
- .new-game {
- display: inline;
- }
- .new-game__btn {
- display: inline;
- }
- .pre-round {
- flex: 1;
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: center;
- }
- .pre-round__name-label {
- padding: 0.2em;
- }
- .pre-round__game-code {
- padding: 0.2em;
- margin-bottom: 0.3em;
- }
- .pre-round__button {
- padding: 0.2em;
- margin: 0.2em;
- }
- .round-summary {
- flex: 1;
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-around;
- align-items: center;
- }
- .round-summary__info-pane {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: flex-start;
- }
- .round-summary__map {
- display: inline;
- }
- .round-summary__guess {
- display: inline;
- }
- .round-summary__guess--timed-out {
- color: red;
- }
- .round-summary__target-point {
- display: inline;
- }
- .round-summary__round-score {
- display: inline;
- }
- .round-summary__total-score {
- display: inline;
- }
- .round-summary__button {
- display: inline;
- }
- .player-scores {
- display: flex;
- flex-flow: column nowrap;
- justify-content: space-around;
- align-items: center;
- }
- .player-scores__score-board {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-around;
- align-items: center;
- align-content: space-around;
- }
- .player-scores__score-tile {
- flex: 1;
- display: flex;
- flex-flow: column nowrap;
- justify-content: flex-start;
- align-items: center;
- }
- .player-scores__player-name {
- display: inline;
- }
- .player-scores__total-score {
- display: inline;
- }
- .player-scores__round-score-list {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: flex-start;
- margin-bottom: 20%;
- }
- .player-scores__round-score {
- flex: 1;
- }
- .player-scores__button {
- display: inline;
- }
- .game-panel {
- height: 100%;
- display: flex;
- flex-flow: column nowrap;
- justify-content: space-between;
- align-items: center;
- }
- .game-panel__streetview {
- height: 100%;
- width: 100%;
- margin-bottom: 2px;
- flex: 3;
- }
- .guess-pane {
- height: 100%;
- width: 100%;
- flex: 1;
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-around;
- }
- .guess-pane__timer {
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .guess-pane__map {
- flex: 6;
- height: 100%;
- width: 100%;
- margin: 5px;
- }
- .guess-pane__submit {
- flex: 1;
- margin: 5px;
- }
- @media only screen and (min-width: 600px) {
- .game-panel {
- flex-flow: row nowrap;
- }
- .game-panel {
- margin-bottom: 0px;
- margin-right: 2px;
- }
- .guess-pane {
- flex-flow: column nowrap;
- }
- }
- .timer {
- display: inline;
- }
- .timer--timeout {
- color: red;
- }
- .map-div {
- height: 100%;
- }
- .streetview-pane {
- position: relative;
- height: 100%;
- }
- .streetview-pane__pano-div {
- height: 100%;
- }
- .streetview-pane__reset-button {
- /* TODO improve this to be less brittle */
- display: block;
- position: absolute;
- z-index: 1;
- bottom: 200px;
- right: 9px;
- background-color: #2a2a2a;
- color: #9a9a9a;
- padding: 5px;
- border-radius: 2px;
- font-weight: bold;
- cursor: pointer;
- }
- .streetview-pane__reset-button:hover {
- color: #bababa;
- }
|