core.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. html,body {
  2. margin: 0;
  3. padding: 0;
  4. overflow: hidden;
  5. height: 100%;
  6. background-color: black;
  7. }
  8. * {
  9. -webkit-transition: opacity 1000ms ease-out;
  10. -moz-transition: opacity 1000ms ease-out;
  11. -o-transition: opacity 1000ms ease-out;
  12. -ms-transition: opacity 1000ms ease-out;
  13. transition: opacity 1000ms ease-out;
  14. }
  15. canvas {
  16. width: 100%;
  17. height: 100%;
  18. }
  19. #game {
  20. width: 100%;
  21. height: 100%;
  22. }
  23. .menu-ui {
  24. position: absolute;
  25. width: 100%;
  26. height: 100%;
  27. background: transparent;
  28. top: 0;
  29. left: 0;
  30. text-align: center;
  31. color: white;
  32. }
  33. .nav-menu-ui {
  34. position: absolute;
  35. white-space: nowrap;
  36. padding: 4px;
  37. background: rgba(127, 127, 127, 0.3);
  38. bottom: 0;
  39. color: white;
  40. }
  41. button {
  42. -webkit-transition: all 180ms ease-out;
  43. -moz-transition: all 180ms ease-out;
  44. -o-transition: all 180ms ease-out;
  45. -ms-transition: all 180ms ease-out;
  46. transition: all 180ms ease-out;
  47. }
  48. .nav-menu-ui button {
  49. width: 3em;
  50. height: 2em;
  51. border: 0px;
  52. color: black;
  53. font-family: 'Syne Mono', serif;
  54. font-size: 1em;
  55. background-color: lightgray;
  56. border-radius: 4px;
  57. border: none;
  58. margin-bottom: 6px;
  59. margin-top: 0;
  60. outline: none;
  61. margin-left: 4px;
  62. margin-right: 4px;
  63. -ms-user-select:none;
  64. -moz-user-select:none;
  65. -webkit-user-select:none;
  66. -webkit-touch-callout: none;
  67. -khtml-user-select: none;
  68. user-select:none;
  69. }
  70. .nav-menu-ui button:hover {
  71. margin-bottom: 0;
  72. cursor: pointer;
  73. background-color: gray;
  74. color: white;
  75. }
  76. .menu-ui h1 {
  77. color: white;
  78. font-weight: normal;
  79. font-size: 3em;
  80. font-family: 'Syne Mono', serif;
  81. padding: 0.5em;
  82. }
  83. .menu-ui button {
  84. position: absolute;
  85. bottom: 40%;
  86. left: calc(50% - 1.5em);
  87. width: 3em;
  88. height: 2em;
  89. font-size: 3em;
  90. color: black;
  91. font-family: 'Syne Mono', serif;
  92. background-color: lightgray;
  93. border-radius: 4px;
  94. border: none;
  95. margin-bottom: -6px;
  96. outline: none;
  97. }
  98. .menu-ui button:hover {
  99. margin-bottom: 0;
  100. cursor: pointer;
  101. background-color: gray;
  102. color: white;
  103. }
  104. .ship-info {
  105. position: absolute;
  106. width: calc(90% - 16px);
  107. height: calc(90% - 46px);
  108. white-space: nowrap;
  109. padding: 8px;
  110. border-radius: 8px;
  111. background-color: rgba(127, 127, 127, 0.3);
  112. top: 105%;
  113. left: 5%;
  114. color: white;
  115. -webkit-transition: top 300ms cubic-bezier(.18,.89,.81,1.13);
  116. -moz-transition: top 300ms cubic-bezier(.18,.89,.81,1.13);
  117. -o-transition: top 300ms cubic-bezier(.18,.89,.81,1.13);
  118. -ms-transition: top 300ms cubic-bezier(.18,.89,.81,1.13);
  119. transition: top 300ms cubic-bezier(.18,.89,.81,1.13);
  120. }
  121. .show {
  122. visibility: visible;
  123. top: 5%;
  124. }
  125. .close {
  126. float: right;
  127. }