style.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. html {
  2. -ms-touch-action: none;
  3. }
  4. body, canvas, div {
  5. display: block;
  6. outline: none;
  7. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  8. user-select: none;
  9. -moz-user-select: none;
  10. -webkit-user-select: none;
  11. -ms-user-select: none;
  12. -khtml-user-select: none;
  13. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  14. }
  15. /* Remove spin of input type number */
  16. input::-webkit-outer-spin-button,
  17. input::-webkit-inner-spin-button {
  18. /* display: none; <- Crashes Chrome on hover */
  19. -webkit-appearance: none;
  20. margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  21. }
  22. body {
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. width: 100%;
  27. height: 100%;
  28. padding: 0;
  29. border: 0;
  30. margin: 0;
  31. cursor: default;
  32. color: #888;
  33. background-color: #333;
  34. text-align: center;
  35. font-family: Helvetica, Verdana, Arial, sans-serif;
  36. display: flex;
  37. flex-direction: column;
  38. }
  39. canvas {
  40. background-color: rgba(0, 0, 0, 0);
  41. }
  42. #GameDiv, #Cocos3dGameContainer, #GameCanvas {
  43. width: 100%;
  44. height: 100%;
  45. }
  46. :root {
  47. --safe-top: env(safe-area-inset-top);
  48. --safe-right: env(safe-area-inset-right);
  49. --safe-bottom: env(safe-area-inset-bottom);
  50. --safe-left: env(safe-area-inset-left);
  51. }