mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-16 19:35:14 +00:00
Make service icon rotate (#3149)
add animation for color blind people [video](https://cloud.obermui.de/s/adpxqpMw6dEgZcC/download/recording_woodpecker-pull-3148.mkv)
This commit is contained in:
parent
5715bd1027
commit
1ee2b8c41c
2 changed files with 14 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue