style.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. width: 100vw;
  8. height: 100vh;
  9. max-width: 500px;
  10. margin: 0 auto;
  11. overflow: hidden;
  12. }
  13. body #unity-container {
  14. position: absolute;
  15. top: 0;
  16. left: 50%;
  17. transform: translateX(-50%);
  18. z-index: 10;
  19. max-width: 500px;
  20. width: 100%;
  21. height: 100%;
  22. }
  23. body #unity-container #unity-canvas {
  24. width: 100%;
  25. height: 100%;
  26. }
  27. body #lodingTxt {
  28. position: absolute;
  29. z-index: 10;
  30. bottom: 20px;
  31. left: 50%;
  32. transform: translateX(-50%);
  33. color: #fff;
  34. font-size: 14px;
  35. }
  36. #unity-loading-bar {
  37. position: fixed;
  38. z-index: 999;
  39. top: 0;
  40. left: 0;
  41. transform: translate(0, 0);
  42. width: 100%;
  43. height: 100%;
  44. background-color: black;
  45. }
  46. #unity-logo {
  47. display: none !important;
  48. }
  49. #unity-progress-bar-empty {
  50. position: absolute;
  51. top: 0;
  52. left: 0;
  53. width: 100%;
  54. height: 100%;
  55. background: url('loding.gif') black center center no-repeat;
  56. background-size: contain;
  57. }
  58. #unity-progress-bar-full {
  59. display: none !important;
  60. }
  61. .shareBox {
  62. opacity: 0;
  63. pointer-events: none;
  64. transition: all 0.3s;
  65. position: absolute;
  66. z-index: 9000;
  67. width: 100%;
  68. height: 100%;
  69. top: 0;
  70. left: 0;
  71. background-color: rgba(0, 0, 0, 0.8);
  72. padding: 40px;
  73. text-align: center;
  74. }
  75. .shareBox > img {
  76. object-fit: contain;
  77. width: 100%;
  78. height: calc(100% - 80px);
  79. max-width: 100%;
  80. max-height: calc(100% - 80px);
  81. }
  82. .shareBox .shareTit {
  83. margin: 3px auto 24px;
  84. color: #fff;
  85. font-size: 12px;
  86. letter-spacing: 2px;
  87. }
  88. .shareBox .shareBtn {
  89. color: #fff;
  90. width: 100px;
  91. margin: 0 auto;
  92. height: 36px;
  93. line-height: 34px;
  94. border: 1px solid #fff;
  95. border-radius: 18px;
  96. text-align: center;
  97. font-size: 14px;
  98. letter-spacing: 2px;
  99. }