Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Desktop Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Desktop Client
Commits
1d8c9c04
Commit
1d8c9c04
authored
Apr 02, 2020
by
Andreas Heimann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added loading shimmer
parent
e45ddeec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
4 deletions
+77
-4
src/assets/css/startup.css
src/assets/css/startup.css
+37
-2
src/assets/css/startup.less
src/assets/css/startup.less
+40
-2
No files found.
src/assets/css/startup.css
View file @
1d8c9c04
...
...
@@ -2,6 +2,8 @@
display
:
grid
;
grid-template-columns
:
1
fr
1
fr
;
grid-gap
:
25px
;
width
:
1114px
;
margin
:
0
auto
;
}
.staff-ads
:empty
{
display
:
none
;
...
...
@@ -46,7 +48,12 @@
opacity
:
0.6
;
}
.staff-ads
.staff-ad.ad-loading
{
opacity
:
0.2
;
background
:
linear-gradient
(
to
right
,
rgba
(
255
,
255
,
255
,
0.1
),
rgba
(
255
,
255
,
255
,
0.2
),
rgba
(
255
,
255
,
255
,
0.1
));
animation-name
:
adLoadingShimmer
;
animation-fill-mode
:
forwards
;
animation-timing-function
:
linear
;
animation-iteration-count
:
infinite
;
animation-duration
:
1s
;
}
.song-row
{
display
:
grid
;
...
...
@@ -55,10 +62,10 @@
}
.song-row
.song-header
{
display
:
grid
;
letter-spacing
:
0.25em
;
grid-template-columns
:
1
fr
auto
;
}
.song-row
.song-header
.row-title
{
letter-spacing
:
0.25em
;
font-size
:
14px
;
font-weight
:
bold
;
text-transform
:
uppercase
;
...
...
@@ -93,6 +100,7 @@
background
:
rgba
(
255
,
255
,
255
,
0.1
);
transition
:
0.2s
ease-in-out
transform
,
0.2s
ease-in-out
box-shadow
;
overflow
:
hidden
;
border-radius
:
6px
;
}
.song-row
.song-list
.song-item
.song-cover
{
background
:
rgba
(
255
,
255
,
255
,
0.1
);
...
...
@@ -153,9 +161,36 @@
.song-row
.song-list
.song-item
:not
(
.song-item-loading
)
:not
(
.song-item-local
)
:hover
.song-cover
.song-charter
{
opacity
:
1
;
}
.song-row
.song-list
.song-item.song-item-loading
{
background
:
linear-gradient
(
to
right
,
rgba
(
255
,
255
,
255
,
0.1
),
rgba
(
255
,
255
,
255
,
0.2
),
rgba
(
255
,
255
,
255
,
0.1
));
animation-name
:
songLoadingShimmer
;
animation-fill-mode
:
forwards
;
animation-timing-function
:
linear
;
animation-iteration-count
:
infinite
;
animation-duration
:
2s
;
}
.song-row
.song-list
.song-item.song-item-loading
.song-cover
{
opacity
:
0
;
}
.song-row
.song-list
.song-item.song-item-local
{
opacity
:
0.6
;
}
.song-row
.song-list
.song-item.song-item-local
:hover
.song-cover
.song-charter
{
opacity
:
1
;
}
@keyframes
adLoadingShimmer
{
from
{
background-position
:
0px
0px
;
}
to
{
background-position
:
544px
0px
;
}
}
@keyframes
songLoadingShimmer
{
from
{
background-position
:
0px
0px
;
}
to
{
background-position
:
173px
0px
;
}
}
src/assets/css/startup.less
View file @
1d8c9c04
...
...
@@ -2,6 +2,8 @@
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 25px;
width: 1114px;
margin: 0 auto;
&:empty {
display: none;
...
...
@@ -49,7 +51,12 @@
}
&.ad-loading {
opacity: 0.2;
background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.2), rgba(255,255,255,0.1));
animation-name: adLoadingShimmer;
animation-fill-mode: forwards;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-duration: 1s;
}
}
}
...
...
@@ -60,10 +67,10 @@
& .song-header {
display: grid;
letter-spacing: 0.25em;
grid-template-columns: 1fr auto;
& .row-title {
letter-spacing: 0.25em;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
...
...
@@ -102,6 +109,7 @@
background: rgba(255,255,255,0.1);
transition: 0.2s ease-in-out transform, 0.2s ease-in-out box-shadow;
overflow: hidden;
border-radius: 6px;
& .song-cover {
background: rgba(255,255,255,0.1);
...
...
@@ -171,6 +179,18 @@
}
}
}
&.song-item-loading {
background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.2), rgba(255,255,255,0.1));
animation-name: songLoadingShimmer;
animation-fill-mode: forwards;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-duration: 2s;
& .song-cover {
opacity: 0;
}
}
&.song-item-local {
opacity: 0.6;
...
...
@@ -184,4 +204,22 @@
}
}
}
}
@keyframes adLoadingShimmer {
from {
background-position: 0px 0px;
}
to {
background-position: 544px 0px;
}
}
@keyframes songLoadingShimmer {
from {
background-position: 0px 0px;
}
to {
background-position: 173px 0px;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment