LoadingIndicator: refactor styles, improve look of ColumnLoading
This commit is contained in:
parent
63a001ae7d
commit
115d324e9b
5 changed files with 32 additions and 10 deletions
|
@ -11,9 +11,11 @@
|
|||
<body class="app-body app-body--loading theme-mode-light no-reduce-motion">
|
||||
<div class="app-holder" id="soapbox">
|
||||
<div class="loading-indicator">
|
||||
<div class="loading-indicator__container">
|
||||
<div class="loading-indicator__figure"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<noscript>To use this website, please enable JavaScript.</noscript>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -867,3 +867,13 @@
|
|||
.column-list {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.column-loading {
|
||||
background-color: var(--foreground-color);
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
|
|
|
@ -4,20 +4,24 @@
|
|||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
overflow: visible;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
float: left;
|
||||
transform: translateX(-50%);
|
||||
margin: 82px 0 0 50%;
|
||||
margin-top: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.loading-indicator__container {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.loading-indicator__figure {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
@ -41,9 +45,15 @@
|
|||
animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
}
|
||||
|
||||
.app-body--loading .loading-indicator__figure {
|
||||
.app-body--loading .loading-indicator {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
align-items: center;
|
||||
|
||||
&__figure {
|
||||
border-color: #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loader-figure {
|
||||
0% {
|
||||
|
|
Loading…
Reference in a new issue