Skip to content

Commit

Permalink
docs: styles 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Apr 22, 2024
1 parent 1443b67 commit fd206a7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
2 changes: 2 additions & 0 deletions docs/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This is just so that GitHub shows the language "Swift" as the repo language.
*.mdx linguist-language=Swift
6 changes: 0 additions & 6 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ const config: Config = {
routeBasePath: '/',
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/lodev09/react-native-true-sheet/blob/main/docs/',
versions: {
current: {
label: pkg.version,
badge: true,
},
},
},
blog: {
showReadingTime: true,
Expand Down
17 changes: 13 additions & 4 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,19 @@
--ifm-alert-background-color: #11663f;
}

.menu_node_modules-\@docusaurus-theme-classic-lib-theme-DocSidebar-Desktop-Content-styles-module {
padding: 1rem !important;
.padding-top--md {
padding: 1.5rem !important;
}

.docSidebarContainer_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-Sidebar-styles-module {
border-right-width: 0px !important;
.doc-sidebar-content {
padding: 1.5rem !important;
}

.theme-doc-sidebar-container {
border-right-width: 0 !important;
}

.pagination-nav__link {
background-color: var(--ifm-menu-color-background-active);
border-width: 0;
}
14 changes: 14 additions & 0 deletions docs/src/theme/DocSidebar/Desktop/Content/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import Content from '@theme-original/DocSidebar/Desktop/Content'
import type ContentType from '@theme/DocSidebar/Desktop/Content'
import type { WrapperProps } from '@docusaurus/types'

type Props = WrapperProps<typeof ContentType>

export default function ContentWrapper(props: Props): React.ReactElement {
return (
<>
<Content {...props} className="doc-sidebar-content" />
</>
)
}

0 comments on commit fd206a7

Please sign in to comment.