Fix loading page styling

This commit is contained in:
Jérémie Astori 2019-02-15 01:40:42 -05:00
parent 013129da1f
commit 2657332919
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
3 changed files with 23 additions and 15 deletions

View File

@ -888,8 +888,7 @@ background on hover (unless active) */
line-height: 1.5; line-height: 1.5;
} }
#loading, .window {
#windows .window {
background: var(--window-bg-color); background: var(--window-bg-color);
display: none; display: none;
overflow-y: auto; overflow-y: auto;
@ -899,7 +898,7 @@ background on hover (unless active) */
} }
#chat .chan, #chat .chan,
#windows .window { .window {
/* flexbox does not seem to scroll without doing this */ /* flexbox does not seem to scroll without doing this */
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -1619,9 +1618,17 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
#loading { #loading {
font-size: 14px; font-size: 14px;
z-index: 1; height: 100%;
}
#loading .window {
height: initial;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
bottom: 5px;
left: 5px;
right: 5px;
top: 5px;
} }
#loading p { #loading p {

View File

@ -49,6 +49,7 @@
</head> </head>
<body class="signed-out<%- public ? " public" : "" %>" data-transports="<%- JSON.stringify(transports) %>"> <body class="signed-out<%- public ? " public" : "" %>" data-transports="<%- JSON.stringify(transports) %>">
<div id="loading"> <div id="loading">
<div class="window">
<div id="loading-status-container"> <div id="loading-status-container">
<img src="img/logo-vertical-transparent-bg.svg" class="logo" alt="The Lounge" width="256" height="170"> <img src="img/logo-vertical-transparent-bg.svg" class="logo" alt="The Lounge" width="256" height="170">
<img src="img/logo-vertical-transparent-bg-inverted.svg" class="logo-inverted" alt="The Lounge" width="256" height="170"> <img src="img/logo-vertical-transparent-bg-inverted.svg" class="logo-inverted" alt="The Lounge" width="256" height="170">
@ -60,6 +61,7 @@
</div> </div>
<script async src="js/loading-error-handlers.js"></script> <script async src="js/loading-error-handlers.js"></script>
</div> </div>
</div>
<div id="viewport"></div> <div id="viewport"></div>
<div id="context-menu-container"></div> <div id="context-menu-container"></div>

View File

@ -6,7 +6,7 @@
padding-left: 0; padding-left: 0;
} }
#windows .window { .window {
border-radius: 5px; border-radius: 5px;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
} }
@ -17,7 +17,6 @@
padding: 0; padding: 0;
} }
#viewport #loading,
#viewport #sign-in { #viewport #sign-in {
margin-left: 0; margin-left: 0;
} }