style.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. #Cocos2dGameContainer {
  40. position: absolute;
  41. margin: 0;
  42. overflow: hidden;
  43. left: 0px;
  44. top: 0px;
  45. display: -webkit-box;
  46. -webkit-box-orient: horizontal;
  47. -webkit-box-align: center;
  48. -webkit-box-pack: center;
  49. }
  50. canvas {
  51. background-color: rgba(0, 0, 0, 0);
  52. }
  53. a:link, a:visited {
  54. color: #666;
  55. }
  56. a:active, a:hover {
  57. color: #666;
  58. }
  59. p.header {
  60. font-size: small;
  61. }
  62. p.footer {
  63. font-size: x-small;
  64. }
  65. .progress-bar {
  66. background-color: #1a1a1a;
  67. position: absolute;
  68. left: 25%;
  69. top: 80%;
  70. height: 14px;
  71. padding: 5px;
  72. width: 50%;
  73. /*margin: 0 -175px; */
  74. border-radius: 5px;
  75. box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
  76. }
  77. .progress-bar span {
  78. display: block;
  79. height: 100%;
  80. border-radius: 3px;
  81. box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  82. transition: width .4s ease-in-out;
  83. background-color: #34c2e3;
  84. }
  85. .stripes span {
  86. background-size: 30px 30px;
  87. background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  88. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  89. transparent 75%, transparent);
  90. animation: animate-stripes 1s linear infinite;
  91. }
  92. @keyframes animate-stripes {
  93. 0% {background-position: 0 0;} 100% {background-position: 60px 0;}
  94. }