Skip to content

Commit

Permalink
feat: 适配掘金新的骨架屏
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 10, 2023
1 parent 18a192d commit 885ff0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2023-02-10T09:47:22.758Z"
"x-generation-date": "2023-02-10T13:24:41.880Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down
13 changes: 7 additions & 6 deletions frontend/components/ArticlesList/Ui/Skeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@

<style scoped>
.skeleton_container {
@apply px-[1.67rem] py-[0.8rem]
@apply px-[1.67rem] py-[1.75rem]
@apply dark:bg-jj_bg_gray
}
.skeleton {
@apply align-middle relative inline-block overflow-hidden rounded-[4px] mx-[5px] my-[7px] h-[1.35rem]
@apply align-middle relative inline-block overflow-hidden my-[0.75rem] h-[1.25rem]
}
.skeleton div {
@apply w-full h-full bg-jj-skeleton-normal rounded-[2px]
@apply w-full h-full bg-jj-skeleton-normal rounded-[1px]
@apply dark:bg-jj-skeleton-background-normal
}
.skeleton::after {
animation: shan .75s ease 0s infinite;
animation: shan .6s linear 0s infinite;
background: linear-gradient(to left,
rgba(255, 255, 255, 0) 0,
rgba(255, 255, 255, 0.3) 50%,
rgba(255, 255, 255, .3) 50%,
rgba(255, 255, 255, 0) 100%);
@apply content-none absolute top-0 w-7/10 h-full -skew-45
@apply content-none absolute top-0 w-full h-full -skew-45
}
@keyframes shan {
0% {
Expand Down
2 changes: 1 addition & 1 deletion frontend/composables/useThrottle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default (fn?: () => any, wait = 1000) => {
export default (fn?: () => any, wait = 1500) => {
let timer: NodeJS.Timeout | null = null
return () => {
if (!timer) {
Expand Down

0 comments on commit 885ff0a

Please sign in to comment.