262 lines
5.1 KiB
SCSS
262 lines
5.1 KiB
SCSS
// https://github.com/loadingio/css-spinner/tree/master/dist 从当前链接现在在 在tools.js 的myLoading 进行判断处理
|
|
// 高度 宽度 等细节 记得处理
|
|
.my-loading-parent-icon {
|
|
height: auto;
|
|
width: auto;
|
|
}
|
|
.my-loading-box {
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
z-index: 2000;
|
|
background-color: $--background-color-empty;
|
|
opacity: 0.8;
|
|
margin: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
-webkit-transition: opacity 0.3s;
|
|
transition: opacity 0.3s;
|
|
}
|
|
.my-loading{
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
margin-top: 0;
|
|
-webkit-transform: translate(-50%, -50%);
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
loading-hide{
|
|
display: none;
|
|
}
|
|
|
|
// 1
|
|
.lds-dual-ring,
|
|
.lds-dual-ring:after {
|
|
box-sizing: border-box;
|
|
}
|
|
.lds-dual-ring {
|
|
display: inline-block;
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
.lds-dual-ring:after {
|
|
content: " ";
|
|
display: block;
|
|
width: 64px;
|
|
height: 64px;
|
|
margin: 8px;
|
|
border-radius: 50%;
|
|
border: 6.4px solid currentColor;
|
|
border-color: currentColor transparent currentColor transparent;
|
|
animation: lds-dual-ring 1.2s linear infinite;
|
|
}
|
|
@keyframes lds-dual-ring {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
// 2
|
|
.ldsFacebook,
|
|
.ldsFacebook div {
|
|
box-sizing: border-box;
|
|
}
|
|
.ldsFacebook {
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 40px;
|
|
height: 32px;
|
|
}
|
|
.ldsFacebook div {
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 8px;
|
|
width: 8px;
|
|
background: $--color-primary;
|
|
animation: ldsFacebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
|
|
}
|
|
.ldsFacebook div:nth-child(1) {
|
|
left: 8px;
|
|
background: $--color-primary;
|
|
filter: invert(50%);
|
|
animation-delay: -0.24s;
|
|
}
|
|
.ldsFacebook div:nth-child(2) {
|
|
left: 20px;
|
|
background: $--color-primary;
|
|
filter: invert(50%);
|
|
animation-delay: -0.12s;
|
|
}
|
|
.ldsFacebook div:nth-child(3) {
|
|
left: 32px;
|
|
background: $--color-primary;
|
|
filter: invert(50%);
|
|
animation-delay: 0s;
|
|
}
|
|
@keyframes ldsFacebook {
|
|
0% {
|
|
top: 8px;
|
|
height: 32px;
|
|
}
|
|
50%, 100% {
|
|
top: 12px;
|
|
height: 16px;
|
|
}
|
|
}
|
|
/** start of bars1 */
|
|
.bars1 {
|
|
display: block;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
height: 50px;
|
|
width: 38px;
|
|
//margin: -25px 0 0 -25px;
|
|
}
|
|
|
|
.bars1 span {
|
|
position: absolute;
|
|
display: block;
|
|
bottom: 10px;
|
|
width: 5px;
|
|
height: 5px;
|
|
background: $--color-primary;
|
|
opacity: 1;
|
|
-webkit-animation: bars1 1.5s infinite ease-in-out;
|
|
animation: bars1 1.5s infinite ease-in-out;
|
|
}
|
|
|
|
.bars1 span:nth-child(2) {
|
|
left: 8px;
|
|
-webkit-animation-delay: 0.2s;
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.bars1 span:nth-child(3) {
|
|
left: 16px;
|
|
-webkit-animation-delay: 0.4s;
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.bars1 span:nth-child(4) {
|
|
left: 24px;
|
|
-webkit-animation-delay: 0.6s;
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.bars1 span:nth-child(5) {
|
|
left: 32px;
|
|
-webkit-animation-delay: 0.8s;
|
|
animation-delay: 0.8s;
|
|
}
|
|
|
|
@keyframes bars1 {
|
|
0% {
|
|
height: 5px;
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
opacity: 0.25;
|
|
}
|
|
25% {
|
|
height: 24px;
|
|
-webkit-transform: translateY(12px);
|
|
transform: translateY(12px);
|
|
-webkit-transform: translateY(12px);
|
|
transform: translateY(12px);
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
height: 5px;
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
opacity: 0.25;
|
|
}
|
|
100% {
|
|
height: 5px;
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
opacity: 0.25;
|
|
}
|
|
}
|
|
@-webkit-keyframes bars1 {
|
|
0% {
|
|
height: 5px;
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
opacity: 0.25;
|
|
}
|
|
25% {
|
|
height: 24px;
|
|
-webkit-transform: translateY(12px);
|
|
transform: translateY(12px);
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
height: 5px;
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
opacity: 0.25;
|
|
}
|
|
100% {
|
|
height: 5px;
|
|
-webkit-transform: translateY(0px);
|
|
transform: translateY(0px);
|
|
opacity: 0.25;
|
|
}
|
|
}
|
|
/** END of bars1 */
|
|
/**===== circle3 =====*/
|
|
.circle3 {
|
|
display: block;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
height: 50px;
|
|
width: 50px;
|
|
margin: -25px 0 0 -25px;
|
|
border: 4px rgba(0, 0, 0, 0.25) solid;
|
|
border-top: 4px black solid;
|
|
border-right: 4px black solid;
|
|
border-bottom: 4px black solid;
|
|
border-radius: 50%;
|
|
-webkit-animation: spin3 1s infinite linear;
|
|
animation: spin3 1s infinite linear;
|
|
}
|
|
|
|
@-webkit-keyframes spin3 {
|
|
from {
|
|
-webkit-transform: rotate(0deg);
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
-webkit-transform: rotate(359deg);
|
|
transform: rotate(359deg);
|
|
}
|
|
}
|
|
@keyframes spin3 {
|
|
from {
|
|
-webkit-transform: rotate(0deg);
|
|
transform: rotate(0deg);
|
|
-webkit-transform: rotate(0deg);
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
-webkit-transform: rotate(359deg);
|
|
transform: rotate(359deg);
|
|
-webkit-transform: rotate(359deg);
|
|
transform: rotate(359deg);
|
|
}
|
|
}
|
|
/** END of circle3 */
|