From b8b6290ece43013a6bf36c2ff42ee86e1406b46d Mon Sep 17 00:00:00 2001 From: John Date: Sun, 17 Nov 2024 17:38:39 +0800 Subject: [PATCH] up --- src/css/custom.css | 23 ++++++++++++++++++- .../_components/ClearAllButton/index.tsx | 8 +++++-- .../_components/ShowcaseCard/index.tsx | 2 +- .../ShowcaseCard/styles.module.css | 13 +++++++---- .../_components/ShowcaseSearchBar/index.tsx | 2 +- .../ShowcaseSearchBar/styles.module.css | 2 +- src/pages/showcase/index.tsx | 6 ++--- 7 files changed, 43 insertions(+), 13 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index a434a946206..9eea671b903 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -28,6 +28,8 @@ --ifm-color-primary-light: #33925d; --ifm-color-primary-lighter: #359962; --ifm-color-primary-lightest: #3cad6e; + --ifm-color-secondary-dark: #d4d5d8; + --ifm-button-border-color: #d4d5d8; --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); --ifm-font-size-base: 16px; @@ -154,4 +156,23 @@ table th, table td { .markdown li > p { margin: 0 0 6px 0; -} \ No newline at end of file +} + +.screen-reader-only { + border: 0; + clip: rect(0 0 0 0); + clip-path: polygon(0 0, 0 0, 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + white-space: nowrap; +} + +.showcase-reset { + padding: 8px 20px 8px 20px !important; + font-size: 14px !important; +} + diff --git a/src/pages/showcase/_components/ClearAllButton/index.tsx b/src/pages/showcase/_components/ClearAllButton/index.tsx index 372706062ee..4f34f369496 100644 --- a/src/pages/showcase/_components/ClearAllButton/index.tsx +++ b/src/pages/showcase/_components/ClearAllButton/index.tsx @@ -6,6 +6,7 @@ */ import React, {type ReactNode} from 'react'; +import {translate} from '@docusaurus/Translate'; import {useClearQueryString} from '@docusaurus/theme-common'; export default function ClearAllButton(): ReactNode { @@ -13,10 +14,13 @@ export default function ClearAllButton(): ReactNode { // TODO translate return ( ); } diff --git a/src/pages/showcase/_components/ShowcaseCard/index.tsx b/src/pages/showcase/_components/ShowcaseCard/index.tsx index 336698958cd..17eb6e00135 100644 --- a/src/pages/showcase/_components/ShowcaseCard/index.tsx +++ b/src/pages/showcase/_components/ShowcaseCard/index.tsx @@ -75,7 +75,7 @@ function ShowcaseCard({user}: {user: User}) { {user.tags.includes('favorite') && ( - + )} {user.source && ( {DESCRIPTION}

- 🙏 Please add your site + 🙏 添加您的使用案例 🙏