11import styled from 'styled-components'
2+ import { Input } from 'antd'
23
34import Img from '@components/Img'
45import { theme , cs } from '@utils'
@@ -16,6 +17,7 @@ export const InnerWrapper = styled.div`
1617`
1718export const HeaderFuncs = styled . div `
1819 ${ cs . flexGrow ( ) } ;
20+ margin-top: -5px;
1921`
2022export const PinIconWrapper = styled . div `
2123 &:hover {
@@ -58,7 +60,7 @@ export const PinIcon = styled(Img)`
5860 opacity: 1;
5961 }
6062`
61- export const ExploreWrapper = styled . div `
63+ export const SearchWrapper = styled . div `
6264 padding-left: 16px;
6365 visibility: ${ ( { pin } ) => ( pin ? 'visible' : 'hidden' ) } ;
6466 opacity: ${ ( { pin } ) => ( pin ? 1 : 0 ) } ;
@@ -68,17 +70,46 @@ export const ExploreWrapper = styled.div`
6870 opacity: 1;
6971 }
7072`
71- export const ExploreContent = styled . div `
72- ${ cs . flex ( 'align-center' ) } ;
73- `
74- export const ExploreText = styled . div `
75- letter-spacing: 1.5px;
76- ${ ExploreContent } :hover & {
77- letter-spacing: 3px;
73+ export const SearchInput = styled ( Input ) `
74+ border: 1px solid;
75+ border-color: ${ theme ( 'sidebar.bg' ) } ;
76+ border-bottom-color: ${ theme ( 'sidebar.searchInputBottom' ) } ;
77+ height: 28px;
78+ margin-top: -4px;
79+ border-radius: 0px;
80+ margin-left: 5px;
81+ line-height: 20px;
82+
83+ width: 50%;
84+ font-size: 1rem;
85+ background: ${ theme ( 'sidebar.bg' ) } ;
86+ padding-left: 5px;
87+ color: ${ theme ( 'sidebar.menuLink' ) } ;
88+ text-align: left;
89+
90+ ::placeholder {
91+ color: ${ theme ( 'sidebar.searchInputHolder' ) } ;
7892 }
79- transition: letter-spacing 0.3s;
93+
94+ &:hover {
95+ color: ${ theme ( 'sidebar.menuLink' ) } ;
96+ border-color: ${ theme ( 'sidebar.bg' ) } ;
97+ border-bottom: 1px solid;
98+ border-bottom-color: ${ theme ( 'sidebar.searchInputBottom' ) } ;
99+ }
100+ &:focus {
101+ border-color: ${ theme ( 'sidebar.bg' ) } ;
102+ box-shadow: none;
103+ border-bottom: 1px solid;
104+ border-bottom-color: ${ theme ( 'sidebar.searchInputBottomActive' ) } ;
105+ color: ${ theme ( 'sidebar.menuLink' ) } ;
106+ text-align: left;
107+ }
108+ `
109+ export const SearchContent = styled . div `
110+ ${ cs . flex ( 'align-center' ) } ;
80111`
81- export const ExploreIcon = styled ( Img ) `
112+ export const SearchIcon = styled ( Img ) `
82113 fill: ${ theme ( 'button.primary' ) } ;
83114 width: 16px;
84115 height: 16px;
0 commit comments