Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove old search files

Terry Sutton881e1fe74e96
diff --git a/apps/docs/components/Search/SearchButton.tsx b/apps/docs/components/Search/SearchButton.tsx
deleted file mode 100644
index 94da639a526..00000000000
--- a/apps/docs/components/Search/SearchButton.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import {
- ButtonHTMLAttributes,
- DetailedHTMLProps,
- FC,
- PropsWithChildren,
- useEffect,
- useRef,
-} from 'react'
-import { useActionKey } from '~/hooks/useActionKey'
-import { useSearch } from './SearchProvider'
-
-const SearchButton: FC<
- PropsWithChildren<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>
-> = ({ children, ...props }) => {
- const searchButtonRef = useRef<HTMLButtonElement>()
- const { open, setQuery } = useSearch()
-
- useEffect(() => {
- function onKeyDown(event: KeyboardEvent) {
- if (searchButtonRef.current === document.activeElement) {
- if (/[a-zA-Z0-9]/.test(String.fromCharCode(event.keyCode))) {
- open()
- setQuery?.(event.key)
- }
- }
- }
- window.addEventListener('keydown', onKeyDown)
- return () => {
- window.removeEventListener('keydown', onKeyDown)
- }
- }, [open, setQuery])
-
- return (
- <button type="button" ref={searchButtonRef} onClick={open} {...props}>
- {children}
- </button>
- )
-}
-
-export default SearchButton
diff --git a/apps/docs/components/Search/SearchModal.tsx b/apps/docs/components/Search/SearchModal.tsx
deleted file mode 100644
index 213035540b1..00000000000
--- a/apps/docs/components/Search/SearchModal.tsx
+++ /dev/null
@@ -1,423 +0,0 @@
-import type { CreateCompletionResponse } from 'openai'
-import { FC, useCallback, useRef, useState } from 'react'
-import ReactMarkdown from 'react-markdown'
-import remarkGfm from 'remark-gfm'
-import { SSE } from 'sse.js'
-import clippyImageDark from '../../public/img/clippy-dark.png'
-import clippyImage from '../../public/img/clippy.png'
-
-import { useSupabaseClient } from '@supabase/auth-helpers-react'
-import { useTheme } from 'common/Providers'
-import Image from 'next/image'
-import {
- Button,
- IconAlertCircle,
- IconAlertTriangle,
- IconLoader,
- IconSearch,
- Input,
- Loading,
- Modal,
- Tabs,
-} from 'ui'
-import components from '~/components'
-import { IS_PLATFORM } from '~/lib/constants'
-import { useSearch } from './SearchProvider'
-import SearchResult, { SearchResultType } from './SearchResult'
-
-const questions = [
- 'How do I get started with Supabase?',
- 'How do I run Supabase locally?',
- 'How do I connect to my database?',
- 'How do I run migrations? ',
- 'How do I listen to changes in a table?',
- 'How do I set up authentication?',
-]
-
-function getEdgeFunctionUrl() {
- const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL?.replace(/\/$/, '')
-
- if (IS_PLATFORM) {
- const [schemeAndProjectId, domain, tld] = supabaseUrl.split('.')
- return `${schemeAndProjectId}.functions.${domain}.${tld}`
- } else {
- return `${supabaseUrl}/functions/v1`
- }
-}
-
-const edgeFunctionUrl = getEdgeFunctionUrl()
-
-const SearchModal: FC = () => {
- const { isDarkMode } = useTheme()
- const { close, query, setQuery } = useSearch()
- const [answer, setAnswer] = useState('')
- const [results, setResults] = useState<any[]>()
- const [isLoading, setIsLoading] = useState(false)
- const [isResponding, setIsResponding] = useState(false)
- const [hasClippyError, setHasClippyError] = useState(false)
- const [hasSearchError, setHasSearchError] = useState(false)
- const [selectedTab, setSelectedTab] = useState('search-panel')
- const eventSourceRef = useRef<SSE>()
- const supabaseClient = useSupabaseClient()
-
- const cantHelp = answer?.trim() === "Sorry, I don't know how to help with that."
- const status = isLoading
- ? 'Clippy is searching...'
- : isResponding
- ? 'Clippy is responding...'
- : cantHelp || hasClippyError
- ? 'Clippy has failed you'
- : undefined
-
- const handleSearchConfirm = useCallback(
- async (query: string) => {
- setResults(undefined)
- setAnswer(undefined)
- setIsResponding(false)
- setHasClippyError(false)
- setHasSearchError(false)
- setIsLoading(true)
-
- const { error, data: pageSections } = await supabaseClient.functions.invoke('search', {
- body: { query },
- })
-
- setIsLoading(false)
-
- if (error) {
- setIsLoading(false)
- setIsResponding(false)
- setHasSearchError(true)
- console.error(error)
- return
- }
-
- if (!Array.isArray(pageSections)) {
- setIsLoading(false)
- setIsResponding(false)
- setHasSearchError(true)
- console.error('Malformed response')
- return
- }
-
- setResults(pageSections)
- },
- [supabaseClient]
- )
-
- const handleClippyConfirm = useCallback(async (query: string) => {
- setResults(undefined)
- setAnswer(undefined)
- setIsResponding(false)
- setHasClippyError(false)
- setHasSearchError(false)
- setIsLoading(true)
-
- const eventSource = new SSE(`${edgeFunctionUrl}/clippy-search`, {
- headers: {
- apikey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
- Authorization: `Bearer ${process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY}`,
- 'Content-Type': 'application/json',
- },
- payload: JSON.stringify({ query }),
- })
-
- function handleError<T>(err: T) {
- setIsLoading(false)
- setIsResponding(false)
- setHasClippyError(true)
- console.error(err)
- }
-
- eventSource.addEventListener('error', handleError)
- eventSource.addEventListener('message', (e) => {
- try {
- setIsLoading(false)
-
- if (e.data === '[DONE]') {
- setIsResponding(false)
- return
- }
-
- setIsResponding(true)
-
- const completionResponse: CreateCompletionResponse = JSON.parse(e.data)
- const [{ text }] = completionResponse.choices
-
- setAnswer((answer) => {
- return (answer ?? '') + text
- })
- } catch (err) {
- handleError(err)
- }
- })
-
- eventSource.stream()
-
- eventSourceRef.current = eventSource
-
- setIsLoading(true)
- }, [])
-
- const handleConfirm = useCallback(
- (selectedTab: string, query: string) => {
- switch (selectedTab) {
- case 'search-panel':
- return handleSearchConfirm(query)
- case 'clippy-panel':
- return handleClippyConfirm(query)
- }
- },
- [handleSearchConfirm, handleClippyConfirm]
- )
-
- function handleResetPrompt() {
- eventSourceRef.current?.close()
- eventSourceRef.current = undefined
- setQuery('')
- setResults(undefined)
- setAnswer(undefined)
- setIsResponding(false)
- setHasClippyError(false)
- setHasSearchError(false)
- }
- return (
- <Modal size="xlarge" visible={true} onCancel={close} closable={false} hideFooter>
- <div
- className={`mx-auto max-h-[90vh] lg:max-h-[75vh] flex flex-col gap-4 rounded-lg p-4 md:pt-6 md:px-6 pb-2 w-full shadow-2xl overflow-hidden border text-left border-scale-500 bg-scale-100 dark:bg-scale-300 cursor-auto relative min-w-[340px]`}
- onClick={(e) => e.stopPropagation()}
- >
- <div className="relative">
- <Input
- className="w-full"
- size="xlarge"
- autoFocus
- placeholder={selectedTab === 'search-panel' ? 'Search documentation' : 'Ask a question'}
- value={query}
- onChange={(e) => setQuery(e.target.value)}
- icon={<IconSearch size="small" />}
- onKeyDown={(e) => {
- switch (e.key) {
- case 'Enter':
- if (!query) {
- return
- }
- handleConfirm(selectedTab, query)
- return
- default:
- return
- }
- }}
- />
- <div className="absolute right-0 top-0 mt-3 mr-4 hidden md:block">
- <Button type="default" size="tiny" onClick={close}>
- esc
- </Button>
- </div>
- {!isLoading && answer && (
- <div className="absolute right-0 top-0 mt-3 mr-16 hidden md:block">
- <Button type="text" size="tiny" onClick={handleResetPrompt}>
- Try again
- </Button>
- </div>
- )}
- </div>
- <Tabs
- activeId={selectedTab}
- onChange={(tabId) => {
- setSelectedTab(tabId)
- if (!query) {
- handleResetPrompt()
- return
- }
- handleConfirm(tabId, query)
- }}
- >
- <Tabs.Panel id="search-panel" label="Guides & Reference">
- <div className="mb-6">
- {!isLoading && !hasSearchError && !results && (
- <div className="p-10 grid">
- <h2 className="text-lg text-center text-scale-1100">
- Search Supabase guides & reference docs
- </h2>
- </div>
- )}
- {results && results.length > 0 && (
- <div className="flex flex-col gap-3 max-h-[70vh] lg:max-h-[50vh] overflow-y-auto px-4 py-4 rounded-lg bg-scale-200">
- {results.map((page) => {
- const pageSections = page.sections.filter((section) => !!section.heading)
- return (
- <div key={page.id} className="flex flex-col gap-3">
- <SearchResult
- href={page.path}
- type={SearchResultType.Document}
- title={page.meta.title}
- />
- {pageSections.length > 0 && (
- <div className="flex flex-row">
- <div className="border bg-scale-300 rounded-xl self-stretch p-[1px] ml-4 mr-4"></div>
- <div className="flex flex-col gap-3 items-stretch grow">
- {pageSections.map((section) => (
- <SearchResult
- key={section.id}
- href={`${page.path}${page.type === 'reference' ? '/' : '#'}${
- section.slug
- }`}
- type={SearchResultType.Section}
- title={section.heading}
- chip={page.meta.title}
- />
- ))}
- </div>
- </div>
- )}
- </div>
- )
- })}
- </div>
- )}
- {isLoading && (
- <div className="p-6 grid gap-6 mt-4">
- <Loading active>{}</Loading>
- <p className="text-lg text-center">Searching for results</p>
- </div>
- )}
- {results && results.length === 0 && (
- <div className="p-6 flex flex-col items-center gap-6 mt-4">
- <IconAlertTriangle strokeWidth={1.5} size={40} />
- <p className="text-lg text-center">No results found.</p>
- <Button size="tiny" type="secondary" onClick={handleResetPrompt}>
- Try again?
- </Button>
- </div>
- )}
- {hasSearchError && (
- <div className="p-6 flex flex-col items-center gap-6 mt-4">
- <IconAlertTriangle strokeWidth={1.5} size={40} />
- <p className="text-lg text-center">
- Sorry, looks like we&apos;re having some issues with search!
- </p>
- <p className="text-sm text-center">Please try again in a bit.</p>
- <Button size="tiny" type="secondary" onClick={handleResetPrompt}>
- Try again?
- </Button>
- </div>
- )}
- </div>
- </Tabs.Panel>
- <Tabs.Panel id="clippy-panel" label="Ask Clippy">
- {!isLoading && !answer && !hasClippyError && (
- <div className="">
- <div className="mt-2">
- <h2 className="text-sm text-scale-1100">Not sure where to start?</h2>
-
- <ul className="text-sm mt-4 text-scale-1100 grid md:flex gap-4 flex-wrap max-w-3xl">
- {questions.map((question) => {
- const key = question.replace(/\s+/g, '_')
- return (
- <li key={key}>
- <button
- className="hover:bg-slate-400 hover:dark:bg-slate-400 px-4 py-2 bg-slate-300 dark:bg-slate-200 rounded-lg transition-colors"
- onClick={() => {
- setQuery(question)
- handleClippyConfirm(question)
- }}
- >
- {question}
- </button>
- </li>
- )
- })}
- </ul>
- </div>
- </div>
- )}
- {answer && (
- <div className="px-4 py-4 rounded-lg overflow-y-auto bg-scale-200 max-h-[70vh] lg:max-h-[50vh]">
- {cantHelp ? (
- <p className="flex flex-col gap-4 items-center p-4">
- <div className="grid md:flex items-center gap-2 mt-4 text-center justify-items-center">
- <IconAlertCircle />
- <p>Sorry, I don&apos;t know how to help with that.</p>
- </div>
- <Button size="tiny" type="secondary" onClick={handleResetPrompt}>
- Try again?
- </Button>
- </p>
- ) : (
- <div className="prose dark:prose-dark">
- <ReactMarkdown
- linkTarget="_blank"
- remarkPlugins={[remarkGfm]}
- transformLinkUri={(href) => {
- const supabaseUrl = new URL('https://supabase.com')
- const linkUrl = new URL(href, 'https://supabase.com')
-
- if (linkUrl.origin === supabaseUrl.origin) {
- return linkUrl.toString()
- }
-
- return href
- }}
- components={components}
- >
- {answer}
- </ReactMarkdown>
- </div>
- )}
- </div>
- )}
- {isLoading && (
- <div className="p-6 grid gap-6 mt-4">
- <Loading active>{}</Loading>
- <p className="text-lg text-center">Searching for results</p>
- </div>
- )}
- {hasClippyError && (
- <div className="p-6 flex flex-col items-center gap-6 mt-4">
- <IconAlertTriangle strokeWidth={1.5} size={40} />
- <p className="text-lg text-center">
- Sorry, looks like Clippy is having a hard time!
- </p>
- <p className="text-sm text-center">Please try again in a bit.</p>
- <Button size="tiny" type="secondary" onClick={handleResetPrompt}>
- Try again?
- </Button>
- </div>
- )}
- <div className="border-t border-scale-600 mt-4 text-scale-1100">
- <div className="flex justify-between items-center py-2 text-xs">
- <div className="flex items-centerp gap-1 pt-3 pb-1">
- <span>Powered by OpenAI.</span>
- <a href="/blog/chatgpt-supabase-docs" className="underline">
- Read the blog post
- </a>
- </div>
- <div className="flex items-center gap-6 py-1">
- {status ? (
- <span className="bg-scale-400 rounded-lg py-1 px-2 items-center gap-2 hidden md:flex">
- {(isLoading || isResponding) && (
- <IconLoader size={14} className="animate-spin" />
- )}
- {status}
- </span>
- ) : (
- <></>
- )}
- <Image
- width={30}
- height={34}
- src={isDarkMode ? clippyImageDark : clippyImage}
- alt="Clippy"
- />
- </div>
- </div>
- </div>
- </Tabs.Panel>
- </Tabs>
- </div>
- </Modal>
- )
-}
-
-export default SearchModal
diff --git a/apps/docs/components/Search/SearchProvider.tsx b/apps/docs/components/Search/SearchProvider.tsx
deleted file mode 100644
index 4175c159c29..00000000000
--- a/apps/docs/components/Search/SearchProvider.tsx
+++ /dev/null
@@ -1,80 +0,0 @@
-import {
- createContext,
- FC,
- PropsWithChildren,
- useCallback,
- useContext,
- useEffect,
- useState,
-} from 'react'
-import { createPortal } from 'react-dom'
-import SearchModal from './SearchModal'
-
-export type SearchContextValue = {
- isOpen: boolean
- open: () => void
- close: () => void
- query: string
- setQuery: (query: string) => void
-}
-
-export const SearchContext = createContext<SearchContextValue>(null)
-
-export const useSearch = () => {
- const { isOpen, open, close, query, setQuery } = useContext(SearchContext)
-
- return { isOpen, open, close, query, setQuery }
-}
-
-const SearchProvider: FC<PropsWithChildren<{}>> = ({ children }) => {
- const [isOpen, setIsOpen] = useState(false)
- const [query, setQuery] = useState('')
-
- const open = useCallback(() => {
- setIsOpen(true)
- document.body.classList.add('DocSearch--active')
- }, [])
-
- const close = useCallback(() => {
- setIsOpen(false)
- document.body.classList.remove('DocSearch--active')
- }, [])
-
- useSearchKeyboardEvents({
- open,
- close,
- })
-
- return (
- <SearchContext.Provider value={{ isOpen, open, close, query, setQuery }}>
- {children}
- {isOpen && createPortal(<SearchModal />, document.body)}
- </SearchContext.Provider>
- )
-}
-
-function useSearchKeyboardEvents({ open, close }) {
- useEffect(() => {
- function onKeyDown(event: KeyboardEvent) {
- switch (event.key) {
- case 'Escape':
- close()
- return
- case 'k':
- case '/':
- if (event.metaKey || event.ctrlKey) {
- open()
- }
- return
- }
- }
-
- window.addEventListener('keydown', onKeyDown)
-
- return () => {
- window.removeEventListener('keydown', onKeyDown)
- }
- }, [open, close])
-}
-
-export default SearchProvider
diff --git a/apps/docs/components/Search/SearchResult.tsx b/apps/docs/components/Search/SearchResult.tsx
deleted file mode 100644
index d3689024ec5..00000000000
--- a/apps/docs/components/Search/SearchResult.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import Link from 'next/link'
-import { FC } from 'react'
-import { IconBookOpen, IconHash } from '~/../../packages/ui'
-import { useSearch } from './SearchProvider'
-
-export enum SearchResultType {
- Document = 'document',
- Section = 'section',
-}
-
-type Props = {
- href: string
- type: SearchResultType
- title: string
- chip?: string
-}
-
-const SearchResult: FC<Props> = ({ href, type, title, chip }) => {
- const { close } = useSearch()
-
- return (
- <Link href={href}>
- <a
- className="flex flex-row items-center bg-scale-400 hover:bg-scale-600 transition p-4 rounded-md border border-scale-600 text-sm cursor-pointer"
- onClick={close}
- >
- <div className="w-6 h-6 p-1 flex items-center justify-center mr-4 text-brand-1100 rounded-md bg-scale-700">
- {getIconByType(type)}
- </div>
- <div className="flex flex-col gap-2 items-start">
- {chip && (
- <div className="rounded-xl bg-scale-700 pl-3 pr-3 pt-0.5 pb-0.5 text-xs text-scale-1100">
- {chip}
- </div>
- )}
- <div>{title}</div>
- </div>
- </a>
- </Link>
- )
-}
-
-function getIconByType(type: SearchResultType) {
- switch (type) {
- case SearchResultType.Document:
- return <IconBookOpen />
- case SearchResultType.Section:
- return <IconHash />
- default:
- throw new Error(`Unknown search result type '${type}'`)
- }
-}
-
-export default SearchResult
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index 15781f7e813..10bd64f11f9 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -12,9 +12,7 @@ import Favicons from '~/components/Favicons'
import SiteLayout from '~/layouts/SiteLayout'
import { IS_PLATFORM, LOCAL_SUPABASE } from '~/lib/constants'
import { post } from '~/lib/fetchWrappers'
-import '../styles/algolia-search.scss'
import '../styles/ch.scss'
-import '../styles/docsearch.scss'
import '../styles/main.scss?v=1.0.0'
import '../styles/new-docs.scss'
import '../styles/prism-okaidia.scss'
diff --git a/apps/docs/styles/algolia-search.scss b/apps/docs/styles/algolia-search.scss
deleted file mode 100644
index 56ac843d5d2..00000000000
--- a/apps/docs/styles/algolia-search.scss
+++ /dev/null
@@ -1,962 +0,0 @@
-// ----------------
-// 1. CSS Variables
-// 2. Dark Mode
-// 3. Autocomplete
-// 4. Panel
-// 5. Sources
-// 6. Hit Layout
-// 7. Panel Header
-// 8. Panel Footer
-// 9. Detached Mode
-// 10. Gradients
-// 11. Utilities
-// ----------------
-
-// Note:
-// This theme reflects the markup structure of autocomplete with SCSS indentation.
-// We use the SASS `@at-root` function to keep specificity low.
-
-// ----------------
-// 1. CSS Variables
-// ----------------
-:root {
- // Input
- --aa-search-input-height: 38px;
- --aa-input-icon-size: 20px;
-
- // Size and spacing
- --aa-base-unit: 16;
- --aa-spacing-factor: 1;
- --aa-spacing: calc(var(--aa-base-unit) * var(--aa-spacing-factor) * 1px);
- --aa-spacing-half: calc(var(--aa-spacing) / 2);
- --aa-panel-max-height: 650px;
-
- // Z-index
- --aa-base-z-index: 9999;
-
- // Font
- --aa-font-size: calc(var(--aa-base-unit) * 1px);
- --aa-font-family: inherit;
- --aa-font-weight-medium: 500;
- --aa-font-weight-semibold: 600;
- --aa-font-weight-bold: 700;
-
- // Icons
- --aa-icon-size: 20px;
- --aa-icon-stroke-width: 1.6;
- --aa-icon-color-rgb: 119, 119, 163;
- --aa-icon-color-alpha: 1;
- --aa-action-icon-size: 20px;
-
- // Text colors
- --aa-text-color-rgb: 38, 38, 39;
- --aa-text-color-alpha: 1;
- --aa-primary-color-rgb: 62, 52, 211;
- --aa-primary-color-alpha: 0.2;
- --aa-muted-color-rgb: 128, 126, 163;
- --aa-muted-color-alpha: 0.6;
-
- // Border colors
- --aa-panel-border-color-rgb: 128, 126, 163;
- --aa-panel-border-color-alpha: 0.3;
- --aa-input-border-color-rgb: 128, 126, 163;
- --aa-input-border-color-alpha: 0.8;
-
- // Background colors
- --aa-background-color-rgb: 255, 255, 255;
- --aa-background-color-alpha: 1;
- --aa-input-background-color-rgb: 255, 255, 255;
- --aa-input-background-color-alpha: 1;
- --aa-selected-color-rgb: 179, 173, 214;
- --aa-selected-color-alpha: 0.205;
- --aa-description-highlight-background-color-rgb: 245, 223, 77;
- --aa-description-highlight-background-color-alpha: 0.5;
-
- // Detached mode
- --aa-detached-media-query: (max-width: 680px);
- --aa-detached-modal-media-query: (min-width: 680px);
- --aa-detached-modal-max-width: 680px;
- --aa-detached-modal-max-height: 500px;
- --aa-overlay-color-rgb: 115, 114, 129;
- --aa-overlay-color-alpha: 0.4;
-
- // Shadows
- --aa-panel-shadow: 0 0 0 1px rgba(35, 38, 59, 0.1), 0 6px 16px -4px rgba(35, 38, 59, 0.15);
-
- // Scrollbar
- --aa-scrollbar-width: 13px;
- --aa-scrollbar-track-background-color-rgb: 234, 234, 234;
- --aa-scrollbar-track-background-color-alpha: 1;
- --aa-scrollbar-thumb-background-color-rgb: var(--aa-background-color-rgb);
- --aa-scrollbar-thumb-background-color-alpha: 1;
-
- // Touch screens
- @media (hover: none) and (pointer: coarse) {
- --aa-spacing-factor: 1.2;
- --aa-action-icon-size: 22px;
- }
-}
-
-// ----------------
-// 2. Dark Mode
-// ----------------
-body {
- /* stylelint-disable selector-no-qualifying-type, selector-class-pattern */
- &[data-theme='dark'],
- &.dark {
- // Text colors
- --aa-text-color-rgb: 183, 192, 199;
- --aa-primary-color-rgb: 146, 138, 255;
- --aa-muted-color-rgb: 146, 138, 255;
-
- // Background colors
- --aa-input-background-color-rgb: 0, 3, 9;
- --aa-background-color-rgb: 21, 24, 42;
- --aa-selected-color-rgb: 146, 138, 255;
- --aa-selected-color-alpha: 0.25;
- --aa-description-highlight-background-color-rgb: 0 255 255;
- --aa-description-highlight-background-color-alpha: 0.25;
-
- // Icons
- --aa-icon-color-rgb: 119, 119, 163;
-
- // Shadows
- --aa-panel-shadow: inset 1px 1px 0 0 rgb(44, 46, 64), 0 3px 8px 0 rgb(0, 3, 9);
-
- // Scrollbar
- --aa-scrollbar-track-background-color-rgb: 44, 46, 64;
- --aa-scrollbar-thumb-background-color-rgb: var(--aa-background-color-rgb);
- }
- /* stylelint-enable selector-no-qualifying-type, selector-class-pattern */
-}
-
-// Reset for `@extend`
-%reset {
- box-sizing: border-box;
-}
-
-// Init for `@extend`
-%init {
- color: rgba(var(--aa-text-color-rgb), var(--aa-text-color-alpha));
- font-family: var(--aa-font-family);
- font-size: var(--aa-font-size);
- font-weight: normal;
- line-height: 1em;
- margin: 0;
- padding: 0;
- text-align: left;
-}
-
-// ----------------
-// 3. Autocomplete
-// ----------------
-.aa-Autocomplete,
-.aa-DetachedFormContainer {
- @extend %init;
- * {
- @extend %reset;
- }
- // Search box
- @at-root .aa-Form {
- @apply transition bg-scale-200 border border-scale-500;
- align-items: center;
- border-radius: 3px;
- display: flex;
- line-height: 1em;
- margin: 0;
- position: relative;
- width: 100%;
- &:focus-within {
- @apply border-brand-900;
- outline: currentColor none medium;
- }
- @at-root .aa-InputWrapperPrefix {
- align-items: center;
- display: flex;
- flex-shrink: 0;
- height: var(--aa-search-input-height);
- order: 1;
- // Container for search and loading icons
- @at-root .aa-Label,
- .aa-LoadingIndicator {
- cursor: initial;
- flex-shrink: 0;
- height: 100%;
- padding: 0;
- text-align: left;
- svg {
- @apply text-brand-900;
- height: auto;
- max-height: var(--aa-input-icon-size);
- stroke-width: var(--aa-icon-stroke-width);
- width: var(--aa-input-icon-size);
- }
- }
- @at-root .aa-SubmitButton,
- .aa-LoadingIndicator {
- height: 100%;
- padding-left: calc(var(--aa-spacing) * 0.75 - 1px);
- padding-right: var(--aa-spacing-half);
- width: calc(var(--aa-spacing) * 1.75 + var(--aa-icon-size) - 1px);
- @media (hover: none) and (pointer: coarse) {
- padding-left: calc(var(--aa-spacing-half) / 2 - 1px);
- width: calc(var(--aa-icon-size) + (var(--aa-spacing) * 1.25) - 1px);
- }
- }
- @at-root .aa-SubmitButton {
- appearance: none;
- background: none;
- border: 0;
- margin: 0;
- }
- @at-root .aa-LoadingIndicator {
- align-items: center;
- display: flex;
- justify-content: center;
- &[hidden] {
- display: none;
- }
- }
- }
- @at-root .aa-InputWrapper {
- order: 3;
- position: relative;
- width: 100%;
- // Search box input (with placeholder and query)
- @at-root .aa-Input {
- @apply text-sm text-scale-1200;
- appearance: none;
- background: none;
- border: 0;
- height: var(--aa-search-input-height);
- padding: 0;
- width: 100%;
- &::placeholder {
- @apply text-scale-700;
- opacity: 1;
- }
- // Focus is set and styled on the parent, it isn't necessary here
- &:focus {
- border-color: none;
- box-shadow: none;
- outline: none;
- }
- // Remove native appearence
- &::-webkit-search-decoration,
- &::-webkit-search-cancel-button,
- &::-webkit-search-results-button,
- &::-webkit-search-results-decoration {
- appearance: none;
- }
- }
- }
- @at-root .aa-InputWrapperSuffix {
- align-items: center;
- display: flex;
- height: var(--aa-search-input-height);
- order: 4;
- // Accelerator to clear the query
- @at-root .aa-ClearButton {
- align-items: center;
- background: none;
- border: 0;
- color: rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha));
- cursor: pointer;
- display: flex;
- height: 100%;
- margin: 0;
- padding: 0 calc(var(--aa-spacing) * (5 / 6) - 0.5px);
- @media (hover: none) and (pointer: coarse) {
- padding: 0 calc(var(--aa-spacing) * (2 / 3) - 0.5px);
- }
- &:hover,
- &:focus {
- color: rgba(var(--aa-text-color-rgb), var(--aa-text-color-alpha));
- }
- &[hidden] {
- display: none;
- }
- svg {
- stroke-width: var(--aa-icon-stroke-width);
- width: var(--aa-icon-size);
- }
- }
- }
- }
-}
-
-// ----------------
-// 4. Panel
-// ----------------
-.aa-Panel {
- @extend %init;
-
- @apply bg-scale-200;
- border-radius: calc(var(--aa-spacing) / 4);
- box-shadow: var(--aa-panel-shadow);
- margin: 8px 0 0;
- overflow: hidden;
- position: absolute;
- transition: opacity 200ms ease-in, filter 200ms ease-in;
- @media screen and (prefers-reduced-motion) {
- transition: none;
- }
- * {
- @extend %reset;
- }
- button {
- appearance: none;
- background: none;
- border: 0;
- margin: 0;
- padding: 0;
- }
-
- @at-root .aa-PanelLayout {
- @apply bg-scale-200;
- height: 100%;
- margin: 0;
- max-height: var(--aa-panel-max-height);
- overflow-y: auto;
- padding: 0;
- position: relative;
- text-align: left;
-
- @at-root .aa-PanelLayoutColumns--twoGolden {
- display: grid;
- grid-template-columns: 39.2% auto;
- overflow: hidden;
- padding: 0;
- }
- @at-root .aa-PanelLayoutColumns--two {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- overflow: hidden;
- padding: 0;
- }
- @at-root .aa-PanelLayoutColumns--three {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- overflow: hidden;
- padding: 0;
- }
- }
-
- // When a request isn't resolved yet
- @at-root .aa-Panel--stalled {
- .aa-Source {
- filter: grayscale(1);
- opacity: 0.8;
- }
- }
-
- @at-root .aa-Panel--scrollable {
- margin: 0;
- max-height: var(--aa-panel-max-height);
- overflow-x: hidden;
- overflow-y: auto;
- padding: var(--aa-spacing-half);
- scrollbar-color: rgba(
- var(--aa-scrollbar-thumb-background-color-rgb),
- var(--aa-scrollbar-thumb-background-color-alpha)
- )
- rgba(
- var(--aa-scrollbar-track-background-color-rgb),
- var(--aa-scrollbar-track-background-color-alpha)
- );
- scrollbar-width: thin;
-
- &::-webkit-scrollbar {
- width: var(--aa-scrollbar-width);
- }
- &::-webkit-scrollbar-track {
- background-color: rgba(
- var(--aa-scrollbar-track-background-color-rgb),
- var(--aa-scrollbar-track-background-color-alpha)
- );
- }
- &::-webkit-scrollbar-thumb {
- background-color: rgba(
- var(--aa-scrollbar-thumb-background-color-rgb),
- var(--aa-scrollbar-thumb-background-color-alpha)
- );
- border-color: rgba(
- var(--aa-scrollbar-track-background-color-rgb),
- var(--aa-scrollbar-track-background-color-alpha)
- );
- border-radius: 9999px;
- border-style: solid;
- border-width: 3px 2px 3px 3px;
- }
- }
-}
-
-// ----------------
-// 5. Sources
-// Each source can be styled independently
-// ----------------
-.aa-Source {
- margin: 0;
- padding: 0;
- position: relative;
- width: 100%;
- &:empty {
- // Hide empty section
- display: none;
- }
- @at-root .aa-SourceNoResults {
- font-size: 1em;
- margin: 0;
- padding: var(--aa-spacing);
- }
- // List of results inside the source
- @at-root .aa-List {
- list-style: none;
- margin: 0;
- padding: 0;
- position: relative;
- }
- // Source title
- @at-root .aa-SourceHeader {
- margin: var(--aa-spacing-half) 0.5em var(--aa-spacing-half) 0;
- padding: 0;
- position: relative;
- // Hide empty header
- &:empty {
- display: none;
- }
- // Title typography
- @at-root .aa-SourceHeaderTitle {
- background: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha));
- color: rgba(var(--aa-primary-color-rgb), 1);
- display: inline-block;
- font-size: 0.8em;
- font-weight: var(--aa-font-weight-semibold);
- margin: 0;
- padding: 0 var(--aa-spacing-half) 0 0;
- position: relative;
- z-index: var(--aa-base-z-index);
- }
- // Line separator
- @at-root .aa-SourceHeaderLine {
- border-bottom: solid 1px rgba(var(--aa-primary-color-rgb), 1);
- display: block;
- height: 2px;
- left: 0;
- margin: 0;
- opacity: 0.3;
- padding: 0;
- position: absolute;
- right: 0;
- top: var(--aa-spacing-half);
- z-index: calc(var(--aa-base-z-index) - 1);
- }
- }
- // See all button
- @at-root .aa-SourceFooterSeeAll {
- background: linear-gradient(
- 180deg,
- rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha)),
- rgba(128, 126, 163, 0.14)
- );
- border: 1px solid rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha));
- border-radius: 5px;
- box-shadow: inset 0 0 2px #fff, 0 2px 2px -1px rgba(76, 69, 88, 0.15);
- color: inherit;
- font-size: 0.95em;
- font-weight: var(--aa-font-weight-medium);
- padding: 0.475em 1em 0.6em;
- text-decoration: none;
- &:focus,
- &:hover {
- border: 1px solid rgba(var(--aa-primary-color-rgb), 1);
- color: rgba(var(--aa-primary-color-rgb), 1);
- }
- }
-}
-
-// ----------------
-// 6. Hit Layout
-// ----------------
-.aa-Item {
- @apply px-4 py-4;
- align-items: center;
- border-radius: 3px;
- cursor: pointer;
- display: grid;
- min-height: calc(var(--aa-spacing) * 2.5);
- // When the result is active
- &[aria-selected='true'] {
- @apply bg-scale-400;
- .aa-ItemActionButton,
- .aa-ActiveOnly {
- visibility: visible;
- }
- }
- // The result type icon inlined SVG or image
- @at-root .aa-ItemIcon {
- align-items: center;
- background: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha));
- border-radius: 3px;
- box-shadow: inset 0 0 0 1px
- rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha));
- color: rgba(var(--aa-icon-color-rgb), var(--aa-icon-color-alpha));
- display: flex;
- flex-shrink: 0;
- font-size: 0.7em;
- height: calc(var(--aa-icon-size) + var(--aa-spacing-half));
- justify-content: center;
- overflow: hidden;
- stroke-width: var(--aa-icon-stroke-width);
- text-align: center;
- width: calc(var(--aa-icon-size) + var(--aa-spacing-half));
- img {
- height: auto;
- max-height: calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);
- max-width: calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);
- width: auto;
- }
- svg {
- height: var(--aa-icon-size);
- width: var(--aa-icon-size);
- }
- @at-root .aa-ItemIcon--alignTop {
- align-self: flex-start;
- }
- @at-root .aa-ItemIcon--noBorder {
- background: none;
- box-shadow: none;
- }
- @at-root .aa-ItemIcon--picture {
- height: 96px;
- width: 96px;
- img {
- max-height: 100%;
- max-width: 100%;
- padding: var(--aa-spacing-half);
- }
- }
- }
- @at-root .aa-ItemContent {
- @apply flex flex-col space-y-1;
- cursor: pointer;
- line-height: 1.25em;
- overflow: hidden;
- &:empty {
- display: none;
- }
- mark {
- @apply text-brand-900;
- background: none;
- font-style: normal;
- font-weight: var(--aa-font-weight-bold);
- }
- .aa-ItemTitle {
- @apply text-scale-1200 text-sm;
- }
- @at-root .aa-ItemContent--dual {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- text-align: left;
- .aa-ItemContentTitle,
- .aa-ItemContentSubtitle {
- display: block;
- }
- }
- @at-root .aa-ItemContent--indented {
- padding-left: calc(var(--aa-icon-size) + var(--aa-spacing));
- }
- @at-root .aa-ItemContentBody {
- display: grid;
- gap: calc(var(--aa-spacing-half) / 2);
- }
- @at-root .aa-ItemContentTitle {
- display: inline-block;
- margin: 0 0.5em 0 0;
- max-width: 100%;
- overflow: hidden;
- padding: 0;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- @at-root .aa-ItemContentSubtitle {
- @apply text-scale-1000 text-sm truncate;
- @at-root .aa-ItemContentSubtitleIcon {
- &::before {
- border-color: rgba(var(--aa-muted-color-rgb), 0.64);
- border-style: solid;
- content: '';
- display: inline-block;
- left: 1px;
- position: relative;
- top: -3px;
- }
- }
- @at-root .aa-ItemContentSubtitle--inline {
- .aa-ItemContentSubtitleIcon {
- &::before {
- border-width: 0 0 1.5px;
- margin-left: var(--aa-spacing-half);
- margin-right: calc(var(--aa-spacing-half) / 2);
- width: calc(var(--aa-spacing-half) + 2px);
- }
- }
- }
- @at-root .aa-ItemContentSubtitle--standalone {
- align-items: center;
- color: rgba(var(--aa-text-color-rgb), var(--aa-text-color-alpha));
- display: grid;
- gap: var(--aa-spacing-half);
- grid-auto-flow: column;
- justify-content: start;
- .aa-ItemContentSubtitleIcon {
- &::before {
- border-radius: 0 0 0 3px;
- border-width: 0 0 1.5px 1.5px;
- height: var(--aa-spacing-half);
- width: var(--aa-spacing-half);
- }
- }
- }
- @at-root .aa-ItemContentSubtitleCategory {
- color: rgba(var(--aa-muted-color-rgb), 1);
- font-weight: 500;
- }
- }
- @at-root .aa-ItemContentDescription {
- color: rgba(var(--aa-text-color-rgb), var(--aa-text-color-alpha));
- font-size: 0.85em;
- max-width: 100%;
- overflow-x: hidden;
- text-overflow: ellipsis;
- &:empty {
- display: none;
- }
- mark {
- background: rgba(
- var(--aa-description-highlight-background-color-rgb),
- var(--aa-description-highlight-background-color-alpha)
- );
- color: rgba(var(--aa-text-color-rgb), var(--aa-text-color-alpha));
- font-style: normal;
- font-weight: var(--aa-font-weight-medium);
- }
- }
- @at-root .aa-ItemContentDash {
- color: rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha));
- display: none;
- opacity: 0.4;
- }
- @at-root .aa-ItemContentTag {
- background-color: rgba(var(--aa-primary-color-rgb), var(--aa-primary-color-alpha));
- border-radius: 3px;
- margin: 0 0.4em 0 0;
- padding: 0.08em 0.3em;
- }
- }
- // wrap hit with url but we don't need to see it
- @at-root .aa-ItemWrapper,
- .aa-ItemLink {
- align-items: center;
- color: inherit;
- gap: calc(var(--aa-spacing-half) / 2);
- grid-auto-flow: column;
- justify-content: space-between;
- width: 100%;
- }
- @at-root .aa-ItemLink {
- color: inherit;
- text-decoration: none;
- }
- // Secondary click actions
- @at-root .aa-ItemActions {
- display: grid;
- grid-auto-flow: column;
- height: 100%;
- justify-self: end;
- margin: 0 calc(var(--aa-spacing) / -3);
- padding: 0 2px 0 0;
- }
- @at-root .aa-ItemActionButton {
- align-items: center;
- background: none;
- border: 0;
- color: rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha));
- cursor: pointer;
- display: flex;
- flex-shrink: 0;
- padding: 0;
- &:hover,
- &:focus {
- svg {
- color: rgba(var(--aa-text-color-rgb), var(--aa-text-color-alpha));
- @media (hover: none) and (pointer: coarse) {
- color: inherit;
- }
- }
- }
- svg {
- color: rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha));
- margin: 0;
- margin: calc(var(--aa-spacing) / 3);
- stroke-width: var(--aa-icon-stroke-width);
- width: var(--aa-action-icon-size);
- }
- }
- @at-root .aa-ActiveOnly {
- visibility: hidden;
- }
-}
-
-//----------------
-// 7. Panel Header
-//----------------
-.aa-PanelHeader {
- align-items: center;
- background: rgba(var(--aa-primary-color-rgb), 1);
- color: #fff;
- display: grid;
- height: var(--aa-modal-header-height);
- margin: 0;
- padding: var(--aa-spacing-half) var(--aa-spacing);
- position: relative;
-
- &::after {
- background-image: linear-gradient(
- rgba(var(--aa-background-color-rgb), 1),
- rgba(var(--aa-background-color-rgb), 0)
- );
- bottom: calc(var(--aa-spacing-half) * -1);
- content: '';
- height: var(--aa-spacing-half);
- left: 0;
- pointer-events: none;
- position: absolute;
- right: 0;
- z-index: var(--aa-base-z-index);
- }
-}
-
-//----------------
-// 8. Panel Footer
-//----------------
-.aa-PanelFooter {
- background-color: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha));
- box-shadow: inset 0 1px 0
- rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha));
- display: flex;
- justify-content: space-between;
- margin: 0;
- padding: var(--aa-spacing);
- position: relative;
- z-index: var(--aa-base-z-index);
- &::after {
- background-image: linear-gradient(
- rgba(var(--aa-background-color-rgb), 0),
- rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha))
- );
- content: '';
- height: var(--aa-spacing);
- left: 0;
- opacity: 0.12;
- pointer-events: none;
- position: absolute;
- right: 0;
- top: calc(var(--aa-spacing) * -1);
- z-index: calc(var(--aa-base-z-index) - 1);
- }
-}
-
-//----------------
-// 9. Detached Mode
-//----------------
-.aa-DetachedContainer {
- @apply bg-scale-200 border border-scale-500;
- bottom: 0;
- box-shadow: var(--aa-panel-shadow);
- display: flex;
- flex-direction: column;
- left: 0;
- margin: 0;
- overflow: hidden;
- padding: 0;
- position: fixed;
- right: 0;
- top: 0;
- z-index: var(--aa-base-z-index);
- &::after {
- height: 32px;
- }
- .aa-SourceHeader {
- margin: var(--aa-spacing-half) 0 var(--aa-spacing-half) 2px;
- }
- .aa-Panel {
- @apply bg-scale-200;
- border-radius: 0;
- box-shadow: none;
- flex-grow: 1;
- margin: 0;
- padding: 0;
- position: relative;
- }
- .aa-PanelLayout {
- bottom: 0;
- box-shadow: none;
- left: 0;
- margin: 0;
- max-height: none;
- overflow-y: auto;
- position: absolute;
- right: 0;
- top: 0;
- width: 100%;
- }
- @at-root .aa-DetachedFormContainer {
- @apply bg-scale-200;
- border-bottom: solid 1px
- rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha));
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin: 0;
- padding: var(--aa-spacing-half);
- @at-root .aa-DetachedCancelButton {
- @apply text-scale-1100 text-sm;
- background: none;
- border: 0;
- border-radius: 3px;
- cursor: pointer;
- margin: 0 0 0 var(--aa-spacing-half);
- padding: 0 var(--aa-spacing-half);
- &:hover,
- &:focus {
- box-shadow: inset 0 0 0 1px
- rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha));
- }
- }
- }
- @at-root .aa-DetachedContainer--modal {
- border-radius: 6px;
- bottom: inherit;
- height: auto;
- margin: 0 auto;
- max-width: var(--aa-detached-modal-max-width);
- position: absolute;
- top: 3%;
- .aa-PanelLayout {
- max-height: var(--aa-detached-modal-max-height);
- padding-bottom: var(--aa-spacing-half);
- position: static;
- }
- }
-}
-// Search Button
-.aa-DetachedSearchButton {
- @apply rounded-md bg-scaleA-200 border border-scale-700;
- align-items: center;
- color: rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha));
- cursor: pointer;
- display: flex;
- font: inherit;
- font-family: var(--aa-font-family);
- font-size: var(--aa-font-size);
- height: var(--aa-search-input-height);
- margin: 0;
- padding: 0 calc(var(--aa-search-input-height) / 8);
- position: relative;
- text-align: left;
- width: 100%;
- &:focus {
- @apply border-brand-900;
- outline: currentColor none medium;
- }
- @at-root .aa-DetachedSearchButtonIcon {
- @apply text-scale-1100;
- align-items: center;
- cursor: initial;
- display: flex;
- height: 100%;
- justify-content: center;
- width: calc(var(--aa-icon-size) + var(--aa-spacing));
- }
- .aa-DetachedSearchButtonPlaceholder {
- @apply text-sm text-scale-800;
- }
-}
-
-// Remove scroll on `body`
-.aa-Detached {
- height: 100vh;
- overflow: hidden;
-}
-
-.aa-DetachedOverlay {
- @apply backdrop-blur-sm;
- background-color: rgba(0, 0, 0, 0.4);
- height: 100vh;
- left: 0;
- margin: 0;
- padding: 0;
- position: fixed;
- right: 0;
- top: 0;
- z-index: calc(var(--aa-base-z-index) - 1);
-}
-
-//----------------
-// 10. Gradients
-//----------------
-.aa-GradientTop,
-.aa-GradientBottom {
- height: var(--aa-spacing-half);
- left: 0;
- pointer-events: none;
- position: absolute;
- right: 0;
- z-index: var(--aa-base-z-index);
-}
-
-.aa-GradientTop {
- // background-image: linear-gradient(
- // rgba(var(--aa-background-color-rgb), 1),
- // rgba(var(--aa-background-color-rgb), 0)
- // );
- top: 0;
-}
-
-.aa-GradientBottom {
- // background-image: linear-gradient(
- // rgba(var(--aa-background-color-rgb), 0),
- // rgba(var(--aa-background-color-rgb), 1)
- // );
- // border-bottom-left-radius: calc(var(--aa-spacing) / 4);
- // border-bottom-right-radius: calc(var(--aa-spacing) / 4);
- bottom: 0;
-}
-
-//----------------
-// 11. Utilities
-//----------------
-.aa-DesktopOnly {
- @media (hover: none) and (pointer: coarse) {
- display: none;
- }
-}
-
-.aa-TouchOnly {
- @media (hover: hover) {
- display: none;
- }
-}
-
-// search bar
-input[type='search'].DocSearch-Input {
- background-color: var(--colors-scale1);
- box-shadow: none;
-}
-
-.dark .DocSearch-Input {
- background-color: var(--colors-scale2);
- color: white;
-}
diff --git a/apps/docs/styles/docsearch.scss b/apps/docs/styles/docsearch.scss
deleted file mode 100644
index 569965efcd9..00000000000
--- a/apps/docs/styles/docsearch.scss
+++ /dev/null
@@ -1,535 +0,0 @@
-/* search modal */
-
-.DocSearch--active {
- @apply overflow-hidden #{!important};
-}
-
-.DocSearch-Container {
- background: rgba(0, 0, 0, 0.3);
- @apply fixed top-0 left-0 z-[200] flex h-screen w-screen flex-col p-4 backdrop-blur-sm sm:p-6 md:p-[10vh] lg:p-[12vh];
- @apply cursor-auto #{!important};
-}
-
-.DocSearch-LoadingIndicator svg {
- @apply hidden;
-}
-
-.DocSearch-LoadingIndicator {
- display: none;
- width: 1.5rem;
- height: 1.5rem;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke-width='2' stroke='%23cffafe' /%3E%3Cpath d='M3,12a9,9 0 1,0 18,0a9,9 0 1,0 -18,0' stroke-width='2' stroke='%2306b6d4' stroke-dasharray='56.5486677646' stroke-dashoffset='37.6991118431' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- background-size: 100% 100%;
-}
-
-.DocSearch-Container--Stalled .DocSearch-LoadingIndicator {
- @apply block;
-}
-
-.DocSearch-Modal {
- @apply dark:bg-scale-200 bg-scale-100;
- margin: 0 auto;
- width: 100%;
- max-width: 47.375rem;
- display: flex;
- flex-direction: column;
- min-height: 0;
- border-radius: theme('borderRadius.lg');
- box-shadow: theme('boxShadow.lg');
-}
-
-.DocSearch-SearchBar {
- z-index: 1;
- padding: 0 1rem;
- @apply border-scale-400 relative flex flex-none items-center border-b;
-}
-
-.DocSearch-Form {
- @apply flex min-w-0 flex-auto items-center;
-}
-
-.DocSearch-Dropdown-Container {
- @apply pb-6;
-}
-
-.DocSearch-Dropdown {
- @apply flex-auto overflow-auto;
-}
-
-.DocSearch-Hit--Result {
- @apply relative mx-6;
-}
-
-.DocSearch-Hit--Result.DocSearch-Hit--Child {
- @apply ml-12;
-}
-
-.DocSearch-Hit--Result.DocSearch-Hit--Child::before {
- content: '';
- position: absolute;
- top: -0.25rem;
- bottom: -0.25rem;
- left: -1rem;
- width: 1px;
- background: theme('colors.scale.400');
-
- // @apply dark:bg-slate-700;
-}
-
-.DocSearch-Hit > a {
- position: relative;
- font-size: 0.875rem;
- // border-bottom: 1px solid theme('colors.slate.100');
-
- // @apply dark:border-slate-200;
-}
-
-.DocSearch-Hit--Result {
- // @apply border-b-0 #{!important};
-}
-
-.DocSearch-MagnifierLabel {
- @apply h-6 w-6 flex-none;
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m19 19-3.5-3.5' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='11' r='6' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m19 19-3.5-3.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='11' r='6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-MagnifierLabel svg {
- display: none;
-}
-
-.DocSearch-Container--Stalled .DocSearch-MagnifierLabel {
- display: none;
-}
-
-.DocSearch-Input {
- @apply text-scale-1200 placeholder-scale-900;
- appearance: none;
- background: transparent;
- height: 3.5rem;
- font-size: 1rem;
- margin-left: 0.75rem;
- margin-right: 1rem;
- flex: auto;
- min-width: 0;
- border: none;
-}
-
-@screen sm {
- .DocSearch-Input {
- font-size: 0.875rem;
- }
-}
-
-.DocSearch-Input:focus {
- outline: 2px dotted transparent;
-}
-
-.DocSearch-Input::-webkit-search-cancel-button,
-.DocSearch-Input::-webkit-search-decoration,
-.DocSearch-Input::-webkit-search-results-button,
-.DocSearch-Input::-webkit-search-results-decoration {
- display: none;
-}
-
-.DocSearch-Reset {
- display: none;
-}
-
-button[type='reset'].DocSearch-Cancel {
- appearance: none;
- flex: none;
- font-size: 0;
- border-radius: 0.375rem;
- padding: 0.25rem 0.375rem;
- @apply ring-scale-900 hover:ring-scale-900 dark:bg-scale-600 shadow-sm ring-1 hover:shadow dark:ring-0;
- width: 1.75rem;
- height: 1.5rem;
- /* esc */
- background-image: url("data:image/svg+xml,%3Csvg width='16' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.506 6h3.931V4.986H1.736v-1.39h2.488V2.583H1.736V1.196h2.69V.182H.506V6ZM8.56 1.855h1.18C9.721.818 8.87.102 7.574.102c-1.276 0-2.21.705-2.205 1.762-.003.858.602 1.35 1.585 1.585l.634.159c.633.153.986.335.988.727-.002.426-.406.716-1.03.716-.64 0-1.1-.295-1.14-.878h-1.19c.03 1.259.931 1.91 2.343 1.91 1.42 0 2.256-.68 2.259-1.745-.003-.969-.733-1.483-1.744-1.71l-.523-.125c-.506-.117-.93-.304-.92-.722 0-.375.332-.65.934-.65.588 0 .949.267.994.724ZM15.78 2.219C15.618.875 14.6.102 13.254.102c-1.537 0-2.71 1.086-2.71 2.989 0 1.898 1.153 2.989 2.71 2.989 1.492 0 2.392-.992 2.526-2.063l-1.244-.006c-.117.623-.606.98-1.262.98-.883 0-1.483-.656-1.483-1.9 0-1.21.591-1.9 1.492-1.9.673 0 1.159.389 1.253 1.028h1.244Z' fill='%23334155'/%3E%3C/svg%3E");
- background-position: center;
- background-repeat: no-repeat;
- background-size: 57.1428571429% auto;
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='16' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.506 6h3.931V4.986H1.736v-1.39h2.488V2.583H1.736V1.196h2.69V.182H.506V6ZM8.56 1.855h1.18C9.721.818 8.87.102 7.574.102c-1.276 0-2.21.705-2.205 1.762-.003.858.602 1.35 1.585 1.585l.634.159c.633.153.986.335.988.727-.002.426-.406.716-1.03.716-.64 0-1.1-.295-1.14-.878h-1.19c.03 1.259.931 1.91 2.343 1.91 1.42 0 2.256-.68 2.259-1.745-.003-.969-.733-1.483-1.744-1.71l-.523-.125c-.506-.117-.93-.304-.92-.722 0-.375.332-.65.934-.65.588 0 .949.267.994.724ZM15.78 2.219C15.618.875 14.6.102 13.254.102c-1.537 0-2.71 1.086-2.71 2.989 0 1.898 1.153 2.989 2.71 2.989 1.492 0 2.392-.992 2.526-2.063l-1.244-.006c-.117.623-.606.98-1.262.98-.883 0-1.483-.656-1.483-1.9 0-1.21.591-1.9 1.492-1.9.673 0 1.159.389 1.253 1.028h1.244Z' fill='%2394a3b8'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-Reset svg {
- display: none;
-}
-
-.DocSearch-Hit-source {
- line-height: 1.5rem;
- font-weight: 400;
- color: theme('colors.scale.900');
- padding-top: 2.5rem;
- margin: 0 1.5rem 1rem;
-}
-
-.DocSearch-Hits:first-child .DocSearch-Hit-source {
- padding-top: 1.5rem;
-}
-
-.DocSearch-Hit-Container {
- display: flex;
- align-items: center;
-}
-
-.DocSearch-Hit-Tree {
- display: none;
-}
-
-.DocSearch-Hit-icon {
- display: none;
-}
-
-.DocSearch-Hit--Result .DocSearch-Hit-icon {
- display: block;
- flex: none;
- margin-right: 1rem;
- width: 1.5rem;
- height: 1.5rem;
- border-radius: theme('borderRadius.md');
- /* hash icon */
- background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 1v10M8.25 1v10M1 3.75h10M1 8.25h10' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-position: center center;
-
- @apply ring-scale-300 bg-white shadow-sm ring-1 dark:bg-slate-700 dark:ring-0;
-}
-
-.DocSearch-Hit--Parent.DocSearch-Hit--Guide .DocSearch-Hit-icon {
- /* book icon */
- background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.5 0c1.093 0 2.117.27 3 .743V10a6.344 6.344 0 0 0-3-.743c-1.093 0-2.617.27-3.5.743V.743C.883.27 2.407 0 3.5 0Z' fill='%23BAE6FD'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.5 0c1.093 0 2.617.27 3.5.743V10c-.883-.473-2.407-.743-3.5-.743s-2.117.27-3 .743V.743a6.344 6.344 0 0 1 3-.743Z' fill='%2338BDF8'/%3E%3C/svg%3E");
-}
-
-.DocSearch-Hit-icon svg {
- display: none;
-}
-
-.DocSearch-Hit-content-wrapper {
- flex: auto;
- display: flex;
- flex-direction: column-reverse;
- min-width: 0;
- z-index: 1;
-}
-
-.DocSearch-Hit-path {
- align-self: flex-start;
- font-size: 0.75rem;
- line-height: 1.5rem;
- font-weight: 400;
- color: theme('colors.scale.1100');
- border-radius: 999px;
- padding: 0 0.75rem;
- @apply bg-scale-300 dark:bg-scale-500;
-}
-
-.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit-icon {
- // @apply bg-transparent shadow-none ring-1 ring-white/30 dark:ring-white/20;
- // background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 1v10M8.25 1v10M1 3.75h10M1 8.25h10' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
-}
-
-.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit--Parent .DocSearch-Hit-icon {
- /* book icon */
- // background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.5 0c1.093 0 2.117.27 3 .743V10a6.344 6.344 0 0 0-3-.743c-1.093 0-2.617.27-3.5.743V.743C.883.27 2.407 0 3.5 0Z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.5 0c1.093 0 2.617.27 3.5.743V10c-.883-.473-2.407-.743-3.5-.743s-2.117.27-3 .743V.743a6.344 6.344 0 0 1 3-.743Z' fill='%23fff'/%3E%3C/svg%3E");
-}
-
-.DocSearch-Hit-title {
- @apply text-scale-1100 dark:text-scale-1100 truncate leading-6;
-}
-
-.DocSearch-Hit-title + .DocSearch-Hit-path {
- @apply mb-1;
-}
-
-.DocSearch-Hit-action {
- @apply ml-3.5 flex-none;
-}
-
-.DocSearch-Hit--Result {
- .DocSearch-Hit-action svg {
- @apply hidden;
- }
-
- .DocSearch-Hit-action {
- // @apply h-6 w-6;
- // background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11 9 3 3-3 3' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-
- [aria-selected='true'] & .DocSearch-Hit-action {
- // background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11 9 3 3-3 3' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-
- .DocSearch-Hit[aria-selected='true'] & .DocSearch-Hit-path {
- // @apply bg-scale-400 dark:bg-scale-400;
- }
-
- .DocSearch-Hit[aria-selected='true'] & .DocSearch-Hit-title {
- // @apply text-white;
- }
-}
-
-.DocSearch-Hit-action-button {
- @apply flex;
-}
-
-.DocSearch-Hit-action + .DocSearch-Hit-action {
- @apply ml-2;
-}
-
-.DocSearch-Hit-action path {
- stroke-width: 2px;
- stroke: #71717a;
-}
-
-.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit-action path {
- stroke: #777;
-
- .dark & {
- stroke: #aaa;
- }
-}
-
-.DocSearch-Hit > a {
- @apply block py-4 px-6;
-}
-
-.DocSearch-Hit--Result {
- @apply py-3 px-4 #{!important};
-}
-
-.DocSearch-Hit {
- @apply relative;
-}
-
-.DocSearch-Hit:first-child > a {
- // @apply border-t border-slate-100 dark:border-slate-200;
-}
-
-.DocSearch-Hit--Result {
- // @apply border-t-0 #{!important};
-}
-
-.DocSearch-Hit + .DocSearch-Hit .DocSearch-Hit--Result {
- @apply mt-2;
-}
-
-.DocSearch-Hit--Result {
- @apply dark:bg-scale-300 border-scale-400 rounded-lg border bg-white transition-all;
-}
-
-.DocSearch-Hit[aria-selected='true'] > a {
- @apply bg-slate-50 dark:bg-slate-700;
-}
-
-.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit--Result {
- @apply bg-scale-200 dark:bg-scale-600;
-}
-
-.DocSearch-Hit--FirstChild::before {
- @apply top-0 #{!important};
-}
-
-.DocSearch-Hit--LastChild::before {
- @apply bottom-0 #{!important};
-}
-
-.DocSearch-Hits mark {
- background: none;
- @apply text-scale-1200 border-scale-900 border-b-2 font-semibold;
-}
-
-.DocSearch-Hit-path mark {
- @apply border-0;
-}
-
-.DocSearch-Hit[aria-selected='true'] mark {
- @apply text-scale-1200;
- border-bottom-color: currentColor;
-}
-
-.DocSearch-Footer {
- @apply flex flex-none justify-end border-t border-slate-100 py-4 px-6 dark:border-slate-200;
-}
-
-.DocSearch-Commands {
- @apply hidden;
-}
-
-.DocSearch-Logo a {
- @apply text-scale-900 flex items-center text-xs font-medium;
-}
-
-.DocSearch-Logo svg {
- @apply text-scale-900 ml-3 text-[#5468ff];
-}
-
-.DocSearch-Hit--deleting,
-.DocSearch-Hit--favoriting {
- opacity: 0;
- transition: all 250ms linear;
-}
-
-.DocSearch-NoResults .DocSearch-Screen-Icon {
- @apply hidden;
-}
-
-.DocSearch-Title {
- @apply mb-10 text-lg leading-6;
-}
-
-.DocSearch-Title strong {
- @apply text-slate-1200 dark:text-scale-1200 font-normal;
-}
-
-.DocSearch-NoResults-Prefill-List {
- .DocSearch-Help {
- color: var(--colors-scale11) !important;
- }
-}
-
-.DocSearch-StartScreen {
- .DocSearch-Help {
- @apply text-center py-16;
- }
-}
-
-.DocSearch-Help {
- @apply text-scale-1100;
- font-size: 0.875rem !important;
- a {
- color: var(--colors-brand9) !important;
- font-weight: 400 !important;
- }
-}
-
-.DocSearch-NoResults {
- @apply px-4 pt-10 pb-8;
-}
-
-.DocSearch-NoResults .DocSearch-Title {
- text-align: center;
- color: theme('colors.scale.1100');
-}
-
-.DocSearch-NoResults-Prefill-List .DocSearch-Help {
- @apply text-scale-900 dark:text-scale-200 mb-3 text-sm leading-6;
-}
-
-.DocSearch-NoResults-Prefill-List ul {
- @apply border-scale-300 dark:border-scale-400 dark:bg-scale-300 overflow-hidden rounded-lg border bg-white;
-}
-
-.DocSearch-NoResults-Prefill-List button {
- padding: 0.5rem 0.75rem;
- display: block;
- width: 100%;
- text-align: left;
- font-size: theme('fontSize.sm');
- line-height: theme('lineHeight.6');
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11 9 3 3-3 3' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-position: right 0.75rem center;
-
- @apply text-scale-900 hover:text-slate-1200 dark:bg-scale-300 hover:bg-scale-200 dark:hover:bg-scale-400 bg-white;
-}
-
-.DocSearch-NoResults-Prefill-List li + li button {
- @apply border-scale-300 border-t dark:border-slate-400;
-}
-
-.DocSearch-NoResults-Prefill-List + .DocSearch-Help {
- @apply mt-3 text-xs leading-6;
-}
-
-.DocSearch-NoResults-Prefill-List + .DocSearch-Help a {
- @apply text-scale-900 dark:text-scale-900 font-semibold;
-}
-
-.DocSearch-Hit-action [data-cy] {
- width: 1.5rem;
- height: 1.5rem;
-}
-
-.DocSearch-Hit-action [data-cy] svg {
- display: none;
-}
-
-.DocSearch-Hit-action [data-cy='fav-recent'] {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' stroke='%23CBD5E1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-Hit-action [data-cy='fav-recent']:hover {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-}
-
-.DocSearch-Hit-action [data-cy='remove-recent'] {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-Hit-action [data-cy='remove-recent']:hover {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-Hit-action [data-cy='remove-fav']::before {
- @apply pointer-events-none absolute inset-0 bg-sky-50 content-[''] dark:bg-slate-700;
-}
-
-.DocSearch-Hit[aria-selected='true'] [data-cy='remove-fav']::before {
- @apply bg-sky-100 dark:bg-slate-700;
-}
-
-.DocSearch-Hit-action [data-cy='remove-fav']::after {
- content: '';
- position: absolute;
- pointer-events: none;
- width: calc(4.5rem + 1px);
- height: 1.5rem;
- margin-left: calc(-3rem - 1px);
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- background-repeat: no-repeat, repeat-y, no-repeat;
- background-position: left, center, right;
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' opacity='0.05' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-Hit-action [data-cy='remove-fav']:hover::after {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-
- .dark & {
- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' opacity='0.05' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),
- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
- }
-}
-
-.DocSearch-Hit-action + .DocSearch-Hit-action {
- // @apply ml-3 border-l border-slate-200 pl-3 dark:border-slate-200;
-}
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsx
index 3460e639584..8dc4608da94 100644
--- a/packages/ui/src/components/Command/CommandMenu.tsx
+++ b/packages/ui/src/components/Command/CommandMenu.tsx
@@ -60,9 +60,6 @@ const CommandMenu = () => {
const { isOpen, setIsOpen, actions, search, setSearch, pages, setPages, currentPage, site } =
useCommandMenu()
- console.log('currentPage page', currentPage)
- console.log('pages page', pages)
-
const ThemeOptions = ({ isSubItem = false }) => {
return (
<CommandGroup>