diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.css b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.css index 2d5975b1b3f8..d2fc20b27416 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.css +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.css @@ -5,15 +5,10 @@ * LICENSE file in the root directory of this source tree. */ -* { - color: #0d1137; -} - main { flex: 1 0 auto; width: 100%; - margin: 4rem auto; - padding: 1.5 rem; + margin: 2rem auto; max-width: 800px; /* stylelint-disable-next-line font-family-name-quotes */ font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell; @@ -21,32 +16,14 @@ main { .info { display: block; - margin: 3rem 0; - padding: 2rem 3rem; + margin: 2rem 0; + padding: 1.6rem 2.4rem; border: 1px solid dodgerblue; border-left-width: 0.5rem; border-radius: 0.4rem; background-color: #edf5ff; } -.rss-icon { - height: 3.8rem; - width: 3.8rem; - margin-right: 1rem; -} - -.flex { - display: flex; -} - -.items-start { - align-items: flex-start; -} - -.pb-7 { - padding-bottom: 3rem; -} - a { color: #005aff; text-decoration: none; @@ -54,23 +31,45 @@ a { h1 { text-wrap: balance; - font-size: 3.8rem; - line-height: 1; + font-size: 3.4rem; font-weight: 800; - margin-bottom: 4rem; + margin-bottom: 2rem; + display: flex; + align-items: center; +} + +h1 .rss-icon { + height: 3.2rem; + width: 3.2rem; + margin-right: 1rem; } h2 { - font-size: 3rem; - line-height: 1.2; + font-size: 2.2rem; font-weight: 700; - margin-bottom: 3rem; + margin-bottom: 0.2rem; } -h2:not(:first-child) { - margin-top: 5.8rem; +h3 { + font-size: 1.8rem; + font-weight: 700; + margin-bottom: 0.1rem; +} + +.blog-description { + font-size: 1.4rem; + margin-bottom: 0.6rem; } -.italic { +.blog-post-date { + font-size: 1rem; + line-height: 1.4rem; font-style: italic; + color: #797b7e; +} + +.blog-post-description { + font-size: 1rem; + line-height: 1.4rem; + color: #434349; } diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.xsl b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.xsl index 2bd08fbd8de6..271895cf7775 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.xsl +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.xsl @@ -3,7 +3,6 @@ version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom"> - @@ -18,11 +17,12 @@
- This is an Atom feed. Subscribe by copying the URL from the address - bar into your newsreader. Visit About Feeds to - learn more and get started. It’s free.
-

+ This is an Atom feed. Subscribe by copying the URL + from the address bar into your newsreader. Visit + About Feeds to learn more + and get started. It’s free. +

+

- - + - - + - - - - + +
- Atom Feed Preview

-

-

-

Description:

+ +

+ +

Recent Posts

-
+
-
- - - -
Published on +

+ -
+
@@ -90,5 +89,4 @@ - diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.css b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.css index 17d483670f0d..d2fc20b27416 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.css +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.css @@ -8,8 +8,7 @@ main { flex: 1 0 auto; width: 100%; - margin: 4rem auto; - padding: 1.5 rem; + margin: 2rem auto; max-width: 800px; /* stylelint-disable-next-line font-family-name-quotes */ font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell; @@ -17,32 +16,14 @@ main { .info { display: block; - margin: 3rem 0; - padding: 2rem 3rem; + margin: 2rem 0; + padding: 1.6rem 2.4rem; border: 1px solid dodgerblue; border-left-width: 0.5rem; border-radius: 0.4rem; background-color: #edf5ff; } -.rss-icon { - height: 3.8rem; - width: 3.8rem; - margin-right: 1rem; -} - -.flex { - display: flex; -} - -.items-start { - align-items: flex-start; -} - -.pb-7 { - padding-bottom: 3rem; -} - a { color: #005aff; text-decoration: none; @@ -50,23 +31,45 @@ a { h1 { text-wrap: balance; - font-size: 3.8rem; - line-height: 1; + font-size: 3.4rem; font-weight: 800; - margin-bottom: 4rem; + margin-bottom: 2rem; + display: flex; + align-items: center; +} + +h1 .rss-icon { + height: 3.2rem; + width: 3.2rem; + margin-right: 1rem; } h2 { - font-size: 3rem; - line-height: 1.2; + font-size: 2.2rem; font-weight: 700; - margin-bottom: 3rem; + margin-bottom: 0.2rem; } -h2:not(:first-child) { - margin-top: 5.8rem; +h3 { + font-size: 1.8rem; + font-weight: 700; + margin-bottom: 0.1rem; } -.italic { +.blog-description { + font-size: 1.4rem; + margin-bottom: 0.6rem; +} + +.blog-post-date { + font-size: 1rem; + line-height: 1.4rem; font-style: italic; + color: #797b7e; +} + +.blog-post-description { + font-size: 1rem; + line-height: 1.4rem; + color: #434349; } diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.xsl b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.xsl index e060e1519d3f..e9695b298468 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.xsl +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.xsl @@ -3,7 +3,6 @@ version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom"> - @@ -16,11 +15,12 @@
- This is an RSS feed. Subscribe by copying the URL from the address - bar into your newsreader. Visit About Feeds to - learn more and get started. It’s free.
-

+ This is an RSS feed. Subscribe by copying the URL + from the address bar into your newsreader. Visit + About Feeds to learn more + and get started. It’s free. +

+

- - + - - + - - - - + +
- RSS Feed Preview

-

-

-

Description:

+ +

+ +

Recent Posts

-
+
-
- - - -
Published on +
+

+ -
+
@@ -88,5 +83,4 @@ -