-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ffd12a
commit 86e60df
Showing
10 changed files
with
376 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{% macro css() %} | ||
<!-- voila skeleton --> | ||
<style> | ||
.voila-skeleton-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.voila-skeleton-post { | ||
width: 220px; | ||
height: 80px; | ||
} | ||
.voila-skeleton-post .voila-skeleton-avatar { | ||
float: left; | ||
width: 52px; | ||
height: 52px; | ||
background-color: #ccc; | ||
border-radius: 25%; | ||
margin: 8px; | ||
background-image: linear-gradient(90deg, #ddd 0px, #e8e8e8 40px, #ddd 80px); | ||
background-size: 600px; | ||
animation: shine-avatar 1.6s infinite linear; | ||
} | ||
.voila-skeleton-post .voila-skeleton-line { | ||
float: left; | ||
width: 140px; | ||
height: 16px; | ||
margin-top: 12px; | ||
border-radius: 7px; | ||
background-image: linear-gradient(90deg, #ddd 0px, #e8e8e8 40px, #ddd 80px); | ||
background-size: 600px; | ||
animation: shine-lines 1.6s infinite linear; | ||
} | ||
.voila-skeleton-post .voila-skeleton-avatar + .voila-skeleton-line { | ||
margin-top: 11px; | ||
width: 100px; | ||
} | ||
.voila-skeleton-post .voila-skeleton-line ~ .voila-skeleton-line { | ||
background-color: #ddd; | ||
} | ||
@keyframes shine-lines { | ||
0% { | ||
background-position: -100px; | ||
} | ||
40%, 100% { | ||
background-position: 140px; | ||
} | ||
} | ||
@keyframes shine-avatar { | ||
0% { | ||
background-position: -32px; | ||
} | ||
40%, 100% { | ||
background-position: 208px; | ||
} | ||
} | ||
</style> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
.voila-spinner-color2{ | ||
fill:#f8e14b; | ||
} | ||
} | ||
</style> | ||
{% endmacro %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.