game.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. * {
  2. padding: 0;
  3. margin: 0;
  4. border : 0px solid;
  5. }
  6. body, html {
  7. -webkit-touch-callout: none;
  8. -webkit-text-size-adjust: none;
  9. -webkit-user-select: none;
  10. -webkit-tap-highlight-color: rgba(0,0,0,0);
  11. background-color : #000;
  12. color : #ffffff;
  13. width:100%;
  14. height:100%;
  15. }
  16. canvas {
  17. image-rendering: optimizeSpeed;
  18. -webkit-interpolation-mode: nearest-neighbor;
  19. cursor: pointer;
  20. }
  21. .deviceLock {
  22. position: absolute;
  23. display: none;
  24. width: 100%;
  25. height: 100%;
  26. }
  27. /*
  28. when in landscape : show picture
  29. */
  30. @media screen and (orientation:landscape) {
  31. .deviceLock {
  32. position: absolute;
  33. top: 0px;
  34. left: 0px;
  35. width: 100% !important;
  36. height: 100% !important;
  37. background-color: #ffffff;
  38. display: none;
  39. }
  40. }
  41. /*
  42. when in portrait : hide picture
  43. */
  44. @media screen and (orientation:portrait) {
  45. .deviceLock {
  46. position: absolute;
  47. top: 0px;
  48. left: 0px;
  49. width: 100% !important;
  50. height: 100% !important;
  51. background-color: #ffffff;
  52. display: none !important;
  53. }
  54. }
  55. /*
  56. wrong orientation image
  57. */
  58. .rotateDevice {
  59. width:100%;
  60. height:100%;
  61. background: url('../media/rotatedevice.png') no-repeat 50% 50%;
  62. }
  63. #socialButtons {
  64. position:fixed;
  65. top:10%;
  66. left:0;
  67. }
  68. #ad {
  69. position: absolute;
  70. left:0px;
  71. top:0px;
  72. z-index:1000;
  73. background-color: #000;
  74. text-align:center;
  75. color: #888;
  76. }
  77. #ad .info {
  78. margin:10px auto 0px auto;
  79. font-size:15px;
  80. font-weight:bold;
  81. }
  82. #ad .skip {
  83. padding: 7px 10px;
  84. color: #CCC;
  85. border: 2px solid #333;
  86. background-color: #191919;
  87. text-align: center;
  88. width: 120px;
  89. border-radius: 5px;
  90. opacity: 0.8;
  91. cursor:pointer;
  92. }