style.css 1.7 KB

12345678910111213141516171819202122232425
  1. body { padding: 0; margin: 0 }
  2. #unity-container { position: absolute }
  3. #unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
  4. #unity-container.unity-mobile { width: 100%; height: 100% }
  5. #unity-canvas { background: url('img_loadingbg.png') no-repeat center}
  6. .unity-mobile #unity-canvas { width: 100%; height: 100% }
  7. #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
  8. #unity-progress-info {
  9. position: absolute;
  10. top: -30px; /* 根据进度条高度调整 */
  11. left: 0;
  12. width: 100%;
  13. text-align: center;
  14. font-family: Arial, sans-serif;
  15. font-size: 18px;
  16. color: #fff; /* 文字颜色 */
  17. }
  18. #unity-progress-bar-empty { position: relative; width: 1100px; height: 18px; margin-top: 5px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center;background-size: 100% 100%; /* 拉伸图片以适应宽度和高度 */}
  19. #unity-progress-bar-full { width: 0%; height: 16px; margin-top: 12px; background: url('progress-bar-full-dark.png') no-repeat center ;background-size: 100% 100%; /* 拉伸图片以适应宽度和高度 */}
  20. #unity-footer { position: relative }
  21. .unity-mobile #unity-footer { display: none }
  22. #unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
  23. #unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
  24. #unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
  25. #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }