| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- @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: "更新于 ";
- }
|