Skip to content

Commit

Permalink
refactor: 优化默认样式,干掉一闪而过的滚动条
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Oct 10, 2023
1 parent 68c6b81 commit 279a93c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<base target="_blank" />
<title>me-admin</title>
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>

<body>
Expand All @@ -17,25 +23,30 @@
display: flex;
justify-content: space-between;
}

.sk-flow-dot {
width: 25%;
height: 25%;
background-color: #79bbff;
border-radius: 50%;
animation: sk-flow 1.4s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s infinite both;
}

.sk-flow-dot:nth-child(1) {
animation-delay: -0.3s;
}

.sk-flow-dot:nth-child(2) {
animation-delay: -0.15s;
}

@keyframes sk-flow {
0%,
80%,
100% {
transform: scale(0.3);
}

40% {
transform: scale(1);
}
Expand Down
2 changes: 0 additions & 2 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

html {
body {
margin: 0;
padding: 0;
color: var(--el-text-color-primary);

#app {
Expand Down

0 comments on commit 279a93c

Please sign in to comment.