209 lines
5.4 KiB
CSS
209 lines
5.4 KiB
CSS
/* body { padding: 0; margin: 0 }
|
|
#unity-container { position: absolute }
|
|
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
|
|
#unity-container.unity-mobile { width: 100%; height: 100% }
|
|
#unity-canvas { background: #231F20 }
|
|
.unity-mobile #unity-canvas { width: 100%; height: 100% }
|
|
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
|
|
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
|
|
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; 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-footer { position: relative }
|
|
.unity-mobile #unity-footer { display: none }
|
|
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
|
|
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
|
|
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
|
|
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } */
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
#unity-container {
|
|
position: absolute;
|
|
}
|
|
|
|
#unity-container.unity-desktop {
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
#unity-container.unity-mobile {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#unity-canvas {
|
|
background: #1F1F20;
|
|
}
|
|
|
|
.unity-mobile #unity-canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#unity-loading-bar {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
display: block;
|
|
}
|
|
|
|
#unity-logo {
|
|
width: 154px;
|
|
height: 130px;
|
|
background: url('unity-logo-dark.png') no-repeat center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
|
|
/* 文字 "数字孪生" 样式 */
|
|
#unity-text {
|
|
|
|
font-size: 56px; /* 字体大小 */
|
|
/* color: #fff; 字体颜色,与圆环匹配的蓝色 */
|
|
font-family: "微软雅黑";
|
|
-webkit-text-fill-color: transparent;
|
|
font-weight: bold;
|
|
letter-spacing: 10px;
|
|
height: 90px;
|
|
background: linear-gradient(to bottom, #3498db 30%, #fff 50%);
|
|
-webkit-background-clip: text;
|
|
color: transparent;
|
|
display: inline-block;
|
|
line-height: 75px;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
position: absolute;
|
|
width:650px;
|
|
top: -50px; /* 将文字放置在圆环上方 */
|
|
left: 50%;
|
|
transform: translate(-48%,-50px);
|
|
}
|
|
|
|
/* =================== */
|
|
/* 3 DOT LOADER */
|
|
.flexbox {
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
flex-direction: column;
|
|
-ms-flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.flexbox > div {
|
|
/* width: 300px;
|
|
height: 300px;
|
|
-webkit-box-flex: 0;
|
|
-ms-flex: 0 0 25%;
|
|
flex: 0 0 25%;
|
|
border: 1px solid rgba(255, 255, 255, 0.1); */
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
position: relative;
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-webkit-box-pack: center;
|
|
-ms-flex-pack: center;
|
|
justify-content: center;
|
|
-webkit-box-align: center;
|
|
-ms-flex-align: center;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
.dot-loader {
|
|
height: 20px;
|
|
width: 20px;
|
|
border-radius: 50%;
|
|
background-color: #3498db;
|
|
position: relative;
|
|
-webkit-animation: 1.2s grow ease-in-out infinite;
|
|
animation: 1.2s grow ease-in-out infinite;
|
|
}
|
|
|
|
.dot-loader--2 {
|
|
-webkit-animation: 1.2s grow ease-in-out infinite 0.15555s;
|
|
animation: 1.2s grow ease-in-out infinite 0.1s;
|
|
margin: 0 20px;
|
|
}
|
|
.dot-loader--3 {
|
|
-webkit-animation: 1.2s grow ease-in-out infinite 0.3s;
|
|
animation: 1.2s grow ease-in-out infinite 0.1555s;
|
|
}
|
|
.dot-loader--4 {
|
|
-webkit-animation: 1.2s grow ease-in-out infinite 0.15555s;
|
|
animation: 1.2s grow ease-in-out infinite 0.25555s;
|
|
margin: 0 20px;
|
|
}
|
|
.dot-loader--5 {
|
|
-webkit-animation: 1.2s grow ease-in-out infinite 0.3s;
|
|
animation: 1.2s grow ease-in-out infinite 0.3s;
|
|
}
|
|
@-webkit-keyframes grow {
|
|
0%, 40%, 100% {
|
|
-webkit-transform: scale(0);
|
|
transform: scale(0);
|
|
}
|
|
40% {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
@keyframes grow {
|
|
0%, 40%, 100% {
|
|
-webkit-transform: scale(0);
|
|
transform: scale(0);
|
|
}
|
|
40% {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
/* 进度条结构中其他元素的样式 */
|
|
#unity-footer {
|
|
position: relative;
|
|
}
|
|
|
|
.unity-mobile #unity-footer {
|
|
display: none;
|
|
}
|
|
|
|
#unity-webgl-logo {
|
|
float: left;
|
|
width: 204px;
|
|
height: 38px;
|
|
background: url('webgl-logo.png') no-repeat center;
|
|
}
|
|
|
|
#unity-build-title {
|
|
float: right;
|
|
margin-right: 10px;
|
|
line-height: 38px;
|
|
font-family: arial;
|
|
font-size: 18px;
|
|
}
|
|
|
|
#unity-fullscreen-button {
|
|
float: right;
|
|
width: 38px;
|
|
height: 38px;
|
|
background: url('fullscreen-button.png') no-repeat center;
|
|
}
|
|
|
|
#unity-warning {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 5%;
|
|
transform: translate(-50%);
|
|
background: white;
|
|
padding: 10px;
|
|
display: none;
|
|
}
|
|
|