diff --git a/src/components/Header/styles.ts b/src/components/Header/styles.ts index 6fe64c6..9c9d4bf 100644 --- a/src/components/Header/styles.ts +++ b/src/components/Header/styles.ts @@ -35,6 +35,18 @@ export const logoImageStyle = mergeStyles({ lineHeight: "1", }); +export const skipContentStyle = mergeStyles({ + left: "50%", + position: "absolute", + transform: "translateY(-250%)", + padding: "8px", + transition: "transform 0.3s", + + "&:focus": { + transform: "translateY(0%)", + }, +}); + export const headerPipeStyle = mergeStyles({ marginTop: "0px !important", marginLeft: "7px !important", diff --git a/src/pages/Docs/Docs.index.tsx b/src/pages/Docs/Docs.index.tsx index 3df1922..6faa53e 100644 --- a/src/pages/Docs/Docs.index.tsx +++ b/src/pages/Docs/Docs.index.tsx @@ -9,6 +9,7 @@ import DocsHtmlContent from "./components/DocsHtmlContent"; import Topic from "./components/Topic"; import { DATA_URL, SAS_URL, STAC_URL } from "../../utils/constants"; import ScrollToTop from "../../components/ScrollToTop"; +import { skipContentStyle } from "components/Header/styles"; const OpenApiSpec = React.lazy(() => import("./components/OpenApiSpec")); @@ -59,6 +60,15 @@ const Docs = () => { const documentationPane = (