From ead68ec88808dcbdca5dfa924b14294405569ab5 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Tue, 1 Jul 2025 08:55:08 +0800 Subject: [PATCH] [feih] misc: revert styling changes --- website/src/css/custom.css | 45 ++++++++++---------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 9cbd2e508..bfe718e50 100755 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -17,7 +17,6 @@ } :root { - --ifm-font-size-base: 15px; --ifm-color-primary: #d62b79; --ifm-color-primary-dark: #c2256d; --ifm-color-primary-darker: #b72367; @@ -26,12 +25,11 @@ --ifm-color-primary-lighter: #dc4b8d; --ifm-color-primary-lightest: #e26ca2; - --ifm-font-family-base: - 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', - 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', - 'Helvetica Neue', sans-serif; + --ifm-font-family-base: 'Inter var', -apple-system, BlinkMacSystemFont, + 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', + 'Droid Sans', 'Helvetica Neue', sans-serif; - --ifm-footer-padding-vertical: 5rem; + --ifm-footer-padding-vertical: 3rem; } html[data-theme='dark'] { @@ -42,25 +40,14 @@ html[data-theme='dark'] { --ifm-color-primary-light: #ffb01a; --ifm-color-primary-lighter: #ffb426; --ifm-color-primary-lightest: #ffc14d; -} -strong { - font-weight: 600; -} - -.footer, -.footer-dark { - --ifm-footer-background-color: #18181b; + --ifm-footer-padding-vertical: 3rem; } .navbar { font-size: 0.875rem; } -.navbar__items .navbar-icon { - margin-right: 4px; -} - .footer__links { margin-bottom: 3rem; } @@ -69,23 +56,14 @@ strong { text-align: start; } -header h1 { - font-size: 1.875rem; - line-height: 1.2em; +.markdown h1:first-child { + --ifm-h1-font-size: 1.5em; } -html[data-theme='dark'] .markdown h1, -html[data-theme='dark'] .markdown h2, -html[data-theme='dark'] .markdown h3, -html[data-theme='dark'] .markdown h4, -html[data-theme='dark'] .markdown h5, -html[data-theme='dark'] .markdown h6 { - color: #fff; -} - -.markdown h1 { - font-size: 2rem; - line-height: 1.2em; +@media screen and (min-width: 768px) { + .markdown h1:first-child { + --ifm-h1-font-size: 2.25em; + } } .markdown h2 { @@ -102,6 +80,7 @@ html[data-theme='dark'] .markdown h6 { .markdown h3 { --ifm-h3-font-size: 1.25em; + font-weight: 600; margin-top: 1.8em; margin-bottom: 0.5em; }