GamePanel.module.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. .page {
  2. height: 100%;
  3. width: 100%;
  4. display: flex;
  5. flex-flow: column nowrap;
  6. justify-content: space-between;
  7. align-items: center;
  8. }
  9. .streetview {
  10. height: 100%;
  11. width: 100%;
  12. margin-bottom: 2px;
  13. flex: 3;
  14. position: relative;
  15. }
  16. .fullsize {
  17. height: 100%;
  18. width: 100%;
  19. }
  20. .resetButton {
  21. /* TODO improve this to be less brittle */
  22. display: block;
  23. position: absolute;
  24. z-index: 1;
  25. bottom: 200px;
  26. right: 9px;
  27. background-color: #222;
  28. color: #666;
  29. padding: 5px;
  30. border-radius: 2px;
  31. font-weight: bold;
  32. cursor: pointer;
  33. }
  34. .resetButton:hover {
  35. color: #b1b1b1;
  36. }
  37. .guess {
  38. height: 100%;
  39. width: 100%;
  40. flex: 1;
  41. display: flex;
  42. flex-flow: row nowrap;
  43. justify-content: space-around;
  44. }
  45. .map {
  46. flex: 3;
  47. height: 100%;
  48. width: 100%;
  49. }
  50. .submit {
  51. flex: 1;
  52. display: flex;
  53. flex-flow: column nowrap;
  54. justify-content: center;
  55. text-align: center;
  56. }
  57. .submitButton {
  58. flex: 1;
  59. margin: 2px;
  60. }
  61. .timer {
  62. padding: 1px;
  63. display: inline;
  64. }
  65. .timer--timeout {
  66. color: red;
  67. }
  68. @media only screen and (min-width: 600px) and (min-height: 600px) {
  69. .page {
  70. display: block;
  71. position: relative;
  72. margin-bottom: 2px;
  73. margin-right: 2px;
  74. }
  75. .guess {
  76. position: absolute;
  77. left: 10px;
  78. bottom: 10px;
  79. height: 200px;
  80. width: 200px;
  81. flex-flow: column-reverse nowrap;
  82. z-index: 1;
  83. opacity: .75;
  84. transition: 1s;
  85. }
  86. .guess:hover {
  87. height: 400px;
  88. width: 400px;
  89. opacity: 1;
  90. transition: 0.5s;
  91. }
  92. .map {
  93. opacity: .75;
  94. transition: 1s;
  95. }
  96. .map:hover {
  97. opacity: 1;
  98. }
  99. .submit {
  100. flex-flow: column-reverse nowrap;
  101. margin-top: 4px;
  102. color: #fff;
  103. }
  104. .submit>* {
  105. background-color: #333;
  106. }
  107. .submitButton {
  108. margin: 0px;
  109. margin-bottom: 5px;
  110. }
  111. .guess .submitButton {
  112. visibility: hidden;
  113. opacity: 0;
  114. transition: 1s;
  115. }
  116. .guess:hover .submitButton {
  117. visibility: visible;
  118. opacity: 1;
  119. transition: 0.5s;
  120. }
  121. }