diff --git a/assets/loading.css b/assets/loading.css index b71bc0c..2a01240 100644 --- a/assets/loading.css +++ b/assets/loading.css @@ -32,30 +32,30 @@ /* 加载进度条 */ .loading-bar { + position: fixed; + top: 0; + left: 0; + z-index: 99999; + opacity: 0; + transition: opacity .4s linear; + + .progress { position: fixed; top: 0; left: 0; - z-index: 99999; - opacity: 0; - transition: opacity .4s linear; - + width: 0; + height: 4px; + background-color: #007bff; + box-shadow: 0 0 10px rgba(119, 182, 255, .7); + } + + &.loading { + opacity: 1; + transition: none; + .progress { - position: fixed; - top: 0; - left: 0; - width: 0; - height: 4px; - background-color: #007bff; - box-shadow: 0 0 10px rgba(119, 182, 255, .7); - } - - &.loading { - opacity: 1; - transition: none; - - .progress { - transition: width .4s ease; - } + transition: width .4s ease; } } +} /* 加载进度条结束 */ \ No newline at end of file