+
diff --git a/src/components/video.tsx b/src/components/video.tsx
deleted file mode 100644
index 6ff43a4035..0000000000
--- a/src/components/video.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react"
-
-export default function Video() {
- return (
-
-
-
- )
-}
diff --git a/src/theme/Navbar/Content/index.tsx b/src/theme/Navbar/Content/index.tsx
index 35177010cb..834c1d9f10 100644
--- a/src/theme/Navbar/Content/index.tsx
+++ b/src/theme/Navbar/Content/index.tsx
@@ -178,7 +178,11 @@ const NavbarContent = (): JSX.Element => {
const items = useNavbarItems()
const [leftItems, rightItems] = splitNavbarItems(items)
-
+ const pageHasSearch = () => {
+ let location = window.location.pathname.split("/")[1]
+ let allowedPaths = ["docs", "graphql"]
+ return allowedPaths.includes(location)
+ }
const searchBarItem = items.find((item) => item.type === "search")
return (
@@ -187,7 +191,7 @@ const NavbarContent = (): JSX.Element => {
// TODO stop hardcoding items? (added by docusaurus)
// Render left navbar items
<>
- {mobileSidebar.shouldRender &&
}
+ {mobileSidebar.shouldRender && pageHasSearch() &&
}
{!mobileSidebar.disabled &&
}
diff --git a/src/theme/SearchBar/styles.css b/src/theme/SearchBar/styles.css
index c3f46ca2c8..726518c02a 100644
--- a/src/theme/SearchBar/styles.css
+++ b/src/theme/SearchBar/styles.css
@@ -116,17 +116,17 @@
display: none;
}
+ .DocSearch-Container > div {
+ width: 100vw;
+ border-radius: 0;
+ height: 100vh;
+ }
+
.DocSearch-Dropdown {
max-height: unset;
height: 80vh;
}
- .DocSearch-Modal {
- width: 100vw;
- height: 100vh;
- border-radius: 0px;
- }
-
.DocSearch-Container {
z-index: 201;
position: fixed;
@@ -140,6 +140,31 @@
border-radius: 10px;
border: 1px solid var(--ifm-color-brand-light-600);
}
+
+ .DocSearch-Button-Keys,
+ .DocSearch-Button-Placeholder {
+ display: none;
+ }
+
+ .DocSearch-Cancel {
+ appearance: none;
+ background: none;
+ border: 0;
+ color: var(--docsearch-highlight-color);
+ cursor: pointer;
+ display: inline-block;
+ flex: none;
+ font: inherit;
+ font-size: 1em;
+ font-weight: 500;
+ margin-left: var(--docsearch-spacing);
+ outline: none;
+ overflow: hidden;
+ padding: 0;
+ -webkit-user-select: none;
+ user-select: none;
+ white-space: nowrap;
+ }
}
.DocSearch-Button-Key {
diff --git a/static/images/video-thumbnail.webp b/static/images/video-thumbnail.webp
new file mode 100644
index 0000000000..14926c1051
Binary files /dev/null and b/static/images/video-thumbnail.webp differ
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 2dcb708658..1e54b007c5 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -66,6 +66,9 @@ module.exports = {
SPACE_20: "80px",
SPACE_21: "160px",
},
+ screens: {
+ "3xl": "2200px",
+ },
},
fontFamily: {
"space-grotesk": ["Space Grotesk", "sans-serif"],