From 517a60e7cd69fc70c27174cecd005ccf1ab458ad Mon Sep 17 00:00:00 2001 From: Flacial Date: Fri, 14 Jul 2023 20:13:01 +0400 Subject: [PATCH 1/9] Increase h3 size Increases its size to improve the readability when the text is short --- scss/_text.module.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/_text.module.scss b/scss/_text.module.scss index a138dae5e..90e0c7c42 100644 --- a/scss/_text.module.scss +++ b/scss/_text.module.scss @@ -17,7 +17,7 @@ h2 { h3 { @include rubik-bold; - font-size: 18px; + font-size: 20px; line-height: 160%; } From 41ba5012e8ba4fdf55c98125811e2a3c916a8280 Mon Sep 17 00:00:00 2001 From: Flacial Date: Fri, 14 Jul 2023 20:13:36 +0400 Subject: [PATCH 2/9] Add space above the headings and paragraph The UI looks cramped when the headings don't have enough space around them --- scss/mdx.module.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scss/mdx.module.scss b/scss/mdx.module.scss index c85a00036..da7911890 100644 --- a/scss/mdx.module.scss +++ b/scss/mdx.module.scss @@ -10,6 +10,12 @@ .MDX_h3 { font-weight: 600; display: inline-block; + margin-top: 2em; + margin-bottom: 0.8em; +} + +.MDX_p { + margin-bottom: 1.2em; } .MDX_ol > li::marker { @@ -51,10 +57,6 @@ display: flex; justify-content: center; text-decoration: none; - &::before { - content: '\270E'; - transform: rotate(90deg); - } &:hover { text-decoration: none; } From 510584418896424a971ddfff6f945b4c035cc4a5 Mon Sep 17 00:00:00 2001 From: Flacial Date: Fri, 14 Jul 2023 20:14:16 +0400 Subject: [PATCH 3/9] Remove the pencil icon to simplify the look --- components/EditPage/EditPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/EditPage/EditPage.tsx b/components/EditPage/EditPage.tsx index ff5c1221c..82bb70351 100644 --- a/components/EditPage/EditPage.tsx +++ b/components/EditPage/EditPage.tsx @@ -10,9 +10,9 @@ const EditPage: React.FC = ({ filePath }) => { - Edit this page + Edit this page on Github ) } From 51ce2eb1dab05b98b36f9d5659095c89957039f6 Mon Sep 17 00:00:00 2001 From: Flacial Date: Fri, 14 Jul 2023 20:14:44 +0400 Subject: [PATCH 4/9] mdx: Map

element to a styled

element --- helpers/mdxComponents.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/mdxComponents.tsx b/helpers/mdxComponents.tsx index 7687b65f7..58287ec42 100644 --- a/helpers/mdxComponents.tsx +++ b/helpers/mdxComponents.tsx @@ -28,6 +28,7 @@ const MDXcomponents = { ul: (props: any) =>