This is an automated email from the ASF dual-hosted git repository.
sunyi pushed a commit to branch feat/update-blog-style
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/feat/update-blog-style by this
push:
new 956dd82ad8d feat: update text style
956dd82ad8d is described below
commit 956dd82ad8d064a79e4ff9f145282046f870c446
Author: LiteSun <[email protected]>
AuthorDate: Mon Apr 14 14:44:34 2025 +0800
feat: update text style
---
blog/src/css/customTheme.scss | 17 +++++++++++++++++
blog/src/theme/BlogLayout/index.tsx | 17 ++++++-----------
doc/src/css/customTheme.scss | 22 ++++++++++++++++++++++
website/src/css/customTheme.scss | 22 ++++++++++++++++++++++
4 files changed, 67 insertions(+), 11 deletions(-)
diff --git a/blog/src/css/customTheme.scss b/blog/src/css/customTheme.scss
index ab925baa009..a39c4299927 100644
--- a/blog/src/css/customTheme.scss
+++ b/blog/src/css/customTheme.scss
@@ -479,3 +479,20 @@ a:hover {
transform: scale(1.2);
}
}
+
+article h1 {
+ font-size: 48px;
+}
+
+article h2 {
+ font-size: 36px;
+}
+
+article h3 {
+ font-size: 24px;
+}
+
+article {
+ font-size: 20px;
+ line-height: 35.4px;
+}
diff --git a/blog/src/theme/BlogLayout/index.tsx
b/blog/src/theme/BlogLayout/index.tsx
index 941e6102d00..841ef899886 100644
--- a/blog/src/theme/BlogLayout/index.tsx
+++ b/blog/src/theme/BlogLayout/index.tsx
@@ -11,7 +11,6 @@ import type { FC } from 'react';
import React from 'react';
import Layout from '@theme/Layout';
import BlogSidebar from '@theme/BlogSidebar';
-import TOC from '@theme/TOC';
import {
LinkedinIcon,
LinkedinShareButton,
@@ -104,22 +103,18 @@ const BlogLayout: FC<Props> = (props) => {
<TagsHeader />
<div className="container margin-vert--lg">
- <div className="row">
+ <div className="row" style={{ justifyContent: 'center' }}>
+ {toc && windowType !== 'mobile' && (
+ <div className={clsx('col col--2', style.section)}>
+ {metadata && <Share metadata={metadata} />}
+ </div>
+ )}
{hasSidebar && (
<aside className="col col--3">
<BlogSidebar sidebar={sidebar!} />
</aside>
)}
<div className={clsx({ col: true, 'col--10': toc })}>{children}</div>
- {toc && windowType !== 'mobile' && (
- <div className={clsx('col col--2', style.section)}>
- {metadata && <Share metadata={metadata} />}
- <section className={style.tocSection}>
- <h4>Table of Contents</h4>
- <TOC toc={toc} style={{ position: 'static' }} />
- </section>
- </div>
- )}
</div>
</div>
</Layout>
diff --git a/doc/src/css/customTheme.scss b/doc/src/css/customTheme.scss
index d2d19c99490..e599a5630d3 100644
--- a/doc/src/css/customTheme.scss
+++ b/doc/src/css/customTheme.scss
@@ -472,3 +472,25 @@ a:hover {
transform: scale(1.2);
}
}
+
+article h1 {
+ font-size: 48px;
+}
+
+article h2 {
+ font-size: 36px;
+}
+
+article h3 {
+ font-size: 24px;
+}
+
+article {
+ font-size: 20px;
+ line-height: 35.4px;
+}
+
+article p {
+ font-size: 20px;
+ line-height: 35.4px;
+}
diff --git a/website/src/css/customTheme.scss b/website/src/css/customTheme.scss
index 674a521410e..55a39f8ea3c 100644
--- a/website/src/css/customTheme.scss
+++ b/website/src/css/customTheme.scss
@@ -478,3 +478,25 @@ a:hover {
transform: scale(1.2);
}
}
+
+article h1 {
+ font-size: 48px;
+}
+
+article h2 {
+ font-size: 36px;
+}
+
+article h3 {
+ font-size: 24px;
+}
+
+article {
+ font-size: 20px;
+ line-height: 35.4px;
+}
+
+article p {
+ font-size: 20px;
+ line-height: 35.4px;
+}