style.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. html {}
  2. body { padding: 0; margin: 0 }
  3. #unity-container { position: fixed; width: 100%; height: 100%; }
  4. #unity-canvas { width: 100%; height: 100%; background: url('bg.jpg') no-repeat center; background-size: cover; }
  5. #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
  6. #unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
  7. #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
  8. #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
  9. @media all and (orientation: landscape) {
  10. .landscape {
  11. transform: rotate(0deg);
  12. width: 100vw;
  13. width: 100dvw;
  14. height: 100vh;
  15. height: 100dvh;
  16. top: 0;
  17. left: 0;
  18. }
  19. .portrait {
  20. transform: rotate(90deg);
  21. transform-origin: left top;
  22. width: 100vh;
  23. width: 100dvh;
  24. height: 100vw;
  25. height: 100dvw;
  26. left: 100%;
  27. }
  28. }
  29. @media all and (orientation: portrait) {
  30. .landscape {
  31. transform: rotate(90deg);
  32. transform-origin: left top;
  33. width: 100vh;
  34. width: 100dvh;
  35. height: 100vw;
  36. height: 100dvw;
  37. left: 100%;
  38. }
  39. .portrait {
  40. transform: rotate(0deg);
  41. width: 100vw;
  42. width: 100dvw;
  43. height: 100vh;
  44. height: 100dvh;
  45. top: 0;
  46. left: 0;
  47. }
  48. }