LoadingView.css 3.1 Ko
Télécharger le fichier
/* AIR HabboLoadingScreen: background 0x0E151C, the 500 x 434 photo splash centred, the message 50 px under it,
the 400 x 25 bar and the percentage; the hotel logo top left. */
.octane-loading {
position: fixed;
inset: 0;
z-index: 2147483000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
background: #0e151c;
color: #ffffff;
font-family: Ubuntu, "Segoe UI", system-ui, sans-serif;
user-select: none;
}
.octane-loading__logo {
position: absolute;
top: 16px;
left: 16px;
z-index: 2;
width: 280px;
max-width: calc(100vw - 32px);
height: auto;
pointer-events: none;
}
/* AIR centres the whole stack, then lifts it by 20 px. */
.octane-loading__stack {
display: flex;
flex-direction: column;
align-items: center;
margin-top: -40px;
}
.octane-loading__splash {
position: relative;
width: 500px;
height: 434px;
flex: 0 0 auto;
}
.octane-loading__splash img {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
image-rendering: var(--octane-pixel-art, pixelated);
}
.octane-loading__splash .octane-loading__photo {
top: 51px;
left: 96px;
width: 320px;
height: 320px;
}
.octane-loading__text {
max-width: calc(100vw - 32px);
margin-top: 50px;
font-size: 28px;
font-weight: 700;
line-height: 1.2;
text-align: center;
}
.octane-loading__bar {
box-sizing: border-box;
width: 400px;
max-width: calc(100vw - 32px);
height: 25px;
margin-top: 10px;
padding: 2px;
border: 1px solid #ffffff;
background: #26262f;
}
.octane-loading__track {
height: 100%;
padding: 1px;
background: #000000;
}
/* The fill: top half 0xBACAD3, bottom half 0x8CA1AD. */
.octane-loading__fill {
height: 100%;
background: linear-gradient(#bacad3 50%, #8ca1ad 50%);
transition: width 300ms ease-out;
}
.octane-loading__percent {
min-height: 17px;
margin-top: 5px;
color: #999999;
font-size: 14px;
font-weight: 700;
text-align: center;
}
.octane-loading__task {
margin-top: 2px;
color: #999999;
font-size: 12px;
text-align: center;
opacity: 0.8;
}
/* showError: 16 px, 0x7ECAEE, 320 to 760 wide. */
.octane-loading__error {
width: min(760px, calc(100vw - 80px));
min-width: min(320px, calc(100vw - 32px));
margin-top: 10px;
color: #7ecaee;
font-size: 16px;
text-align: center;
user-select: text;
}
.octane-loading__home {
display: inline-block;
margin-top: 14px;
padding: 8px 20px;
border-radius: 6px;
background: #3b82f6;
color: #ffffff;
font-weight: 700;
text-decoration: none;
}
.octane-loading__home:hover {
background: #2563eb;
}
/* Small screens: the splash shrinks so the bar stays in view. */
@media (max-width: 560px), (max-height: 760px) {
.octane-loading__splash {
zoom: 0.7;
}
}
@media (max-width: 380px), (max-height: 560px) {
.octane-loading__splash {
zoom: 0.5;
}
.octane-loading__text {
margin-top: 24px;
font-size: 20px;
}
}
