diff --git a/website/blog/2022/08-01-announcing-docusaurus-2.0/ShowcaseCarousel.module.css b/website/blog/2022/08-01-announcing-docusaurus-2.0/ShowcaseCarousel.module.css index 631f6c1c867d..d6fb5c12756b 100644 --- a/website/blog/2022/08-01-announcing-docusaurus-2.0/ShowcaseCarousel.module.css +++ b/website/blog/2022/08-01-announcing-docusaurus-2.0/ShowcaseCarousel.module.css @@ -60,10 +60,6 @@ left: 0.1rem; } -.siteSlide { - position: relative; -} - .siteLink { position: absolute; bottom: 2px; diff --git a/website/docs/guides/markdown-features/markdown-features-react.mdx b/website/docs/guides/markdown-features/markdown-features-react.mdx index 94e51e483d90..d1ffc8ebd13b 100644 --- a/website/docs/guides/markdown-features/markdown-features-react.mdx +++ b/website/docs/guides/markdown-features/markdown-features-react.mdx @@ -10,7 +10,6 @@ slug: /markdown-features/react import BrowserWindow from '@site/src/components/BrowserWindow'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -import styles from './markdown-features-react.module.css'; ``` Docusaurus has built-in support for [MDX](https://mdxjs.com/), which allows you to write JSX within your Markdown files and render them as React components. diff --git a/website/docs/guides/markdown-features/markdown-features-react.module.css b/website/docs/guides/markdown-features/markdown-features-react.module.css deleted file mode 100644 index 4414169ef024..000000000000 --- a/website/docs/guides/markdown-features/markdown-features-react.module.css +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -.wrappingBlock { - width: 50%; - display: inline-block; - padding: 5px; - vertical-align: top; -} - -.wrappingBlock code[class^='codeBlockLines'] { - white-space: pre-wrap; -} diff --git a/website/src/components/BrowserWindow/styles.module.css b/website/src/components/BrowserWindow/styles.module.css index bab968586099..6fa4bf395197 100644 --- a/website/src/components/BrowserWindow/styles.module.css +++ b/website/src/components/BrowserWindow/styles.module.css @@ -19,21 +19,10 @@ padding: 0.5rem 1rem; } -.row::after { - content: ''; - display: table; - clear: both; -} - .buttons { white-space: nowrap; } -.right { - align-self: center; - width: 10%; -} - [data-theme='light'] { --ifm-background-color: #fff; } diff --git a/website/src/pages/styles.module.css b/website/src/pages/styles.module.css index 81d1bec51615..17429ae1620e 100644 --- a/website/src/pages/styles.module.css +++ b/website/src/pages/styles.module.css @@ -13,10 +13,6 @@ background-color: var(--ifm-color-emphasis-100); } -.sectionInner { - margin: 0 auto; -} - .featureImage { width: auto; max-height: 128px; @@ -28,27 +24,6 @@ padding-top: 1rem; } -.announcement { - font-weight: bold; - font-size: 24px; - padding: 48px; - margin: 0 auto; - text-align: center; -} - -.announcementDark { - background-color: #20232a; - color: #fff; - /* Reapply the primary color, because it has been locally overridden as - * the dark theme color */ - --ifm-link-color: var(--ifm-color-primary); -} - -.announcementInner { - margin: 0 auto; - max-width: 768px; -} - .topBanner { font-size: 20px; padding: 30px 20px; @@ -202,10 +177,6 @@ html[data-theme='dark'] .topBannerTitleText { overflow: hidden; } -.indexCtaTryNowButton:hover { - color: var(--ifm-color-primary); -} - @media only screen and (width <= 768px) { .hero { padding-left: 20px; diff --git a/website/src/plugins/changelog/theme/ChangelogItem/Header/Authors/styles.module.css b/website/src/plugins/changelog/theme/ChangelogItem/Header/Authors/styles.module.css index 19ec3dd69dd2..c9cffc43e913 100644 --- a/website/src/plugins/changelog/theme/ChangelogItem/Header/Authors/styles.module.css +++ b/website/src/plugins/changelog/theme/ChangelogItem/Header/Authors/styles.module.css @@ -32,7 +32,3 @@ height: var(--ifm-avatar-photo-size); background-color: var(--ifm-color-emphasis-100); } - -.toggleButtonIconExpanded { - transform: rotate(180deg); -} diff --git a/website/src/utils/__tests__/jsUtils.test.ts b/website/src/utils/__tests__/jsUtils.test.ts deleted file mode 100644 index 5d4147f77a84..000000000000 --- a/website/src/utils/__tests__/jsUtils.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -import {describe, expect, it} from 'vitest'; -import {toggleListItem} from '../jsUtils'; - -describe('toggleListItem', () => { - it('removes item already in list', () => { - expect(toggleListItem([1, 2, 3], 2)).toEqual([1, 3]); - }); - it('appends item not in list', () => { - expect(toggleListItem([1, 2], 3)).toEqual([1, 2, 3]); - }); -}); diff --git a/website/src/utils/jsUtils.ts b/website/src/utils/jsUtils.ts index 868a32d06167..ee5c5a47decf 100644 --- a/website/src/utils/jsUtils.ts +++ b/website/src/utils/jsUtils.ts @@ -17,13 +17,3 @@ export function sortBy( ); return sortedArray; } - -export function toggleListItem(list: T[], item: T): T[] { - const itemIndex = list.indexOf(item); - if (itemIndex === -1) { - return list.concat(item); - } - const newList = [...list]; - newList.splice(itemIndex, 1); - return newList; -}