style.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. #unity-container {
  13. position: absolute;
  14. top: 0;
  15. left: 50%;
  16. transform: translateX(-50%);
  17. z-index: 10;
  18. max-width: 500px;
  19. width: 100%;
  20. height: 100%;
  21. #unity-canvas {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. }
  26. #lodingTxt {
  27. position: absolute;
  28. z-index: 10;
  29. bottom: 20px;
  30. left: 50%;
  31. transform: translateX(-50%);
  32. color: #fff;
  33. font-size: 14px;
  34. }
  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. // 分享海报
  62. .shareBox{
  63. opacity: 0;
  64. pointer-events: none;
  65. transition: all .3s;
  66. position: absolute;
  67. z-index: 9000;
  68. width: 100%;
  69. height: 100%;
  70. top: 0;
  71. left: 0;
  72. background-color: rgba(0,0,0,.8);
  73. padding: 40px;
  74. text-align: center;
  75. &>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. .shareTit{
  83. margin: 3px auto 24px;
  84. color: #fff;
  85. font-size: 12px;
  86. letter-spacing: 2px;
  87. }
  88. .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. }
  100. }