style.css 2.0 KB

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