@riebeckite/plugin-recent-posts 0.0.1 → 0.0.5
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 +2 -2
- package/style.css +83 -83
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-recent-posts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"hono": "^4.12.25",
|
|
25
|
-
"@riebeckite/core": "0.0.
|
|
25
|
+
"@riebeckite/core": "0.0.5"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
package/style.css
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.recent-posts {
|
|
3
|
-
margin-top: 4rem;
|
|
4
|
-
padding-top: 1.5rem;
|
|
5
|
-
border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.recent-posts__header {
|
|
9
|
-
display: grid;
|
|
10
|
-
gap: 0.25rem;
|
|
11
|
-
margin-bottom: 1.25rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.recent-posts__eyebrow {
|
|
15
|
-
margin: 0;
|
|
16
|
-
font-size: 0.75rem;
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
letter-spacing: 0.12em;
|
|
19
|
-
color: color-mix(in srgb, currentColor 54%, transparent);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.recent-posts__title {
|
|
23
|
-
margin: 0;
|
|
24
|
-
font-size: clamp(1.5rem, 4vw, 2rem);
|
|
25
|
-
line-height: 1.2;
|
|
26
|
-
letter-spacing: -0.02em;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.recent-posts__list {
|
|
30
|
-
display: grid;
|
|
31
|
-
margin: 0;
|
|
32
|
-
padding: 0;
|
|
33
|
-
border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
34
|
-
list-style: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.recent-posts__item {
|
|
38
|
-
margin: 0;
|
|
39
|
-
padding: 0;
|
|
40
|
-
border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.recent-posts__link {
|
|
44
|
-
display: grid;
|
|
45
|
-
gap: 0.375rem;
|
|
46
|
-
padding: 1rem 0;
|
|
47
|
-
color: inherit;
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
transition:
|
|
50
|
-
color 160ms ease,
|
|
51
|
-
padding-inline 160ms ease;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.recent-posts__link:hover,
|
|
55
|
-
.recent-posts__link:focus-visible {
|
|
56
|
-
color: var(--rb-color-accent);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.recent-posts__link:focus-visible {
|
|
60
|
-
outline: 2px solid var(--rb-color-accent);
|
|
61
|
-
outline-offset: 4px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.recent-posts__date {
|
|
65
|
-
font-size: 0.75rem;
|
|
66
|
-
font-weight: 700;
|
|
67
|
-
letter-spacing: 0.08em;
|
|
68
|
-
color: color-mix(in srgb, currentColor 62%, transparent);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.recent-posts__post-title {
|
|
72
|
-
font-size: 1rem;
|
|
73
|
-
line-height: 1.5;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@media (min-width: 40rem) {
|
|
77
|
-
.recent-posts__link {
|
|
78
|
-
grid-template-columns: 8rem minmax(0, 1fr);
|
|
79
|
-
align-items: baseline;
|
|
80
|
-
gap: 1.5rem;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.recent-posts {
|
|
3
|
+
margin-top: 4rem;
|
|
4
|
+
padding-top: 1.5rem;
|
|
5
|
+
border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.recent-posts__header {
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: 0.25rem;
|
|
11
|
+
margin-bottom: 1.25rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.recent-posts__eyebrow {
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-size: 0.75rem;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
letter-spacing: 0.12em;
|
|
19
|
+
color: color-mix(in srgb, currentColor 54%, transparent);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.recent-posts__title {
|
|
23
|
+
margin: 0;
|
|
24
|
+
font-size: clamp(1.5rem, 4vw, 2rem);
|
|
25
|
+
line-height: 1.2;
|
|
26
|
+
letter-spacing: -0.02em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.recent-posts__list {
|
|
30
|
+
display: grid;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
34
|
+
list-style: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.recent-posts__item {
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.recent-posts__link {
|
|
44
|
+
display: grid;
|
|
45
|
+
gap: 0.375rem;
|
|
46
|
+
padding: 1rem 0;
|
|
47
|
+
color: inherit;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
transition:
|
|
50
|
+
color 160ms ease,
|
|
51
|
+
padding-inline 160ms ease;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.recent-posts__link:hover,
|
|
55
|
+
.recent-posts__link:focus-visible {
|
|
56
|
+
color: var(--rb-color-accent);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.recent-posts__link:focus-visible {
|
|
60
|
+
outline: 2px solid var(--rb-color-accent);
|
|
61
|
+
outline-offset: 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.recent-posts__date {
|
|
65
|
+
font-size: 0.75rem;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
letter-spacing: 0.08em;
|
|
68
|
+
color: color-mix(in srgb, currentColor 62%, transparent);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.recent-posts__post-title {
|
|
72
|
+
font-size: 1rem;
|
|
73
|
+
line-height: 1.5;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (min-width: 40rem) {
|
|
77
|
+
.recent-posts__link {
|
|
78
|
+
grid-template-columns: 8rem minmax(0, 1fr);
|
|
79
|
+
align-items: baseline;
|
|
80
|
+
gap: 1.5rem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|