diff --git a/sidebars.js b/sidebars.js index e2bf9020f4..dd8ccd3eb5 100644 --- a/sidebars.js +++ b/sidebars.js @@ -13,7 +13,7 @@ const privacyIconSVG = ` - + `; diff --git a/src/components/PacksTable/PacksTable.tsx b/src/components/PacksTable/PacksTable.tsx index f95568b56c..a0c7cf2df3 100644 --- a/src/components/PacksTable/PacksTable.tsx +++ b/src/components/PacksTable/PacksTable.tsx @@ -130,6 +130,14 @@ const FilteredTable: React.FC = () => { const [error, setError] = useState(false); const { colorMode } = useColorMode(); const { defaultAlgorithm, darkAlgorithm } = theme; + const isDark = colorMode === "dark"; + const customTheme = { + algorithm: isDark ? darkAlgorithm : defaultAlgorithm, // Start with the default dark theme + token: { + colorBgContainer: isDark ? "#012121" : "#F3F0EE", + colorPrimary: isDark ? "#44B2AF" : "#1F7A78", + }, + }; useEffect(() => { fetch("/packs-data/packs_report.json") @@ -168,7 +176,7 @@ const FilteredTable: React.FC = () => { return (
- +
The current screen size is not supported. Use a larger display to access the Packs table. diff --git a/src/css/custom.scss b/src/css/custom.scss index 72c68f9a59..a60b20f836 100644 --- a/src/css/custom.scss +++ b/src/css/custom.scss @@ -43,11 +43,12 @@ html { --ifm-link-decoration: underline; } -// Remove link underlines from navbar, tags, and table of contents. +// Remove link underlines from navbar, tags, cards and table of contents. nav a, .table-of-contents a, -[class^="tag_"] { - text-decoration: none; +[class^="tag_"] a, +[class*="cardContainer_"] { + text-decoration: none !important; } // Adjust logo to be 40px high diff --git a/src/css/dark-mode.scss b/src/css/dark-mode.scss index 640bc1fe58..91e0aac977 100644 --- a/src/css/dark-mode.scss +++ b/src/css/dark-mode.scss @@ -18,6 +18,7 @@ html[data-theme="dark"] { --ifm-navbar-link-color: #ffffff; --ifm-navbar-background-color: var(--ifm-background-color); --ifm-toc-link-color: var(--ifm-font-color-base); + --ifm-card-background-color: var(--ifm-dropdown-background-color); --ifm-tabs-color: #818ba9; --docsearch-muted-color: #818ba9; --ifm-menu-color-background-hover: var(--ifm-dropdown-background-color); diff --git a/src/css/light-mode.scss b/src/css/light-mode.scss index 4d5a19361d..ab244376ed 100644 --- a/src/css/light-mode.scss +++ b/src/css/light-mode.scss @@ -33,6 +33,7 @@ html[data-theme="light"] { --ifm-color-danger-dark: #feeded; --ifm-alert-padding-horizontal: 1.5rem; --ifm-dropdown-background-color: var(--ifm-menu-color-background-active); + --ifm-card-background-color: var(--ifm-dropdown-background-color); --custom-table-header-color: #f7f7f7; --simpleCardPrimary: var(--ifm-color-primary); --simpleCardPrimaryHover: #135757;