Skip to content

Commit

Permalink
Make service icon rotate (woodpecker-ci#3149)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored and fernandrone committed Feb 1, 2024
1 parent 168d846 commit 2f8474d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/components/repo/pipeline/PipelineStatusIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'text-wp-state-ok-100': pipelineStatusColors[status] === 'green',
'text-wp-state-info-100': pipelineStatusColors[status] === 'blue',
'text-wp-state-warn-100': pipelineStatusColors[status] === 'orange',
'rotate-animation': service && pipelineStatusColors[status] === 'blue',
}"
/>
</div>
Expand Down
13 changes: 13 additions & 0 deletions web/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,16 @@ body,
.code-box-inline {
@apply bg-wp-code-200 rounded-md text-wp-code-text-100;
}

/* TODO(2194): https://tailwindcss.com/docs/animation */
@keyframes rotate-kf {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.rotate-animation {
animation: rotate-kf 2s linear infinite;
}

0 comments on commit 2f8474d

Please sign in to comment.