astro-accelerator 5.10.36 → 5.10.38
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.
package/package.json
CHANGED
package/public/css/main.css
CHANGED
|
@@ -92,13 +92,22 @@ textarea {
|
|
|
92
92
|
font-family: var(--code-font);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
button {
|
|
96
|
-
background-color: var(--
|
|
95
|
+
button, .button {
|
|
96
|
+
background-color: var(--aft);
|
|
97
|
+
border: 1px solid var(--icon-block);
|
|
97
98
|
border-radius: var(--block-radius);
|
|
98
|
-
color: var(--
|
|
99
|
+
color: var(--icon-block);
|
|
99
100
|
cursor: pointer;
|
|
101
|
+
display: inline-block;
|
|
100
102
|
font-size: 1.3rem;
|
|
101
103
|
padding: 0.5rem;
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
button:hover, .button:hover,
|
|
108
|
+
button:focus, .button:focus {
|
|
109
|
+
background-color: var(--icon-block);
|
|
110
|
+
color: var(--aft);
|
|
102
111
|
}
|
|
103
112
|
|
|
104
113
|
summary {
|
|
@@ -1354,120 +1363,72 @@ figure:focus .magnify-button {
|
|
|
1354
1363
|
}
|
|
1355
1364
|
|
|
1356
1365
|
.timeline::before {
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1366
|
+
background-color: var(--icon-block);
|
|
1367
|
+
bottom: 0;
|
|
1368
|
+
content: '';
|
|
1369
|
+
left: 2rem;
|
|
1370
|
+
position: absolute;
|
|
1371
|
+
top: calc(var(--block-gap) * -1);
|
|
1372
|
+
width: 0.4rem;
|
|
1364
1373
|
}
|
|
1365
1374
|
|
|
1366
1375
|
.timeline-event {
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1372
|
-
transition: margin-bottom 0.3s ease;
|
|
1373
|
-
}
|
|
1376
|
+
padding-inline-start: 4rem;
|
|
1377
|
+
position: relative;
|
|
1378
|
+
margin-block-end: var(--block-gap);
|
|
1374
1379
|
}
|
|
1375
1380
|
|
|
1376
1381
|
.timeline-event::before {
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1390
|
-
transition: all 0.3s ease;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
.timeline-event:focus-within {
|
|
1395
|
-
margin-bottom: 2rem;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
.timeline-event:focus-within::before {
|
|
1399
|
-
background: var(--icon-block);
|
|
1400
|
-
box-shadow: var(--box-shadow);
|
|
1401
|
-
transform: scale(1.2);
|
|
1382
|
+
background: var(--aft);
|
|
1383
|
+
border: 3px solid var(--icon-block);
|
|
1384
|
+
border-radius: 50%;
|
|
1385
|
+
box-shadow: var(--box-shadow-unselected);
|
|
1386
|
+
content: '';
|
|
1387
|
+
height: 1rem;
|
|
1388
|
+
left: 1.5rem;
|
|
1389
|
+
position: absolute;
|
|
1390
|
+
top: 1.5em;
|
|
1391
|
+
width: 1rem;
|
|
1392
|
+
z-index: 1;
|
|
1402
1393
|
}
|
|
1403
1394
|
|
|
1404
|
-
.timeline-event >
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
box-shadow: var(--box-shadow-unselected);
|
|
1413
|
-
|
|
1414
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1415
|
-
transition: all 0.3s ease;
|
|
1416
|
-
}
|
|
1395
|
+
.timeline-event > div {
|
|
1396
|
+
background: var(--aft-block);
|
|
1397
|
+
border-radius: var(--block-radius);
|
|
1398
|
+
box-shadow: var(--box-shadow-unselected);
|
|
1399
|
+
color: var(--fore-block);
|
|
1400
|
+
padding: 1.5rem;
|
|
1401
|
+
text-align: left;
|
|
1402
|
+
width: 100%;
|
|
1417
1403
|
}
|
|
1418
1404
|
|
|
1419
|
-
.timeline-event.event-today >
|
|
1420
|
-
|
|
1421
|
-
background: var(--aft);
|
|
1405
|
+
.timeline-event.event-today > div {
|
|
1406
|
+
box-shadow: var(--box-glow);
|
|
1422
1407
|
}
|
|
1423
1408
|
|
|
1424
|
-
.timeline-event.event-past >
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1409
|
+
.timeline-event.event-past > div {
|
|
1410
|
+
background: var(--aft);
|
|
1411
|
+
box-shadow: none;
|
|
1412
|
+
color: var(--fore);
|
|
1413
|
+
opacity: 0.8;
|
|
1429
1414
|
}
|
|
1430
1415
|
|
|
1431
|
-
.timeline-
|
|
1432
|
-
|
|
1433
|
-
outline: none;
|
|
1434
|
-
box-shadow: var(--box-shadow);
|
|
1435
|
-
transform: translateX(4px);
|
|
1416
|
+
.timeline-details {
|
|
1417
|
+
font-size: var(--font-size-meta);
|
|
1436
1418
|
}
|
|
1437
1419
|
|
|
1438
1420
|
.timeline time {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
margin-bottom: 0.5rem;
|
|
1421
|
+
display: inline-block;
|
|
1422
|
+
margin-block-end: var(--grid-gap);
|
|
1442
1423
|
}
|
|
1443
1424
|
|
|
1444
1425
|
.timeline-location {
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
.timeline-location::before {
|
|
1450
|
-
content: '📍 ';
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
.timeline-details {
|
|
1454
|
-
max-height: 0;
|
|
1455
|
-
overflow: hidden;
|
|
1456
|
-
opacity: 0;
|
|
1457
|
-
font-size: var(--font-size-meta);
|
|
1458
|
-
|
|
1459
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1460
|
-
transition: max-height 0.2s ease, opacity 0.2s ease;
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
.timeline-event:focus-within .timeline-details {
|
|
1465
|
-
max-height: 500px;
|
|
1466
|
-
opacity: 1;
|
|
1426
|
+
display: block;
|
|
1427
|
+
font-size: var(--font-size-meta);
|
|
1467
1428
|
}
|
|
1468
1429
|
|
|
1469
1430
|
.timeline-event.event-past::before {
|
|
1470
|
-
|
|
1431
|
+
box-shadow: var(--box-shadow-unselected);
|
|
1471
1432
|
}
|
|
1472
1433
|
|
|
1473
1434
|
/* Animation */
|
package/public/css/vars.css
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
--fore-block: #333;
|
|
38
38
|
--aft-block: #BEE;
|
|
39
39
|
--icon-block: #FF0;
|
|
40
|
+
--icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
|
|
40
41
|
|
|
41
42
|
--fore-table-head: #DFF;
|
|
42
43
|
--aft-table-head: #233;
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
|
|
69
70
|
--box-shadow: 0 12px 24px -12px rgb(0 0 0 / 50%);
|
|
70
71
|
--box-shadow-slight: 0 6px 12px -6px rgb(0 0 0 / 40%);
|
|
72
|
+
--box-glow: 0 0 12px 0 var(--icon-block-alpha);
|
|
71
73
|
|
|
72
74
|
--box-shadow-unselected: rgb(0 0 0 / 6%) 0px 2px 4px, rgb(0 0 0 / 5%) 0px 0.5px 1px;
|
|
73
75
|
--transform-selected: translate3d(0px, -1px, 0px);
|
|
@@ -19,17 +19,20 @@ const accelerator = new Accelerator(SITE);
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
<div class="timeline-event">
|
|
22
|
-
<
|
|
22
|
+
<div>
|
|
23
23
|
<time datetime={date}
|
|
24
24
|
>{
|
|
25
|
-
accelerator.dateFormatter.
|
|
25
|
+
accelerator.dateFormatter.formatShortDate(
|
|
26
|
+
date,
|
|
27
|
+
SITE.default.locale,
|
|
28
|
+
)
|
|
26
29
|
}</time
|
|
27
30
|
>{
|
|
28
31
|
endDate && (
|
|
29
32
|
<Fragment>
|
|
30
33
|
‐
|
|
31
34
|
<time datetime={endDate}>
|
|
32
|
-
{accelerator.dateFormatter.
|
|
35
|
+
{accelerator.dateFormatter.formatShortDate(
|
|
33
36
|
endDate,
|
|
34
37
|
SITE.default.locale,
|
|
35
38
|
)}
|
|
@@ -39,16 +42,13 @@ const accelerator = new Accelerator(SITE);
|
|
|
39
42
|
}
|
|
40
43
|
<h3>{title}</h3>
|
|
41
44
|
<span class="timeline-location">{location}</span>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
</div>
|
|
53
|
-
</button>
|
|
45
|
+
<p>{description}</p>
|
|
46
|
+
{
|
|
47
|
+
linkHref && (
|
|
48
|
+
<a href={linkHref} class="button">
|
|
49
|
+
{linkText}
|
|
50
|
+
</a>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
</div>
|
|
54
54
|
</div>
|