widgets/implementations/events/event-image-view/export-progress.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | c8y-export-progress |
| imports | |
| styles |
:host {
display: contents;
}
.c8y-export-progress__cancel {
display: none;
}
/* When the progress sits inside a hovered/focused button, reveal the cancel
icon in place of the ring so the running export can be cancelled. */
:host-context(.btn:hover) .c8y-export-progress__ring,
:host-context(.btn:focus-visible) .c8y-export-progress__ring {
display: none;
}
:host-context(.btn:hover) .c8y-export-progress__cancel,
:host-context(.btn:focus-visible) .c8y-export-progress__cancel {
display: inline-block;
}
@keyframes c8y-export-progress-spin {
to {
transform: rotate(360deg);
}
}
.c8y-export-progress-spin {
animation: c8y-export-progress-spin 1s linear infinite;
transform-origin: center;
}
|
| template | |