switch from svg to css animation
This commit is contained in:
parent
e6fd028a6e
commit
63d8db4692
|
@ -26,8 +26,6 @@
|
||||||
@import "app/components/sync-button";
|
@import "app/components/sync-button";
|
||||||
@import "app/components/loading-indicator";
|
@import "app/components/loading-indicator";
|
||||||
|
|
||||||
@import "app/animations/booting-state";
|
|
||||||
|
|
||||||
@import "app/modules/section";
|
@import "app/modules/section";
|
||||||
@import "app/modules/loader";
|
@import "app/modules/loader";
|
||||||
@import "app/modules/tiles";
|
@import "app/modules/tiles";
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
.svg-booting
|
|
||||||
.bubble
|
|
||||||
transform-origin: center center
|
|
||||||
animation: bubbleScale 1.2s infinite linear
|
|
||||||
|
|
||||||
.bubble:nth-of-type(2)
|
|
||||||
animation-delay: 0.35s
|
|
||||||
|
|
||||||
.bubble:nth-of-type(3)
|
|
||||||
animation-delay: 0.7s
|
|
||||||
|
|
||||||
|
|
||||||
@keyframes bubbleScale
|
|
||||||
0%, 80%, 100%
|
|
||||||
transform: scale(0)
|
|
||||||
|
|
||||||
40%
|
|
||||||
transform: scale(1.0)
|
|
|
@ -129,7 +129,11 @@
|
||||||
background-image: inline-image('svg/icon-job-passed.svg')
|
background-image: inline-image('svg/icon-job-passed.svg')
|
||||||
.icon--job.errored
|
.icon--job.errored
|
||||||
background-image: inline-image('svg/icon-job-errored.svg')
|
background-image: inline-image('svg/icon-job-errored.svg')
|
||||||
.icon--job.created
|
.icon--job.started,
|
||||||
|
.icon--job.queued,
|
||||||
|
.icon--job.booting,
|
||||||
|
.icon--job.received,
|
||||||
|
.icon--job.created,
|
||||||
background-image: inline-image('svg/icon-job-started.svg')
|
background-image: inline-image('svg/icon-job-started.svg')
|
||||||
.icon--job.canceled
|
.icon--job.canceled
|
||||||
background-image: inline-image('svg/icon-job-canceled.svg')
|
background-image: inline-image('svg/icon-job-canceled.svg')
|
||||||
|
@ -203,3 +207,29 @@
|
||||||
|
|
||||||
.icon-flag
|
.icon-flag
|
||||||
background-image: inline-image('svg/notice-flag.svg')
|
background-image: inline-image('svg/notice-flag.svg')
|
||||||
|
|
||||||
|
|
||||||
|
.icon-receiving
|
||||||
|
margin: 0.3rem 0.5rem;
|
||||||
|
display: inline-block;
|
||||||
|
i
|
||||||
|
width: 4px
|
||||||
|
height: 4px
|
||||||
|
border-radius: 50%
|
||||||
|
display: inline-block
|
||||||
|
background-color: $start-bg-color
|
||||||
|
transform-origin: center center
|
||||||
|
animation: bubbleScale 1.2s infinite linear
|
||||||
|
i:nth-of-type(2)
|
||||||
|
animation-delay: 0.35s
|
||||||
|
i:nth-of-type(3)
|
||||||
|
animation-delay: 0.7s
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes bubbleScale
|
||||||
|
0%, 80%, 100%
|
||||||
|
transform: scale(0)
|
||||||
|
|
||||||
|
40%
|
||||||
|
transform: scale(1.0)
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{{#link-to "job" repo job}}
|
{{#link-to "job" repo job}}
|
||||||
<div class="tile-status tile-status--job">
|
<div class="tile-status tile-status--job">
|
||||||
{{#if isAnimating}}
|
{{#if isAnimating}}
|
||||||
<svg class="svg-booting" version="1.1" width="30" height="12" viewBox="0 0 10 10" preserveAspectRatio="xMinYMid meet">
|
<span class="icon-receiving"><i></i><i></i><i></i></span>
|
||||||
<g>
|
|
||||||
<circle class="bubble" fill="#CDBC2C" cx="7.686" cy="7.369" r="2"/>
|
|
||||||
<circle class="bubble" fill="#D6C826" cx="13.143" cy="7.369" r="2"/>
|
|
||||||
<circle class="bubble" fill="#D6C826" cx="2.232" cy="7.369" r="2"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="icon icon--job {{job.state}}"></span>
|
<span class="icon icon--job {{job.state}}"></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user