Files
blog_cn/assets/css/feed.css
mayx 6630ba964b Update 3 files
- /_data/other_repo_list.csv
- /_data/proxylist.yml
- /assets/css/feed.css
2026-02-26 14:54:24 +00:00

160 lines
3.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@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: "FeedURL到任何支持 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: " ";
}