Skip to content

Commit e39273b

Browse files
authored
CSS fixes for info button (#126)
- improve info button styling - format CSS
1 parent 40fbbac commit e39273b

File tree

1 file changed

+57
-26
lines changed

1 file changed

+57
-26
lines changed

JetStream.css

Lines changed: 57 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@
3434
--text-color-very-subtle: #8E8E93;
3535
--heading-color: #2C98D1;
3636
--link-hover-color: #0086BF;
37-
--button-color-primary: rgb(52,170,220);
37+
--button-color-primary: rgb(52, 170, 220);
3838
--error-text-color: #d24a59;
3939
--benchmark-heading-color: rgb(183, 183, 183);
4040
--benchmark-error-text-color: #ff8686;
4141
--benchmark-done-result-color: #4A4A4A;
4242
}
4343

44-
html, svg text {
44+
html,
45+
svg text {
4546
font-family: "Helvetica Neue", Helvetica, Verdana, sans-serif;
4647
font-size: 62.5%;
4748
font-synthesis: none;
@@ -126,7 +127,7 @@ img {
126127
text-align: center;
127128
}
128129

129-
.summary + .summary {
130+
.summary+.summary {
130131
padding-top: 5px;
131132
margin-top: 5px;
132133
}
@@ -135,7 +136,8 @@ img {
135136
display: none;
136137
}
137138

138-
article, .summary {
139+
article,
140+
.summary {
139141
max-width: 70rem;
140142
margin: 0 auto 1rem;
141143
opacity: 0;
@@ -149,13 +151,19 @@ h1 {
149151
}
150152

151153

152-
h2, h3, h4, h5, h6 {
153-
color: var(--heading-color);
154-
text-align: left;
154+
h2,
155+
h3,
156+
h4,
157+
h5,
158+
h6 {
159+
color: var(--heading-color);
160+
text-align: left;
155161
}
156162

157163

158-
h4, h5, h6 {
164+
h4,
165+
h5,
166+
h6 {
159167
margin-bottom: 0;
160168
}
161169

@@ -165,7 +173,8 @@ p {
165173
margin: 0 0 3rem 0;
166174
}
167175

168-
h5, h6 {
176+
h5,
177+
h6 {
169178
font-size: 1.6rem;
170179
}
171180

@@ -206,7 +215,7 @@ a.button {
206215
text-decoration: none;
207216
font-size: 2rem;
208217
background-color: var(--button-color-primary);
209-
background-image: linear-gradient(180deg, rgba(134,217,255,1) -80%, rgb(52,170,220) 100%);
218+
background-image: linear-gradient(180deg, rgba(134, 217, 255, 1) -80%, rgb(52, 170, 220) 100%);
210219
color: var(--text-color-inverse);
211220
border: 1px solid var(--button-color-primary);
212221
border-radius: 2px;
@@ -255,7 +264,8 @@ a.button {
255264
margin: 0 auto 1rem;
256265
}
257266

258-
.error h2, .error p {
267+
.error h2,
268+
.error p {
259269
color: var(--error-text-color);
260270
margin-bottom: 0;
261271
text-align: center;
@@ -318,24 +328,34 @@ a.button {
318328

319329
}
320330

321-
.benchmark h4, .benchmark .result, .benchmark label, .benchmark .plot {
331+
.benchmark h4,
332+
.benchmark .result,
333+
.benchmark label,
334+
.benchmark .plot {
322335
color: transparent;
323-
background: linear-gradient(160deg, rgba(249,249,249,1) 0%, rgba(238,238,238,1) 100%);
336+
background: linear-gradient(160deg, rgba(249, 249, 249, 1) 0%, rgba(238, 238, 238, 1) 100%);
324337
border-radius: 3px;
325338
}
326339

327340
.benchmark h3 {
328-
color: var(--benchmark-heading-color);
341+
color: var(--benchmark-heading-color);
329342
}
330343

331-
.benchmark-running h4, .benchmark-running .result, .benchmark-running label, .benchmark-running .plot {
344+
.benchmark-running h4,
345+
.benchmark-running .result,
346+
.benchmark-running label,
347+
.benchmark-running .plot {
332348
color: var(--color-secondary);
333349
background-color: var(--color-secondary);
334350
background-image: none;
335351
}
336352

337353

338-
.benchmark-done h3, .benchmark-done h4, .benchmark-done .result, .benchmark-done label, .benchmark-done .plot {
354+
.benchmark-done h3,
355+
.benchmark-done h4,
356+
.benchmark-done .result,
357+
.benchmark-done label,
358+
.benchmark-done .plot {
339359
background-color: transparent;
340360
background-image: none;
341361
-webkit-touch-callout: revert;
@@ -345,7 +365,10 @@ a.button {
345365
user-select: text;
346366
}
347367

348-
.benchmark-error h4, .benchmark-error .result, .benchmark-error label, .benchmark-error .plot {
368+
.benchmark-error h4,
369+
.benchmark-error .result,
370+
.benchmark-error label,
371+
.benchmark-error .plot {
349372
color: var(--benchmark-error-text-color);
350373
background-color: var(--benchmark-error-text-color);
351374
background-image: none;
@@ -373,16 +396,19 @@ a.button {
373396

374397
.benchmark a.info {
375398
display: inline-block;
376-
text-align: center;
377-
vertical-align: middle;
378-
font-style: italic;
379-
font-weight: bold;
399+
width: 1.5rem;
400+
height: 1.5rem;
380401
border-radius: 100%;
381402
background-color: var(--benchmark-heading-color);
382403
color: var(--text-color-inverse) !important;
383-
width: 1em;
384-
height: 1em;
385404
user-select: none;
405+
text-align: center;
406+
vertical-align: middle;
407+
font-style: italic;
408+
font-weight: bold;
409+
font-family: 'Times New Roman', Times, serif;
410+
line-height: 1.6rem;
411+
margin-top: -0.2rem;
386412

387413
}
388414

@@ -469,24 +495,27 @@ dt:target {
469495
from {
470496
opacity: 0;
471497
}
498+
472499
to {
473500
opacity: 1;
474501
}
475502
}
476503

477504
@keyframes scaledown {
478505
from {
479-
transform: scale(1.3,1.3);
506+
transform: scale(1.3, 1.3);
480507
}
508+
481509
to {
482-
transform: scale(1,1);
510+
transform: scale(1, 1);
483511
}
484512
}
485513

486514
@keyframes shine {
487515
0% {
488516
background-position: -1200px center;
489517
}
518+
490519
100% {
491520
background-position: 100vw center;
492521
}
@@ -497,6 +526,7 @@ dt:target {
497526
opacity: 0;
498527
transform: rotateY(-85deg) translateZ(200px);
499528
}
529+
500530
to {
501531
opacity: 1;
502532
transform: rotateY(0deg) translateZ(0px);
@@ -517,7 +547,8 @@ dt:target {
517547
}
518548

519549

520-
article, .summary {
550+
article,
551+
.summary {
521552
padding-top: 10rem;
522553
margin: 0 1rem;
523554
}

0 commit comments

Comments
 (0)