style-desktop.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. body {
  2. cursor: default;
  3. padding: 0;
  4. border: 0;
  5. margin: 0;
  6. text-align: center;
  7. background-color: white;
  8. font-family: Helvetica, Verdana, Arial, sans-serif;
  9. }
  10. body, canvas, div {
  11. outline: none;
  12. -moz-user-select: none;
  13. -webkit-user-select: none;
  14. -ms-user-select: none;
  15. -khtml-user-select: none;
  16. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  17. }
  18. /* Remove spin of input type number */
  19. input::-webkit-outer-spin-button,
  20. input::-webkit-inner-spin-button {
  21. /* display: none; <- Crashes Chrome on hover */
  22. -webkit-appearance: none;
  23. margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  24. }
  25. #Cocos2dGameContainer {
  26. position: absolute;
  27. margin: 0;
  28. overflow: hidden;
  29. left: 0px;
  30. top: 0px;
  31. }
  32. canvas {
  33. background-color: rgba(0, 0, 0, 0);
  34. }
  35. a:link, a:visited {
  36. color: #000;
  37. }
  38. a:active, a:hover {
  39. color: #666;
  40. }
  41. p.header {
  42. font-size: small;
  43. }
  44. p.footer {
  45. font-size: x-small;
  46. }
  47. #splash {
  48. position: absolute;
  49. top: 0;
  50. left: 0;
  51. width: 100%;
  52. height: 100%;
  53. background: #171717 url(./splash.png) no-repeat center;
  54. background-size: 40%;
  55. }
  56. .progress-bar {
  57. background-color: #1a1a1a;
  58. position: absolute;
  59. left: 50%;
  60. top: 80%;
  61. height: 26px;
  62. padding: 5px;
  63. width: 350px;
  64. margin: 0 -175px;
  65. border-radius: 5px;
  66. box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
  67. }
  68. .progress-bar span {
  69. display: block;
  70. height: 100%;
  71. border-radius: 3px;
  72. box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  73. transition: width .4s ease-in-out;
  74. background-color: #34c2e3;
  75. }
  76. .stripes span {
  77. background-size: 30px 30px;
  78. background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  79. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  80. transparent 75%, transparent);
  81. animation: animate-stripes 1s linear infinite;
  82. }
  83. @keyframes animate-stripes {
  84. 0% {background-position: 0 0;} 100% {background-position: 60px 0;}
  85. }
  86. h1 {
  87. color: #444;
  88. text-shadow: 3px 3px 15px;
  89. }
  90. #GameDiv {
  91. width: 800px;
  92. height: 450px;
  93. margin: 0 auto;
  94. background: black;
  95. position:relative;
  96. border:5px solid black;
  97. border-radius: 10px;
  98. box-shadow: 0 5px 50px #333
  99. }