Deployment history timeline styling (#17524)

This commit is contained in:
Phil Renaud
2023-06-15 14:42:32 -04:00
committed by GitHub
parent a1a5241606
commit 65db030800
3 changed files with 28 additions and 22 deletions

View File

@@ -28,6 +28,7 @@
{{/unless}}
</header>
{{#unless this.isHidden}}
<div class="timeline-container">
<ol class="timeline">
{{#each this.history as |deployment-log|}}
<li class="timeline-object {{if (eq deployment-log.exitCode 1) "error"}}">
@@ -71,5 +72,6 @@
{{/if}}
{{/each}}
</ol>
</div>
{{/unless}}
</div>

View File

@@ -413,33 +413,33 @@
max-width: unset;
}
}
& > ol {
.timeline-container {
max-height: 300px;
overflow-y: auto;
}
& > ol > li {
@for $i from 1 through 50 {
&:nth-child(#{$i}) {
animation-name: historyItemSlide;
animation-duration: 0.2s;
animation-fill-mode: both;
animation-delay: 0.1s + (0.05 * $i);
& > ol > li {
@for $i from 1 through 50 {
&:nth-child(#{$i}) {
animation-name: historyItemSlide;
animation-duration: 0.2s;
animation-fill-mode: both;
animation-delay: 0.1s + (0.05 * $i);
}
&:nth-child(#{$i}) > div {
animation-name: historyItemShine;
animation-duration: 1s;
animation-fill-mode: both;
animation-delay: 0.1s + (0.05 * $i);
}
}
&:nth-child(#{$i}) > div {
animation-name: historyItemShine;
animation-duration: 1s;
animation-fill-mode: both;
animation-delay: 0.1s + (0.05 * $i);
& > div {
gap: 0.5rem;
}
&.error > div {
border: 1px solid $danger;
background: lighten($danger, 45%);
}
}
& > div {
gap: 0.5rem;
}
&.error > div {
border: 1px solid $danger;
background: rgba($danger, 0.1);
}
}
}

View File

@@ -54,6 +54,10 @@
.timeline-object {
margin-bottom: 1em;
&:last-child {
margin-bottom: 0;
}
> .boxed-section {
margin-bottom: 0;
}