Skip to content

Commit 40fbbac

Browse files
authored
Add info-button (#123)
- Add a "i" info link to each workload - Update in-depth.html to highlight the current selected workload
1 parent d65b1ab commit 40fbbac

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

JetStream.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,29 @@ a.button {
371371
color: var(--text-color-subtle);
372372
}
373373

374+
.benchmark a.info {
375+
display: inline-block;
376+
text-align: center;
377+
vertical-align: middle;
378+
font-style: italic;
379+
font-weight: bold;
380+
border-radius: 100%;
381+
background-color: var(--benchmark-heading-color);
382+
color: var(--text-color-inverse) !important;
383+
width: 1em;
384+
height: 1em;
385+
user-select: none;
386+
387+
}
388+
389+
.benchmark-running a.info {
390+
background-color: var(--color-primary);
391+
}
392+
393+
.benchmark-done a.info {
394+
background-color: var(--text-color-subtle);
395+
}
396+
374397
.benchmark h3 a,
375398
.benchmark h3 a:link,
376399
.benchmark h3 a:active,
@@ -430,6 +453,13 @@ a.button {
430453
font-weight: 400;
431454
}
432455

456+
dt:target {
457+
background-color: var(--color-secondary);
458+
color: var(--text-color-inverse);
459+
padding-left: 10px;
460+
border-radius: 5px;
461+
}
462+
433463
.plot svg circle {
434464
fill: var(--color-primary);
435465
opacity: 0.8;

JetStreamDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class Driver {
352352
if (isInBrowser) {
353353
text +=
354354
`<div class="benchmark" id="benchmark-${benchmark.name}">
355-
<h3 class="benchmark-name"><a href="in-depth.html#${benchmark.name}">${benchmark.name}</a></h3>
355+
<h3 class="benchmark-name">${benchmark.name} <a class="info" href="in-depth.html#${benchmark.name}">i</a></h3>
356356
<h4 class="score" id="${overallScoreId}">&nbsp;</h4>
357357
<h4 class="plot" id="plot-${benchmark.name}">&nbsp;</h4>
358358
<p>`;

0 commit comments

Comments
 (0)