Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit c529cae

Browse files
committed
refine error color in grid
Fixes #912
1 parent ceb17a0 commit c529cae

File tree

1 file changed

+16
-9
lines changed
  • app/plugins/modules/activation-visualizations/web/css

1 file changed

+16
-9
lines changed

app/plugins/modules/activation-visualizations/web/css/table.css

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
flex: 1;
33
display: flex;
44
flex-direction: column;
5+
6+
--color-latency-0: #2166ac;
7+
--color-latency-1: #67a9cf;
8+
--color-latency-2: hsla(201, 51%, 78%, 1); /* #d1e5f0 with lightness reduced from 88% to 78% */
9+
--color-latency-3: #fddbc7;
10+
--color-latency-4: #ef8a62;
11+
--color-latency-5: #b2182b;
512
}
613

714
#sidecar .sidecar-header .activation-viz-plugin .kind {
@@ -292,7 +299,7 @@
292299
}
293300
.activation-viz-plugin .data-table td.cell-stats .stat-bar {
294301
position: absolute;
295-
background: #2166ac;
302+
background: var(--color-latency-0);
296303
height: 1.25em; /* matches activation list height: .log-lines .log-line .log-line-bar in ui.css */
297304
transition: all 150ms ease-in-out, outline 300ms ease-in-out;
298305
}
@@ -372,13 +379,13 @@
372379

373380
/* grid cell colors */
374381
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied.latency-0 .grid-cell-content {
375-
background: #2166ac;
382+
background: var(--color-latency-0);
376383
}
377384
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied.latency-1 .grid-cell-content {
378-
background: #67a9cf;
385+
background: var(--color-latency-1);
379386
}
380387
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied.latency-2 .grid-cell-content {
381-
background: hsla(201, 51%, 78%, 1); /* #d1e5f0 with lightness reduced from 88% to 78% */
388+
background: var(--color-latency-2);
382389
}
383390
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied .grid-cell-content span {
384391
/* increase contrast on hover; see shell issue #875 */
@@ -391,13 +398,13 @@
391398
color: black;
392399
}
393400
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied.latency-3 .grid-cell-content {
394-
background: #fddbc7;
401+
background: var(--color-latency-3);
395402
}
396403
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied.latency-4 .grid-cell-content {
397-
background: #ef8a62;
404+
background: var(--color-latency-4);
398405
}
399406
.activation-viz-plugin .cell-container[color-by="duration"] .grid-cell-occupied.latency-5 .grid-cell-content {
400-
background: #b2182b;
407+
background: var(--color-latency-5);
401408
}
402409

403410
.activation-viz-plugin .data-table .oops {
@@ -672,8 +679,8 @@
672679
left: 0;
673680
width: 100%;
674681
height: 100%;
675-
background-image: repeating-linear-gradient(-45deg, transparent, transparent 10%, rgba(255,255,255,.5) 10%, rgba(255,255,255,.5) 15%), repeating-linear-gradient(45deg, transparent, transparent 10%, rgba(255,255,255,.5) 10%, rgba(255,255,255,.5) 21%);
676-
background-color: #b15928;
682+
background-image: repeating-linear-gradient(-45deg, transparent, transparent 10%, hsla(353, 76%, 90%, 0.75) 10%, hsla(353, 76%, 90%, 0.75) 15%), repeating-linear-gradient(45deg, transparent, transparent 10%, hsla(353, 76%, 90%, 0.75) 10%, hsla(353, 76%, 90%, 0.75) 21%);
683+
background-color: var(--color-latency-5);
677684
}
678685

679686
.activation-viz-plugin iframe {

0 commit comments

Comments
 (0)