1
1
import styled from 'styled-components'
2
+ import { Input } from 'antd'
2
3
3
4
import Img from '@components/Img'
4
5
import { theme , cs } from '@utils'
@@ -16,6 +17,7 @@ export const InnerWrapper = styled.div`
16
17
`
17
18
export const HeaderFuncs = styled . div `
18
19
${ cs . flexGrow ( ) } ;
20
+ margin-top: -5px;
19
21
`
20
22
export const PinIconWrapper = styled . div `
21
23
&:hover {
@@ -58,7 +60,7 @@ export const PinIcon = styled(Img)`
58
60
opacity: 1;
59
61
}
60
62
`
61
- export const ExploreWrapper = styled . div `
63
+ export const SearchWrapper = styled . div `
62
64
padding-left: 16px;
63
65
visibility:${ ( { pin} ) => ( pin ?'visible' :'hidden' ) } ;
64
66
opacity:${ ( { pin} ) => ( pin ?1 :0 ) } ;
@@ -68,17 +70,46 @@ export const ExploreWrapper = styled.div`
68
70
opacity: 1;
69
71
}
70
72
`
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' ) } ;
78
92
}
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' ) } ;
80
111
`
81
- export const ExploreIcon = styled ( Img ) `
112
+ export const SearchIcon = styled ( Img ) `
82
113
fill:${ theme ( 'button.primary' ) } ;
83
114
width: 16px;
84
115
height: 16px;