monitoring-jekyll-theme 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,20 +25,25 @@ body {
25
25
  font-family: PublicSans, sans-serif;
26
26
  color: #232323;
27
27
  background: #ac7a36;
28
- background: rgba(172,41,32,0.05);
28
+ background: rgba(172, 41, 32, 0.05);
29
29
  }
30
30
 
31
31
  header {
32
+ margin-bottom: -1.5em !important;
32
33
  color: #fefefe;
34
+ border-bottom: 17px solid rgb(37, 2, 0);
33
35
  background: #333;
36
+ background: linear-gradient(to right, rgb(68, 31, 29), rgb(37, 2, 0));
34
37
  }
35
38
 
36
- header a{
37
- color: currentColor;
39
+ .wrapper {
40
+ margin: auto;
41
+ padding: 0 5vw 0.5em;
38
42
  }
39
43
 
40
- .wrapper {
44
+ .wrapper:not(header) {
41
45
  padding: 1.5em;
46
+ max-width: 75em;
42
47
  }
43
48
 
44
49
  body, .article {
@@ -46,19 +51,27 @@ body, .article {
46
51
  line-height: 1.8125rem;
47
52
  font-size: 1rem;
48
53
  }
54
+
55
+ /*------------------
56
+ TYPOGRAPHY
57
+ ------------------*/
58
+
49
59
  h1, .h1 {
50
60
  margin-top: 1.8125rem;
51
61
  margin-bottom: 3.625rem;
52
62
  line-height: 5.4375rem;
53
63
  font-size: 5.1875rem;
54
64
  }
65
+
55
66
  h2, .h2 {
56
67
  margin-top: 1.8125rem;
57
68
  margin-bottom: 1.8125rem;
58
69
  line-height: 3.625rem;
59
70
  font-family: Optiker, sans-serif;
60
71
  font-size: 3rem;
72
+ ;
61
73
  }
74
+
62
75
  h2:not(:first-of-type):before {
63
76
  content: '';
64
77
  display: block;
@@ -68,23 +81,29 @@ h2:not(:first-of-type):before {
68
81
  background: #555;
69
82
  }
70
83
 
71
- h2 + p,
84
+ h2 + p, h3 + p {
85
+ margin-top: -2.5rem;
86
+ margin-bottom: 1em;
87
+ line-height: 1.2;
88
+ font-size: 0.85em;
89
+ }
90
+
72
91
  h3 + p {
73
92
  margin-top: -1.8125rem;
74
93
  }
75
94
 
76
- h2 small,
77
- h3 small {
95
+ h2 small, h3 small {
78
96
  font-family: PublicSans, sans-serif;
79
97
  }
80
98
 
81
- h3, .h3 {
99
+ header h1, h3, .h3 {
82
100
  margin-top: 1.8125rem;
83
101
  margin-bottom: 1.8125rem;
84
102
  line-height: 1.8125rem;
85
103
  font-family: Optiker, sans-serif;
86
104
  font-size: 1.75rem;
87
105
  }
106
+
88
107
  h4, .h4 {
89
108
  margin-top: 1.8125rem;
90
109
  margin-bottom: 0;
@@ -92,6 +111,16 @@ h4, .h4 {
92
111
  font-size: 1rem;
93
112
  }
94
113
 
114
+ header h1, header p {
115
+ display: flex;
116
+ align-content: center;
117
+ margin: 0;
118
+ }
119
+
120
+ header a {
121
+ color: currentColor;
122
+ }
123
+
95
124
  p, ul, ol, pre, table, blockquote {
96
125
  margin-top: 0;
97
126
  margin-bottom: 1.5rem;
@@ -101,27 +130,221 @@ small {
101
130
  font-size: 55%;
102
131
  }
103
132
 
133
+ a {
134
+ color: currentColor;
135
+ }
136
+
137
+ .center {
138
+ margin: auto;
139
+ text-align: center;
140
+ }
104
141
 
105
- {{/* #004c6d */}}
106
- {{/* #346888 */}}
107
- {{/* #5886a5 */}}
108
- {{/* #7aa6c2 */}}
109
- {{/* #9dc6e0 */}}
110
- {{/* #c1e7ff */}}
142
+ .list-actions h3 {
143
+ margin-top: 1.5em;
144
+ margin-bottom: -1em;
145
+ }
111
146
 
112
- a {
113
- color: #333;
147
+ .list-actions ol, .list-actions ul {
148
+ margin: 2rem 0;
149
+ padding: 0;
150
+ }
151
+
152
+ .list-actions-grid ol, .list-actions-grid ul {
153
+ display: grid;
154
+ grid-template-columns: repeat(3, minmax(100px, 1fr));
155
+ grid-gap: 0 1em;
156
+ }
157
+
158
+ .list-actions ol li, .list-actions ul li {
159
+ position: relative;
160
+ display: flex;
161
+ justify-content: space-between;
162
+ box-sizing: border-box;
163
+ margin-top: -1px;
164
+ margin-bottom: 0;
165
+ padding: 1em;
166
+ list-style: none;
167
+ counter-increment: index;
168
+ border: 1px solid rgba(0, 0, 0, 0.5);
169
+ background: #fefefe;
170
+ }
171
+
172
+ .list-actions ol li {
173
+ display: flex;
174
+ align-items: center;
175
+ padding-left: 3.5em;
176
+ line-height: 1.3;
177
+ word-break: break-all;
178
+ }
179
+
180
+ .list-actions ol li > *, .list-actions ul li > * {
181
+ display: flex;
182
+ align-items: center;
183
+ flex: 0 1 auto;
184
+ margin: -1rem -1rem -1rem 0rem;
185
+ padding: 1em 2em 1em 1em;
186
+ }
187
+
188
+ .list-actions ol li > *:first-child, .list-actions ul li > *:first-child {
189
+ position: relative;
190
+ overflow: scroll;
191
+ flex-grow: 999;
192
+ white-space: nowrap;
193
+ }
194
+
195
+ .list-actions ol li > *:last-child, .list-actions ul li > *:last-child {
196
+ padding-right: 1em;
197
+ }
198
+
199
+ .list-actions-title ol li, .list-actions-title ul li {
200
+ margin-top: 6em;
201
+ }
202
+
203
+ .list-actions ol li h4, .list-actions ul li h4 {
204
+ position: absolute;
205
+ top: -1.5em;
206
+ left: 0;
207
+ padding: 0.2em 0.8em;
208
+ width: 100%;
209
+ font-size: 1.2em;
210
+ color: #fefefe;
211
+ background: #333;
212
+ }
213
+
214
+ .list-actions ol li b, .list-actions ul li b {
215
+ justify-content: center;
216
+ min-width: 6rem;
217
+ max-width: 15rem;
218
+ text-align: right;
219
+ color: #fefefe;
220
+ background: #333;
221
+ }
222
+
223
+ .list-actions ul .pointseco {
224
+ min-width: 3rem !important;
225
+ max-width: 4rem !important;
226
+ }
227
+
228
+ .list-actions-table ul {
229
+ position: relative;
230
+ margin-top: 1.8rem;
231
+ }
232
+
233
+ .list-actions-table ul::after {
234
+ position: absolute;
235
+ content: 'Points';
236
+ top: calc(-1.7rem - 1px);
237
+ right: 0;
238
+ display: flex;
239
+ align-items: center;
240
+ justify-content: center;
241
+ min-width: calc(5rem - 1px) !important;
242
+ max-width: 4rem !important;
243
+ height: 1.7em;
244
+ text-align: center;
245
+ color: #fefefe;
246
+ border: 1px solid #555;
247
+ border-bottom: none;
248
+ background: #22961e;
249
+ }
250
+
251
+ .list-actions-title ul li::before {
252
+ position: absolute;
253
+ content: attr(data-title);
254
+ top: -3.9rem;
255
+ left: -1px;
256
+ padding: 0.6em;
257
+ width: calc(100% - 1.2em);
258
+ font-size: 1.25em;
259
+ color: #fefefe;
260
+ border: 1px solid rgba(0, 0, 0, 0.5);
261
+ background: #333;
262
+ }
263
+
264
+ .list-actions ol li::before {
265
+ position: absolute;
266
+ content: counters(index, '.', decimal);
267
+ top: 50%;
268
+ left: 0.5em;
269
+ align-self: flex-start;
270
+ padding-right: 12px;
271
+ min-width: 1.5em;
272
+ font-size: 1.5em;
273
+ font-weight: bold;
274
+ transform: translateY(-50%);
275
+ text-align: center;
276
+ color: currentColor;
277
+
278
+ font-variant-numeric: tabular-nums;
279
+ }
280
+
281
+ .grid:not(:nth-last-child(-n+3)) ul li {
282
+ padding: 0.3em 0 0.3em 1em;
283
+ max-width: 95%;
284
+ list-style: none;
285
+ border-left: 3px solid #333;
286
+ background: rgba(0, 0, 0, 0.1);
287
+ }
288
+
289
+ .progressive-web-app {
290
+ order: 1;
291
+ }
292
+
293
+ .performance {
294
+ order: 2;
295
+ }
296
+
297
+ .best-practices {
298
+ order: 3;
299
+ }
300
+
301
+ .accessibility {
302
+ order: 4;
303
+ }
304
+
305
+ .list-actions ul li.progressive-web-app ~ .progressive-web-app,
306
+ .list-actions ul li.performance ~ .performance,
307
+ .list-actions ul li.best-practices ~ .best-practices,
308
+ .list-actions ul li.accessibility ~ .accessibility,
309
+ .list-actions ul li.seo ~ .seo,
310
+ .list-actions ul li.pwa ~ .pwa {
311
+ margin-top: -1px;
312
+ }
313
+
314
+ .list-actions ul li.progressive-web-app ~ .progressive-web-app::before,
315
+ .list-actions ul li.performance ~ .performance::before,
316
+ .list-actions ul li.best-practices ~ .best-practices::before,
317
+ .list-actions ul li.accessibility ~ .accessibility::before,
318
+ .list-actions ul li.seo ~ .seo::before,
319
+ .list-actions ul li.pwa ~ .pwa::before {
320
+ display: none;
114
321
  }
115
322
 
116
323
  .table {
117
324
  display: flex;
325
+ overflow-x: auto;
118
326
  flex-direction: column-reverse;
119
327
  }
120
328
 
329
+ /*------------------
330
+ BLOCKS
331
+ ------------------*/
332
+
333
+ .block_action {
334
+ margin: 1.5em -1.5rem;
335
+ padding: 0.5em 1.5em;
336
+ color: #fefefe;
337
+ background: #333;
338
+ }
339
+
340
+ /*------------------
341
+ GRID
342
+ ------------------*/
343
+
121
344
  .grid {
122
345
  display: flex;
123
346
  flex-wrap: wrap;
124
- margin: 0 -6px 0;
347
+ margin: 0;
125
348
  }
126
349
 
127
350
  .grid:not(:nth-last-child(-n+3)) {
@@ -132,6 +355,44 @@ a {
132
355
  flex: 1 1 auto;
133
356
  }
134
357
 
358
+ .grid-score {
359
+ margin: 2em 0 1em;
360
+ display: grid;
361
+ box-sizing: border-box;
362
+ grid-template-columns: repeat(50,1fr);
363
+ grid-auto-flow: row dense;
364
+ }
365
+
366
+ .grid-score b {
367
+ display: flex;
368
+ text-align: center;
369
+ padding: 1em;
370
+ border: 1px solid;
371
+ justify-content: center;
372
+ }
373
+
374
+ .grid-score span {
375
+ position: absolute;
376
+ z-index: 10;
377
+ bottom: 100%;
378
+ left: 50%;
379
+ visibility: hidden;
380
+ padding: 0.1em 0.3em;
381
+ font-size: 0.85em;
382
+ transform: translateX(-50%);
383
+ border-radius: 2px;
384
+ background: #fff;
385
+ box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
386
+ }
387
+
388
+ .grid-score div:hover span {
389
+ visibility: visible;
390
+ }
391
+
392
+ /*------------------
393
+ FLEX
394
+ ------------------*/
395
+
135
396
  .flex {
136
397
  display: flex;
137
398
  flex-wrap: wrap;
@@ -149,19 +410,85 @@ a {
149
410
  display: grid;
150
411
  grid-template-columns: repeat(10, minmax(100px, 150px));
151
412
  }
413
+
152
414
  .flex > * {
153
415
  max-width: calc(50% - 2rem);
154
416
  }
155
417
  }
156
418
 
419
+ /* flex-list color */
420
+ .flex-list-color {
421
+ clear: both;
422
+ overflow: hidden;
423
+ margin: 0 0 1.5em;
424
+ padding: 2.5rem 0 1rem;
425
+ }
426
+
427
+ .flex-list-color br {
428
+ clear: both;
429
+ width: 100%;
430
+ }
431
+
432
+ .flex-list-color > * {
433
+ position: relative;
434
+ float: left;
435
+ height: 2rem;
436
+ }
437
+
438
+ .flex-list-color span {
439
+ position: absolute;
440
+ z-index: 10;
441
+ bottom: 100%;
442
+ left: 50%;
443
+ visibility: hidden;
444
+ padding: 0.1em 0.3em;
445
+ transform: translateX(-50%);
446
+ border-radius: 2px;
447
+ background: #fff;
448
+ box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
449
+ }
450
+
451
+ .flex-list-color div:hover span {
452
+ visibility: visible;
453
+ }
454
+
455
+ /* flex-list */
456
+ .flex-list {
457
+ padding: 0;
458
+ }
459
+
460
+ .flex-list > li, .flex-list > div {
461
+ display: flex;
462
+ clear: both;
463
+ margin: 0 0 0.3em;
464
+ /* justify-content: space-between; */
465
+ width: 100%;
466
+ }
467
+
468
+ .flex-list > li a .flex-list > div a {
469
+ display: block;
470
+ overflow: hidden;
471
+ max-width: 50%;
472
+ white-space: nowrap;
473
+ text-overflow: ellipsis;
474
+ }
475
+
476
+ .flex-list > li > *, .flex-list > div > * {
477
+ flex: 1;
478
+ }
479
+
480
+ .flex-list > li > *:first-child, .flex-list > div > *:first-child {
481
+ padding: 0 1.5em 0 0;
482
+ }
483
+
157
484
  /*------------------
158
485
  BOX
159
486
  ------------------*/
160
487
 
161
488
  .box {
162
489
  position: relative;
163
- overflow: hidden;
164
490
  display: flex;
491
+ overflow: hidden;
165
492
  align-items: center;
166
493
  flex-direction: column;
167
494
  justify-content: start;
@@ -169,15 +496,16 @@ a {
169
496
  padding: 0.5rem 0.5rem 1rem;
170
497
  min-width: 3rem;
171
498
  line-height: 1;
172
- font-weight: bold;
173
499
  min-height: 3rem;
500
+ font-weight: bold;
174
501
  text-align: center;
175
502
  color: #fff;
176
503
  border-radius: 4px;
177
504
  background: #fff;
505
+ box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
178
506
  text-shadow: 1px 1px #000;
179
- box-shadow: 0 0 1px 1px rgba(0,0,0,0.1);
180
507
  }
508
+
181
509
  .box i {
182
510
  flex: 0 1 1.1rem;
183
511
  font-size: 1.2rem;
@@ -190,49 +518,53 @@ a {
190
518
  padding-bottom: 0.5rem;
191
519
  line-height: 1;
192
520
  min-height: 1rem;
193
- word-break: break-all;
194
521
  text-transform: capitalize;
522
+ word-break: break-all;
523
+
195
524
  font-variant-numeric: tabular-nums;
196
525
  }
197
526
 
527
+ /*------------------
528
+ META
529
+ ------------------*/
530
+
198
531
  .score-difference {
199
532
  position: absolute;
200
- width: 100%;
201
- height: calc(100% - 8px);
533
+ z-index: 0;
202
534
  top: 0;
203
535
  bottom: 0;
204
- z-index: 0;
205
-
536
+ width: 100%;
537
+ height: calc(100% - 8px);
206
538
  }
207
539
 
208
540
  .score-up {
209
- background: rgba(255, 75, 75,0.15);
210
- box-shadow: inset 0 0 4px rgba(255, 75, 75,0.45);
541
+ background: rgba(255, 75, 75, 0.15);
542
+ box-shadow: inset 0 0 4px rgba(255, 75, 75, 0.45);
211
543
  }
212
544
 
213
545
  .score-down {
214
- background: rgba(125,255,100,0.15);
215
- box-shadow: inset 0 0 4px rgba(125,255,100,0.75);
546
+ background: rgba(125, 255, 100, 0.15);
547
+ box-shadow: inset 0 0 4px rgba(125, 255, 100, 0.75);
216
548
  }
217
549
 
218
550
  .score {
219
551
  color: #004c6d;
220
552
  background: #fff;
221
- text-shadow: none;
222
553
  /*letter-spacing: -4px;*/
223
- box-shadow: inset 0 0 2px rgba(0,0,0,0.1),0 0 1px 1px rgba(0,0,0,0.1);
554
+ box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1), 0 0 1px 1px rgba(0, 0, 0, 0.1);
555
+ text-shadow: none;
224
556
  }
225
557
 
226
558
  .date {
227
559
  color: #fff;
228
560
  background: #d3465c;
561
+ box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.2);
229
562
  text-shadow: none;
230
- box-shadow: inset 0 0 5px 0px rgba(0,0,0,0.2);
231
563
  }
232
564
 
233
565
  .title {
234
- letter-spacing: -1px;
235
566
  font-weight: bold;
567
+ letter-spacing: -1px;
236
568
  }
237
569
 
238
570
  .number {
@@ -244,9 +576,9 @@ a {
244
576
 
245
577
  .date p {
246
578
  display: flex;
247
- margin: 0 auto;
248
- flex: 1;
249
579
  align-items: center;
580
+ flex: 1;
581
+ margin: 0 auto;
250
582
  }
251
583
 
252
584
  .ct-chart {
@@ -263,52 +595,58 @@ a {
263
595
  max-width: 100%;
264
596
  }
265
597
 
266
- .flex-list {
267
- padding: 0;
598
+ /*------------------
599
+ META COLOR
600
+ ------------------*/
601
+
602
+ .pointseco {
603
+ color: #fefefe;
604
+ background: #22961e !important;
268
605
  }
269
606
 
270
- .flex-list > li,
271
- .flex-list > div {
272
- display: flex;
273
- clear: both;
274
- margin: 0 0 0.3em;
275
- /* justify-content: space-between; */
276
- width: 100%;
607
+ .top path {
608
+ stroke: #22961e;
277
609
  }
278
610
 
279
- .flex-list > li a
280
- .flex-list > div a {
281
- text-overflow: ellipsis;
282
- max-width: 50%;
283
- display: block;
284
- white-space: nowrap;
285
- overflow: hidden;
611
+ .verygood path {
612
+ stroke: #30d42a;
286
613
  }
287
614
 
288
- .flex-list > li > *,
289
- .flex-list > div > * {
290
- flex: 1;
615
+ .good path {
616
+ stroke: #346888;
291
617
  }
292
618
 
293
- .flex-list > li > *:first-child,
294
- .flex-list > div > *:first-child {
295
- padding: 0 1.5em 0 0;
619
+ .bad path {
620
+ stroke: #d68100;
296
621
  }
297
622
 
623
+ .verybad path {
624
+ stroke: #b00202;
625
+ }
626
+
627
+ /*------------------
628
+ SEO
629
+ ------------------*/
630
+
298
631
  .screamingfrog li span {
299
632
  float: right;
300
- padding: 0em 0.4em;
633
+ align-self: start;
301
634
  flex: 0 1 auto;
635
+ padding: 0 0.4em;
302
636
  color: #fff;
303
637
  background: #333;
638
+
304
639
  font-variant-numeric: tabular-nums;
305
640
  }
306
641
 
307
-
308
642
  .seocli ul li:first-child {
309
643
  display: none;
310
644
  }
311
645
 
646
+ /*------------------
647
+ AXE
648
+ ------------------*/
649
+
312
650
  .axe {
313
651
  margin: 0;
314
652
  padding-left: 1em;
@@ -332,11 +670,13 @@ a {
332
670
  }
333
671
 
334
672
  .axe ul {
335
- list-style: none;
336
673
  padding: 0;
674
+ list-style: none;
337
675
  }
338
676
 
339
- /* --------------- styles for tabs -----------------------*/
677
+ /*------------------
678
+ TABS
679
+ ------------------*/
340
680
 
341
681
  .invisible {
342
682
  position: absolute;
@@ -353,6 +693,7 @@ a {
353
693
  margin: 0;
354
694
  padding: 0;
355
695
  }
696
+
356
697
  .tabs-tabs__item {
357
698
  display: inline-block;
358
699
  }
@@ -361,25 +702,24 @@ a {
361
702
  display: inline-block;
362
703
  margin-top: 0.5em;
363
704
  padding: 0.4em 0.5em 0.3em;
364
- text-transform: uppercase;
365
705
  cursor: pointer;
366
706
  text-transform: uppercase;
367
707
  color: #fefefe;
368
- background: rgba(0,0,0,0.65);
369
708
  border-radius: 3px 3px 0 0;
709
+ background: rgba(0, 0, 0, 0.65);
370
710
  }
371
711
 
372
712
  [aria-selected='true'].tabs-tabs__link {
373
713
  padding-top: 0.6em;
374
714
  color: #fff;
375
- background: rgba(0,0,0,0.8);
715
+ background: rgba(0, 0, 0, 0.8);
376
716
  }
377
717
 
378
718
  .tabs-tabs__content {
379
719
  padding: 1em;
380
- background: rgba(0,0,0,0.08);
381
- border: 1px solid rgba(0,0,0,0.1);
382
- box-shadow: inset 0 0 4px rgba(0,0,0,0.1),;
720
+ border: 1px solid rgba(0, 0, 0, 0.1);
721
+ background: rgba(0, 0, 0, 0.08);
722
+ box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1), ;
383
723
  }
384
724
 
385
725
  .js-tabcontent h3 {
@@ -390,8 +730,11 @@ a {
390
730
  display: none;
391
731
  }
392
732
 
393
- .js-to_expand[aria-hidden=true],
394
- .js-to_expand[data-hidden=true] {
733
+ /*------------------
734
+ ACCORDEON
735
+ ------------------*/
736
+
737
+ .js-to_expand[aria-hidden=true], .js-to_expand[data-hidden=true] {
395
738
  display: none;
396
739
  }
397
740
 
@@ -400,50 +743,280 @@ a {
400
743
  }
401
744
 
402
745
  .js-expandmore-button {
403
- background: none;
404
746
  font: inherit;
747
+ cursor: pointer;
405
748
  color: inherit;
406
749
  border: none;
407
- cursor: pointer;
750
+ background: none;
408
751
  }
409
752
 
410
753
  /* optional */
411
754
  .animated-expandmore__symbol:before {
412
- content : '+';
755
+ content: '+';
413
756
  margin-right: 0.5em;
414
757
  padding: 0 0.2em;
415
- color: #fefefe;
416
- background: #333;
417
758
  line-height: 0;
418
759
  font-family: monospace;
760
+ color: #fefefe;
761
+ background: #333;
419
762
  }
420
763
 
421
764
  .is-opened .animated-expandmore__symbol:before {
422
- content : '-';
765
+ content: '-';
423
766
  }
424
767
 
425
- .js-expandmore-button[aria-expanded=true] > .expandmore__symbol:before,
426
- .js-expandmore-button[data-expanded=true] > .expandmore__symbol:before {
427
- content : '− ';
768
+ .js-expandmore-button[aria-expanded=true] > .expandmore__symbol:before, .js-expandmore-button[data-expanded=true] > .expandmore__symbol:before {
769
+ content: '− ';
428
770
  }
429
771
 
430
772
  /* This is the opened state */
431
773
  .animated-expandmore__to_expand {
432
774
  display: block;
433
- overflow: hidden;
434
- opacity: 1;
435
- transition: visibility 0s ease, max-height 2s ease, opacity 2s ease ;
436
- max-height: 80em;
437
775
  /* magic number for max-height = enough height */
438
776
  visibility: visible;
777
+ overflow: hidden;
778
+ max-height: 280em;
779
+ transition: visibility 0s ease, max-height 1.2s ease, opacity 1s ease;
439
780
  transition-delay: 0s;
440
- }
781
+ opacity: 1;
782
+ }
441
783
 
442
- /* This is the hidden state */
443
- [data-hidden=true].animated-expandmore__to_expand {
784
+ /* This is the hidden state */
785
+ [data-hidden=true].animated-expandmore__to_expand {
444
786
  display: block;
787
+ visibility: hidden;
445
788
  max-height: 0;
789
+ transition-delay: 1.5s, 0s, 0s;
446
790
  opacity: 0;
447
- visibility: hidden;
448
- transition-delay: 2s, 0s, 0s;
449
- }
791
+ }
792
+
793
+ .progress {
794
+ display: grid;
795
+ grid-template-columns: 20% 1fr;
796
+ align-items: stretch;
797
+ margin: 0;
798
+ padding: 1rem 1.5rem;
799
+ background: #fff;
800
+ }
801
+
802
+ .progress ~ .progress {
803
+ padding-top: 0;
804
+ }
805
+
806
+ .progress > * {
807
+ display: flex;
808
+ align-items: center;
809
+ margin: 0;
810
+ padding: 1em 0;
811
+ max-width: 100%;
812
+ min-height: 7em;
813
+ border: 1px solid rgba(0, 0, 0, 0.3);
814
+ box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
815
+ }
816
+
817
+ .progress > div:first-child {
818
+ display: flex;
819
+ align-items: center;
820
+ flex: 0 1 20%;
821
+ justify-content: center;
822
+ text-align: center;
823
+ color: #fff;
824
+ background: #333;
825
+ box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.35);
826
+ }
827
+
828
+ .progress h4 {
829
+ margin: 0;
830
+ font-family: Optiker, sans-serif;
831
+ font-size: 1.5rem;
832
+ word-break: break-all;
833
+ }
834
+
835
+ /*-------------------------
836
+ CIRCULAR PROGRESS BAR
837
+ -------------------------*/
838
+
839
+ .progress-circular {
840
+ font-size: 0.60em;
841
+ }
842
+
843
+ .progress-circular ul {
844
+ display: flex;
845
+ grid-template-columns: repeat(6, minmax(9em, 11rem));
846
+ grid-gap: 0.2em 1.5em;
847
+ justify-content: start;
848
+ margin: 0 auto 1.5em;
849
+ padding: 1.5em 1.5em 3em;
850
+ }
851
+
852
+ .progress-circular ul > li {
853
+ position: relative;
854
+ display: inline-block;
855
+ font-weight: 100;
856
+ text-align: center;
857
+ }
858
+
859
+ .progress-circular ul > li:before {
860
+ position: absolute;
861
+ content: attr(data-name);
862
+ bottom: -2em;
863
+ width: 100%;
864
+ line-height: 1;
865
+ font-family: Optiker, sans-serif;
866
+ font-size: 1.5em;
867
+ font-weight: bold;
868
+ }
869
+
870
+ .progress-circular ul > li:after {
871
+ position: absolute;
872
+ z-index: 2;
873
+ content: attr(data-percent);
874
+ top: 0;
875
+ left: 0;
876
+ display: flex;
877
+ align-items: center;
878
+ justify-content: center;
879
+ width: 100%;
880
+ height: 100%;
881
+ font-family: Optiker, sans-serif;
882
+ font-size: 2.3em;
883
+ text-align: center;
884
+ }
885
+
886
+ .progress-circular svg {
887
+ width: 100%;
888
+ height: 7em;
889
+ }
890
+
891
+ .progress-circular svg:nth-child(2) {
892
+ position: absolute;
893
+ top: 0;
894
+ left: 0;
895
+ transform: rotate(-90deg);
896
+ }
897
+
898
+ .progress-circular svg:nth-child(2) path {
899
+ animation: load 1s;
900
+
901
+ fill: none;
902
+ stroke-width: 20;
903
+ stroke-dasharray: 629;
904
+ stroke: rgba(255, 255, 255, 0.9);
905
+ }
906
+
907
+ @keyframes load {
908
+ 0% {
909
+ stroke-dashoffset: 0;
910
+ }
911
+ }
912
+
913
+ /*-------------------------
914
+ PROGRESS BAR
915
+ -------------------------*/
916
+
917
+ .progress-bar-element {
918
+ position: relative;
919
+ margin: 2rem auto;
920
+ width: 75%;
921
+ height: 1em;
922
+ border: 1px solid #333;
923
+ border-radius: 5px;
924
+ background: rgb(34, 150, 30);
925
+ background: linear-gradient(90deg, rgba(34, 150, 30, 1) 0%, rgba(48, 212, 42, 1) 20%, rgba(214, 129, 0, 1) 70%, rgba(176, 2, 2, 1) 100%);
926
+ }
927
+
928
+ .progress-bar-score, .progress-bar-tooltip {
929
+ position: absolute;
930
+ padding: 0 1em;
931
+ min-width: 1em;
932
+ line-height: 2;
933
+ transform: translate(-50%, -50%);
934
+ text-align: center;
935
+ }
936
+
937
+ .progress-bar-score:first-child, .progress-bar-score:last-child {
938
+ top: -110%;
939
+ right: calc(100% + 2em);
940
+ height: 2em;
941
+ text-align: left;
942
+ }
943
+
944
+ .progress-bar-score:last-child {
945
+ left: calc(100% + 2em);
946
+ }
947
+
948
+ .progress-bar-tooltip {
949
+ bottom: 100%;
950
+ font-size: 0.65em;
951
+ color: #fff;
952
+ border: 1px solid rgba(0, 0, 0, 0.45);
953
+ border-radius: 4px;
954
+ background: #555;
955
+ }
956
+
957
+ .progress-bar-score:not(:first-child):not(:last-child), .progress-bar-tooltip {
958
+ animation: slide 1s;
959
+ }
960
+
961
+ .progress-bar-score {
962
+ top: 100%;
963
+ min-width: 26px;
964
+ transform: translate(-50%, 35%);
965
+
966
+ font-variant-numeric: tabular-nums;
967
+ }
968
+
969
+ .progress-bar-score:not(:first-child):not(:last-child)::before {
970
+ position: absolute;
971
+ content: '';
972
+ bottom: calc(100% - 3px);
973
+ left: 50%;
974
+ width: 0;
975
+ height: 5px;
976
+ transform: translateX(-50%);
977
+ border-left: 2px solid currentColor;
978
+ }
979
+
980
+ .progress-bar-score:not(:first-child):not(:last-child)::after {
981
+ position: absolute;
982
+ content: '';
983
+ bottom: 100%;
984
+ left: 50%;
985
+ width: 0;
986
+ height: 0;
987
+ transform: translateX(-50%);
988
+ border-right: 5px solid transparent;
989
+ border-bottom: 6px solid currentColor;
990
+ border-left: 5px solid transparent;
991
+ }
992
+
993
+ .progress-bar-tooltip::before {
994
+ position: absolute;
995
+ z-index: 10;
996
+ content: '';
997
+ top: calc(100% + 5px);
998
+ left: 50%;
999
+ width: 0;
1000
+ height: 28px;
1001
+ transform: translateX(-50%);
1002
+ border-left: 1px solid rgba(0, 0, 0, 0.2);
1003
+ }
1004
+
1005
+ .progress-bar-tooltip::after {
1006
+ position: absolute;
1007
+ content: '';
1008
+ top: 100%;
1009
+ left: 50%;
1010
+ width: 0;
1011
+ height: 0;
1012
+ transform: translateX(-50%);
1013
+ border-top: 6px solid rgba(0, 0, 0, 0.85);
1014
+ border-right: 5px solid transparent;
1015
+ border-left: 5px solid transparent;
1016
+ }
1017
+
1018
+ @keyframes slide {
1019
+ 0% {
1020
+ left: 100%;
1021
+ }
1022
+ }