pacman.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. * {
  2. box-sizing: border-box;
  3. margin: 0;
  4. padding: 0;
  5. }
  6. body {
  7. font-family: 'Roboto', serif;
  8. }
  9. #pacman {
  10. display: flex;
  11. width: 730px;
  12. margin: 3em auto;
  13. }
  14. #my-canvas {
  15. width: 482px;
  16. height: 528px;
  17. }
  18. #info {
  19. display: flex;
  20. flex-direction: column;
  21. justify-content: space-between;
  22. height: 528px;
  23. width: 250px;
  24. }
  25. #info > #logo {
  26. border: 1px solid #B0B0B0;
  27. display: flex;
  28. align-items: center;
  29. justify-content: center;
  30. }
  31. #info > #scare-envelope {
  32. border: 1px solid #B0B0B0;
  33. border-radius: 2px;
  34. }
  35. #info > #bonus-envelope {
  36. border: 1px solid #B0B0B0;
  37. border-radius: 2px;
  38. }
  39. #info > #highscore-envelope {
  40. border: 1px solid #B0B0B0;
  41. border-radius: 2px;
  42. display: flex;
  43. align-items: center;
  44. font-weight: bold;
  45. }
  46. #info > #score-envelope {
  47. border: 1px solid #B0B0B0;
  48. border-radius: 2px;
  49. display: flex;
  50. align-items: center;
  51. font-weight: bold;
  52. }
  53. #info > #lives-envelope {
  54. border: 1px solid #B0B0B0;
  55. border-radius: 2px;
  56. display: flex;
  57. align-items: center;
  58. font-weight: bold;
  59. }
  60. #info > #status-envelope {
  61. border: 1px solid #B0B0B0;
  62. border-radius: 2px;
  63. display: flex;
  64. align-items: center;
  65. font-weight: bold;
  66. }
  67. #info > #ghosts-envelope {
  68. border: 1px solid #B0B0B0;
  69. border-radius: 2px;
  70. display: flex;
  71. align-items: center;
  72. font-weight: bold;
  73. }
  74. #info > #bonus-envelope {
  75. border: 1px solid #B0B0B0;
  76. border-radius: 2px;
  77. display: flex;
  78. align-items: center;
  79. font-weight: bold;
  80. }
  81. #info > #controls-envelope {
  82. border: 1px solid #B0B0B0;
  83. border-radius: 2px;
  84. padding: 0.5em 0;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: center;
  88. font-weight: bold;
  89. }
  90. #info > #sound-envelope {
  91. display: flex;
  92. align-items: center;
  93. border: 1px solid #B0B0B0;
  94. border-radius: 2px;
  95. font-weight: bold
  96. }
  97. .progress-inner {
  98. height: 15px;
  99. margin: 2px;
  100. }
  101. .button {
  102. margin: 0.4em;
  103. padding: 0.7em;
  104. text-align: center;
  105. cursor: pointer;
  106. outline: none;
  107. color: #fff;
  108. min-width: 100px;
  109. font-weight: bold;
  110. border: none;
  111. border-radius: 15px;
  112. box-shadow: 1px 2px #aaa;
  113. }
  114. #control-up {
  115. background-color: #537fe4;
  116. }
  117. #control-up:hover {
  118. background-color: #275edd;
  119. }
  120. #control-left {
  121. background-color: #0EA7E1;
  122. }
  123. #control-left:hover {
  124. background-color: #0b85b1;
  125. }
  126. #control-right {
  127. background-color: rgb(206, 123, 155);
  128. }
  129. #control-right:hover {
  130. background-color: #c15780;
  131. }
  132. #control-down {
  133. background-color: #d2c537;
  134. }
  135. #control-down:hover {
  136. background-color: #afa328;
  137. }
  138. #control-pause {
  139. background-color: rgb(215, 77, 77);
  140. }
  141. #control-pause:hover {
  142. background-color: #c32c2c;
  143. }
  144. .button:active {
  145. box-shadow: 0 3px #888;
  146. transform: translateY(2px);
  147. }
  148. #controls > .one-btn {
  149. display: flex;
  150. justify-content: center;
  151. }
  152. #controls > .two-btn {
  153. display: flex;
  154. justify-content: space-between;
  155. }
  156. .label {
  157. text-transform: uppercase;
  158. margin-right: 0.5em;
  159. padding-left: 0.5em;
  160. }
  161. .img {
  162. margin-bottom: -5px;
  163. }
  164. .source {
  165. width: 730px;
  166. margin: -45px auto;
  167. font-size: 0.9em;
  168. }
  169. .source-inner {
  170. display: flex;
  171. justify-content: space-between;
  172. align-items: center;
  173. width: 482px;
  174. }
  175. #btn-reset{
  176. background: #275edd;
  177. color: #fff;
  178. font-weight: bold;
  179. border: 0;
  180. padding: 10px 0;
  181. width: 130px;
  182. border-radius: 5px;
  183. text-transform: uppercase;
  184. font-size: 14px;
  185. cursor: pointer;
  186. outline: none;
  187. }
  188. #btn-reset:hover {
  189. background-color: #1e4fc2;
  190. }
  191. #btn-reset:active {
  192. background-color: #1e4fc2;
  193. transform: translateY(2px);
  194. }