質問編集履歴
1
SeatchBtn追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,4 +90,86 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
+
|
94
|
+
|
95
|
+
```SearchBtn.js.jsx
|
96
|
+
|
93
|
-
|
97
|
+
import styled, { css } from "styled-components";
|
98
|
+
|
99
|
+
import React from 'react'
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
import { BtnIcon } from '../Atoms/Icon.js.jsx'
|
104
|
+
|
105
|
+
import { Text } from '../Utils/Text.js'
|
106
|
+
|
107
|
+
import { Flex } from '../Utils/Flex.js'
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
import Color from '../const/Color.js'
|
112
|
+
|
113
|
+
import Size from '../const/Size.js'
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
export class SearchBtn extends React.Component {
|
118
|
+
|
119
|
+
render () {
|
120
|
+
|
121
|
+
return (
|
122
|
+
|
123
|
+
<Wrapper>
|
124
|
+
|
125
|
+
<Flex hs="100%" align="center" justify="center">
|
126
|
+
|
127
|
+
<BtnIcon url="SEARCH" type />
|
128
|
+
|
129
|
+
</Flex>
|
130
|
+
|
131
|
+
</Wrapper>
|
132
|
+
|
133
|
+
)
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
...略...
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
const Wrapper = styled.div`
|
144
|
+
|
145
|
+
height: 14px
|
146
|
+
|
147
|
+
width: 30px;
|
148
|
+
|
149
|
+
padding: 5px;
|
150
|
+
|
151
|
+
background-color: ${ Color.MAIN };
|
152
|
+
|
153
|
+
border: 1px solid ${ Color.MAIN_SHADOW };
|
154
|
+
|
155
|
+
cursor: pointer;
|
156
|
+
|
157
|
+
border-radius: 4px;
|
158
|
+
|
159
|
+
border-bottom: 3px solid ${ Color.MAIN_SHADOW };
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
&:active {
|
164
|
+
|
165
|
+
transform: translateY(2px);
|
166
|
+
|
167
|
+
border-bottom: 1px solid ${ Color.SUB1 };
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
`
|
172
|
+
|
173
|
+
...略...
|
174
|
+
|
175
|
+
```
|