-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Move search button to sidebar
- Loading branch information
1 parent
dd81915
commit 46f354e
Showing
8 changed files
with
75 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import DocSidebar from '@theme-original/DocSidebar'; | ||
|
||
import NavbarSearch from '@theme/Navbar/Search'; | ||
import SearchBar from '@theme/SearchBar'; | ||
|
||
import styles from './styles.module.css'; | ||
|
||
export default function DocSidebarWrapper(props) { | ||
return ( | ||
<div className={styles.sidebar}> | ||
<NavbarSearch className={styles.navbar__search}> | ||
<SearchBar /> | ||
</NavbarSearch> | ||
|
||
<div className={styles.menu__wrapper}> | ||
<DocSidebar {...props} /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.navbar__search { | ||
display: inline-block; | ||
width: 100%; | ||
padding: 0 42px 0 8px; | ||
|
||
button, | ||
button:hover, | ||
button:active, | ||
button:focus { | ||
color: var(--text-color); | ||
background: transparent; | ||
border: 1px solid var(--neutral-7); | ||
border-color: var(--neutral-7) ; | ||
border-radius: 4px; | ||
width: 100%; | ||
height: 26px; | ||
padding: 0 8px; | ||
font-size: 12px;; | ||
} | ||
|
||
button:hover { | ||
border-color: var(--link-active); | ||
transition: ease-in-out 0.2s border-color; | ||
} | ||
|
||
svg, svg:hover { | ||
display: block; | ||
color: var(--text-color); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.menu__wrapper { | ||
>div { | ||
padding-top: 0 !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters