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.

130 lines
2.6 KiB

  1. @namespace atom "http://www.w3.org/2005/Atom";
  2. @namespace content "http://purl.org/rss/1.0/modules/content/";
  3. @namespace dc "http://purl.org/dc/elements/1.1/";
  4. body,
  5. rss,
  6. atom|feed {
  7. font-family: -apple-system, BlinkMacSystemFont,
  8. "Segoe UI", Roboto,
  9. "Noto Sans SC", "PingFang SC",
  10. "Microsoft YaHei", Arial, sans-serif;
  11. background: #f4f5f7;
  12. color: #222;
  13. margin: 0;
  14. padding: 2em 1em;
  15. /* 左右内边距 1em,竖屏不贴边 */
  16. font-size: 14px;
  17. line-height: 1.6;
  18. max-width: 780px;
  19. /* 最大宽度,桌面端居中 */
  20. margin-left: auto;
  21. margin-right: auto;
  22. }
  23. channel>title,
  24. atom|feed>atom|title {
  25. display: block;
  26. font-size: 1.7em;
  27. font-weight: 700;
  28. margin: 0 0 1.2em 0;
  29. text-align: center;
  30. letter-spacing: -0.01em;
  31. }
  32. item,
  33. atom|entry {
  34. display: block;
  35. background: #ffffff;
  36. padding: 1.1em 1.2em;
  37. margin-bottom: 1.1em;
  38. border-radius: 14px;
  39. box-shadow:
  40. 0 8px 24px rgba(0, 0, 0, 0.04),
  41. 0 2px 6px rgba(0, 0, 0, 0.03);
  42. }
  43. item>title,
  44. atom|entry>atom|title {
  45. display: block;
  46. font-size: 1.15em;
  47. font-weight: 600;
  48. margin-bottom: 0.45em;
  49. color: #111;
  50. letter-spacing: -0.01em;
  51. }
  52. item>description,
  53. atom|entry>atom|summary {
  54. display: block;
  55. color: #555;
  56. line-height: 1.65;
  57. max-height: 16.5em;
  58. overflow: hidden;
  59. position: relative;
  60. }
  61. item>description::after,
  62. atom|entry>atom|summary::after {
  63. content: "…";
  64. position: absolute;
  65. right: 0.3em;
  66. bottom: 0;
  67. padding-left: 1.5em;
  68. background: linear-gradient(to right,
  69. rgba(255, 255, 255, 0),
  70. #ffffff 70%);
  71. font-weight: 600;
  72. }
  73. link,
  74. guid,
  75. pubDate,
  76. author,
  77. category,
  78. comments,
  79. source,
  80. enclosure,
  81. content|encoded,
  82. dc|creator,
  83. lastBuildDate,
  84. atom|id,
  85. atom|link,
  86. atom|updated,
  87. atom|published,
  88. atom|author,
  89. atom|category,
  90. atom|rights,
  91. atom|content,
  92. language,
  93. generator {
  94. display: none;
  95. }
  96. channel>description,
  97. atom|feed>atom|subtitle {
  98. display: block;
  99. margin: 0.4em 0 2em 0;
  100. /* 与条目明显拉开 */
  101. text-align: center;
  102. color: #666;
  103. font-size: 0.95em;
  104. }
  105. channel>title,
  106. atom|feed>atom|title {
  107. margin-bottom: 0.4em;
  108. /* 原来较紧,这里放松 */
  109. }
  110. atom|feed>atom|subtitle::after,
  111. channel>description::after {
  112. content: "这是一个订阅源(Feed)。复制当前URL到任何支持 Atom/RSS 的阅读器,即可订阅本博客的最新文章。\A以下展示了此订阅源包含的最新文章:";
  113. display: block;
  114. text-align: center;
  115. font-size: 0.95em;
  116. color: #666;
  117. margin: 1em 0 2em 0;
  118. line-height: 1.5;
  119. white-space: pre-wrap;
  120. }