1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
@namespace atom url("http://www.w3.org/2005/Atom");
@namespace content url("http://purl.org/rss/1.0/modules/content/");
@namespace dc url("http://purl.org/dc/elements/1.1/");
:root {
--bg-color: #f4f5f7;
--card-bg: #ffffff;
--text-main: #222;
--text-muted: #555;
--text-light: #888;
--max-width: 780px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #1a1a1c;
--card-bg: #2c2c2e;
--text-main: #e5e5e7;
--text-muted: #a1a1a6;
--text-light: #707074;
}
}
body,
rss,
atom|feed {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
background: var(--bg-color);
color: var(--text-main);
margin: 0px auto;
padding: 2rem 1rem;
font-size: 16px;
line-height: 1.6;
max-width: var(--max-width);
}
channel>title,
atom|feed>atom|title {
display: block;
font-size: 2rem;
font-weight: 800;
text-align: center;
margin: 0px 0px 0.5rem;
letter-spacing: -0.02em;
}
item,
atom|entry {
display: block;
background: var(--card-bg);
padding: 1.5rem;
margin-bottom: 1.25rem;
border-radius: 16px;
box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 20px;
transition: transform 0.2s;
}
item:hover,
atom|entry:hover {
transform: translateY(-2px);
}
item>title,
atom|entry>atom|title {
display: block;
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text-main);
}
item>description,
atom|entry>atom|summary {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
color: var(--text-muted);
font-size: 0.95rem;
line-height: 1.6;
}
item>pubDate,
atom|entry>atom|updated {
display: block;
color: var(--text-light);
font-size: 0.85rem;
margin-top: 0.75rem;
}
link,
guid,
author,
category,
comments,
source,
enclosure,
content|encoded,
dc|creator,
atom|id,
atom|link,
atom|updated,
atom|published,
atom|author,
atom|category,
atom|rights,
atom|content,
language,
generator {
display: none;
}
channel>description,
atom|feed>atom|subtitle {
display: block;
text-align: center;
color: var(--text-muted);
font-size: 1rem;
margin-bottom: 2rem;
}
channel>description::after,
atom|feed>atom|subtitle::after {
content: "这是一个订阅源(Feed)。复制当前URL到任何支持 Atom/RSS 的阅读器,即可订阅本博客的最新文章。\a 以下展示了此订阅源包含的最新文章:";
display: block;
white-space: pre-wrap;
font-size: 0.875rem;
color: var(--text-light);
margin-top: 1rem;
padding: 1rem;
border-top-width: 1px;
border-top-style: solid;
border-top-color: rgba(128, 128, 128, 0.2);
}
rss,
channel,
atom|feed {
display: flex;
flex-direction: column;
}
channel>lastBuildDate,
atom|feed>atom|updated:not(atom|entry atom|updated) {
order: 999;
text-align: center;
margin-top: 3rem;
padding-top: 1.5rem;
border-top-width: 1px;
border-top-style: solid;
border-top-color: rgba(128, 128, 128, 0.2);
color: var(--text-light);
font-size: 0.85rem;
display: block !important;
}
channel>lastBuildDate::before,
atom|feed>atom|updated:not(atom|entry atom|updated)::before {
content: "更新于 ";
}
|