Mayx's Home Page
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
3.3 KiB

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