Skip to content

Commit

Permalink
perf: 优化代码结构
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Jun 20, 2024
1 parent cdb04fe commit 0361951
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 51 deletions.
42 changes: 0 additions & 42 deletions src/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,6 @@
--scrollbar-hover: rgba(255, 255, 255, .25);
}

@keyframes loaderBefore {
0% {
width: 0.5em;
box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
}

35% {
width: 2.5em;
box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
}

70% {
width: 0.5em;
box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
}

100% {
box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
}
}

@keyframes loaderAfter {
0% {
height: 0.5em;
box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
}

35% {
height: 2.5em;
box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
}

70% {
height: 0.5em;
box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
}

100% {
box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
}
}

/* 修改滚动条样式 */
*::-webkit-scrollbar {
width: 5px;
Expand Down
59 changes: 59 additions & 0 deletions src/components/FullLoading/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,62 @@
/>
</div>
</template>
<style>
@keyframes loaderBefore {
0% {
width: 0.5em;
box-shadow:
1em -0.5em rgba(225, 20, 98, 0.75),
-1em 0.5em rgba(111, 202, 220, 0.75);
}
35% {
width: 2.5em;
box-shadow:
0 -0.5em rgba(225, 20, 98, 0.75),
0 0.5em rgba(111, 202, 220, 0.75);
}
70% {
width: 0.5em;
box-shadow:
-1em -0.5em rgba(225, 20, 98, 0.75),
1em 0.5em rgba(111, 202, 220, 0.75);
}
100% {
box-shadow:
1em -0.5em rgba(225, 20, 98, 0.75),
-1em 0.5em rgba(111, 202, 220, 0.75);
}
}
@keyframes loaderAfter {
0% {
height: 0.5em;
box-shadow:
0.5em 1em rgba(61, 184, 143, 0.75),
-0.5em -1em rgba(233, 169, 32, 0.75);
}
35% {
height: 2.5em;
box-shadow:
0.5em 0 rgba(61, 184, 143, 0.75),
-0.5em 0 rgba(233, 169, 32, 0.75);
}
70% {
height: 0.5em;
box-shadow:
0.5em -1em rgba(61, 184, 143, 0.75),
-0.5em 1em rgba(233, 169, 32, 0.75);
}
100% {
box-shadow:
0.5em 1em rgba(61, 184, 143, 0.75),
-0.5em -1em rgba(233, 169, 32, 0.75);
}
}
</style>
9 changes: 0 additions & 9 deletions src/components/PageLoading/index.vue

This file was deleted.

0 comments on commit 0361951

Please sign in to comment.