| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- html {}
- body { padding: 0; margin: 0 }
- #unity-container { position: fixed; width: 100%; height: 100%; }
- #unity-canvas { width: 100%; height: 100%; background: url('bg.jpg') no-repeat center; background-size: cover; }
- #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
- #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 }
- #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
- #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
- @media all and (orientation: landscape) {
- .landscape {
- transform: rotate(0deg);
- width: 100vw;
- width: 100dvw;
- height: 100vh;
- height: 100dvh;
- top: 0;
- left: 0;
- }
- .portrait {
- transform: rotate(90deg);
- transform-origin: left top;
- width: 100vh;
- width: 100dvh;
- height: 100vw;
- height: 100dvw;
- left: 100%;
- }
- }
- @media all and (orientation: portrait) {
- .landscape {
- transform: rotate(90deg);
- transform-origin: left top;
- width: 100vh;
- width: 100dvh;
- height: 100vw;
- height: 100dvw;
- left: 100%;
- }
- .portrait {
- transform: rotate(0deg);
- width: 100vw;
- width: 100dvw;
- height: 100vh;
- height: 100dvh;
- top: 0;
- left: 0;
- }
- }
|