Files
ZHGD_Web/Assets/WebGLTemplates/DefaultTemplate/TemplateData/style.css

80 lines
1.3 KiB
CSS
Raw Normal View History

2025-07-16 15:37:39 +08:00
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: url('background.png');
background-size: cover;
overflow: hidden;
}
#unity-container {
position: fixed;
width: 100%;
height: 100%;
}
#unity-container.unity-desktop {
left: 50%;
top: 50%;
transform: translate(-50%, -50%)
}
#unity-container.unity-mobile {
width: 100%;
height: 100%
}
#unity-canvas {
background: url('background.png') no-repeat center
}
.unity-mobile #unity-canvas {
width: 100%;
height: 100%
}
#unity-loading-bar {
display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
height: 100%;
}
#unity-loading-img {
margin-left: 20%;
}
#unity-loadtext {
width: 200px;
height: 30px;
margin: 0 auto;
color: aliceblue;
}
#unity-progress-bar-empty {
width: 50%;
height: 15px;
border-radius: 10px;
margin: 0 auto;
background: url('progress-bar-empty-dark.png') no-repeat center
}
#unity-progress-bar-full {
height: 100%;
border-radius: 10px;
width: 0%;
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
}