11import styled , { keyframes } from 'styled-components'
2- import { theme } from '../../../utils/themes '
2+ import ReactSVG from 'react-svg '
33
4+ import { theme } from '../../../utils/themes'
45import { Img } from '../../../components'
5-
66import loadingIcon from '../../../static/searchLoading.svg'
77
8- // import javascriptIcon from '../../../static/nodeIcons/javascript.svg'
9-
10- // import * as SuggestionIcons from './suggestionIcons'
11- export * from './suggestionIcons'
12-
138const rotate360 = keyframes `
149 from {
1510 transform: rotate(0deg);
@@ -155,11 +150,16 @@ export const Hint = styled.div`
155150 margin-top: 10px;
156151 margin-right: 15px;
157152 width: 30px;
153+ font-size: 1.1rem;
158154`
159- export const HintEnter = styled . div `
155+ export const HintEnter = styled ( ReactSVG ) `
160156 color: ${ theme ( 'u_panel.text' ) } ;
161157 margin-top: 10px;
162- margin-right: 10px;
158+ margin-right: 1.5em;
159+ width: 30px;
160+ height: 30px;
161+ transform: rotateX(180deg);
162+ fill: ${ theme ( 'u_panel.text' ) } ;
163163`
164164
165165export const SubInfoWraper = styled . div `
@@ -178,22 +178,38 @@ export const RepoStar = styled.div`
178178 margin-right: 10px;
179179`
180180
181- export const ImgIconWrapper = styled ( Img ) `
181+ export const NodeSVGIcon = styled ( ReactSVG ) `
182182 width: 40px;
183183 height: 40px;
184+ margin-top: 3px;
185+ transform: ${ props => ( props . reverse ? 'rotate(180deg)' : '' ) } ;
184186`
185187
186- export const SVGIconWrapper = styled . div `
187- > svg {
188- width: 40px ;
189- height: 40px ;
190- margin-top: 3px ;
191- }
188+ export const ThemeDot = styled . div `
189+ width: 35px;
190+ height: 35px ;
191+ margin-top: 5px ;
192+ background: ${ props => props . bg } ;
193+ border-radius: 50%;
192194`
193- export const AddonSVGIconWrapper = styled . div `
194- > svg {
195- width: 30px;
196- height: 30px;
197- margin-top: 20px;
198- }
195+
196+ // TODO: rename -> PrefixIcon
197+ export const PrefixSVGIcon = styled ( ReactSVG ) `
198+ width: 30px;
199+ height: 30px;
200+ margin-top: 20px;
201+ `
202+
203+ export const PrefixSearchIcon = styled ( ReactSVG ) `
204+ width: 30px;
205+ height: 30px;
206+ margin-top: 20px;
207+ fill: ${ theme ( 'u_panel.search_icon' ) } ;
208+ `
209+
210+ export const PrefixMagicIcon = styled ( ReactSVG ) `
211+ width: 30px;
212+ height: 25px;
213+ margin-top: 20px;
214+ transform: rotate(-30deg);
199215`
0 commit comments