1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export const Container = {
|
14 | fontFamily: `-apple-system,
|
15 | BlinkMacSystemFont,
|
16 | "Segoe UI",
|
17 | Roboto,
|
18 | "Helvetica Neue",
|
19 | Arial,
|
20 | sans-serif,
|
21 | "Apple Color Emoji",
|
22 | "Segoe UI Emoji",
|
23 | "Segoe UI Symbol"`,
|
24 | fontWeight: '400',
|
25 | lineHeight: '1.5',
|
26 | color: '#212529',
|
27 | textAlign: 'left',
|
28 | paddingLeft: '15px',
|
29 | paddingRight: '15px',
|
30 | };
|
31 |
|
32 | export const NavBar = {
|
33 | position: 'relative',
|
34 | border: '1px solid transparent',
|
35 | borderColor: '#e7e7e7',
|
36 | };
|
37 |
|
38 | export const NavRight = {
|
39 | textAlign: 'right',
|
40 | };
|
41 |
|
42 | export const Nav = {
|
43 | margin: '7.5px',
|
44 | };
|
45 |
|
46 | export const NavItem = {
|
47 | display: 'inline-block',
|
48 | padding: '10px 5px',
|
49 | lineHeight: '20px',
|
50 | };
|
51 |
|
52 | export const NavButton = {
|
53 | display: 'inline-block',
|
54 | padding: '6px 12px',
|
55 | marginTop: '8px',
|
56 | marginBottom: '8px',
|
57 | fontSize: '14px',
|
58 | fontWeight: 400,
|
59 | lineHeight: '1.42857143',
|
60 | textAlign: 'center',
|
61 | whiteSpace: 'nowrap',
|
62 | verticalAlign: 'middle',
|
63 | touchAction: 'manipulation',
|
64 | cursor: 'pointer',
|
65 | userSelect: 'none',
|
66 | backgroundImage: 'none',
|
67 | border: '1px solid transparent',
|
68 | borderRadius: '4px',
|
69 | color: '#333',
|
70 | backgroundColor: '#fff',
|
71 | borderColor: '#ccc',
|
72 | };
|
73 |
|
74 | export const FormContainer = {
|
75 | textAlign: 'center',
|
76 | };
|
77 |
|
78 | export const FormSection = {
|
79 | marginBottom: '20px',
|
80 | backgroundColor: '#fff',
|
81 | border: '1px solid #ddd',
|
82 | borderRadius: '4px',
|
83 | textAlign: 'left',
|
84 | width: '400px',
|
85 | display: 'inline-block',
|
86 | };
|
87 |
|
88 | export const ErrorSection = {
|
89 | marginBottom: '20px',
|
90 | color: '#fff',
|
91 | backgroundColor: '#f0ad4e',
|
92 | border: '1px solid #eea236',
|
93 | borderRadius: '4px',
|
94 | textAlign: 'left',
|
95 | };
|
96 |
|
97 | export const SectionHeader = {
|
98 | color: '#fff',
|
99 | backgroundColor: '#337ab7',
|
100 | borderColor: '#337ab7',
|
101 | padding: '10px 15px',
|
102 | borderBottom: '1px solid transparent',
|
103 | borderTopLeftRadius: '3px',
|
104 | borderTopRightRadius: '3px',
|
105 | textAlign: 'center',
|
106 | };
|
107 |
|
108 | export const SectionFooter = {
|
109 | color: '#333',
|
110 | backgroundColor: '#f5f5f5',
|
111 | padding: '10px 15px',
|
112 | borderTop: '1px solid #ddd',
|
113 | borderTopLeftRadius: '3px',
|
114 | borderTopRightRadius: '3px',
|
115 | };
|
116 |
|
117 | export const SectionBody = {
|
118 | padding: '15px',
|
119 | };
|
120 |
|
121 | export const FormRow = {
|
122 | marginBottom: '15px',
|
123 | };
|
124 |
|
125 | export const ActionRow = {
|
126 | marginBottom: '15px',
|
127 | };
|
128 |
|
129 | export const Input = {
|
130 | display: 'block',
|
131 | width: '100%',
|
132 | height: '34px',
|
133 | padding: '6px 12px',
|
134 | fontSize: '14px',
|
135 | lineHeight: '1.42857143',
|
136 | color: '#555',
|
137 | backgroundColor: '#fff',
|
138 | backgroundImage: 'none',
|
139 | border: '1px solid #ccc',
|
140 | borderRadius: '4px',
|
141 | boxShadow: 'inset 0 1px 1px rgba(0,0,0,.075)',
|
142 | boxSizing: 'border-box',
|
143 | transition: 'border-color ease-in-out .15s,box-shadow ease-in-out .15s',
|
144 | };
|
145 |
|
146 | export const Button = {
|
147 | display: 'inline-block',
|
148 | padding: '6px 12px',
|
149 | marginBottom: '0',
|
150 | fontSize: '14px',
|
151 | fontWeight: 400,
|
152 | lineHeight: '1.42857143',
|
153 | textAlign: 'center',
|
154 | whiteSpace: 'nowrap',
|
155 | verticalAlign: 'middle',
|
156 | touchAction: 'manipulation',
|
157 | cursor: 'pointer',
|
158 | userSelect: 'none',
|
159 | backgroundImage: 'none',
|
160 | border: '1px solid transparent',
|
161 | borderRadius: '4px',
|
162 | color: '#333',
|
163 | backgroundColor: '#fff',
|
164 | borderColor: '#ccc',
|
165 | };
|
166 |
|
167 | export const SignInButton = {
|
168 | position: 'relative',
|
169 | padding: '6px 12px 6px 44px',
|
170 | fontSize: '14px',
|
171 | textAlign: 'left',
|
172 | whiteSpace: 'nowrap',
|
173 | overflow: 'hidden',
|
174 | textOverflow: 'ellipsis',
|
175 | display: 'block',
|
176 | width: '100%',
|
177 | marginTop: '2px',
|
178 | '#google_signin_btn': {
|
179 | color: '#fff',
|
180 | backgroundColor: '#dd4b39',
|
181 | borderColor: 'rgba(0,0,0,0.2)',
|
182 | },
|
183 | '#facebook_signin_btn': {
|
184 | color: '#fff',
|
185 | backgroundColor: '#3b5998',
|
186 | borderColor: 'rgba(0,0,0,0.2)',
|
187 | },
|
188 | };
|
189 |
|
190 | export const Space = {
|
191 | display: 'inline-block',
|
192 | width: '20px',
|
193 | };
|
194 |
|
195 | export const A = {
|
196 | color: '#007bff',
|
197 | cursor: 'pointer',
|
198 | };
|
199 |
|
200 | export const Pre = {
|
201 | overflow: 'auto',
|
202 | fontFamily: `Menlo,
|
203 | Monaco,
|
204 | Consolas,
|
205 | "Courier New",
|
206 | monospace`,
|
207 | display: 'block',
|
208 | padding: '9.5px',
|
209 | margin: '0 0 10px',
|
210 | fontSize: '13px',
|
211 | lineHeight: '1.42857143',
|
212 | color: '#333',
|
213 | wordBreak: 'break-all',
|
214 | wordWrap: 'break-word',
|
215 | backgroundColor: '#f5f5f5',
|
216 | border: '1px solid #ccc',
|
217 | borderRadius: '4px',
|
218 | };
|
219 |
|
220 | export const Col1 = {
|
221 | display: 'inline-block',
|
222 | width: '8.33333333%',
|
223 | };
|
224 |
|
225 | export const Col2 = {
|
226 | display: 'inline-block',
|
227 | width: '16.66666667%',
|
228 | };
|
229 |
|
230 | export const Col3 = {
|
231 | display: 'inline-block',
|
232 | width: '25%',
|
233 | };
|
234 |
|
235 | export const Col4 = {
|
236 | display: 'inline-block',
|
237 | width: '33.33333333%',
|
238 | };
|
239 |
|
240 | export const Col5 = {
|
241 | display: 'inline-block',
|
242 | width: '41.66666667%',
|
243 | };
|
244 |
|
245 | export const Col6 = {
|
246 | display: 'inline-block',
|
247 | width: '50%',
|
248 | };
|
249 |
|
250 | export const Col7 = {
|
251 | display: 'inline-block',
|
252 | width: '58.33333333%',
|
253 | };
|
254 |
|
255 | export const Col8 = {
|
256 | display: 'inline-block',
|
257 | width: '66.66666667%',
|
258 | };
|
259 |
|
260 | export const Col9 = {
|
261 | display: 'inline-block',
|
262 | width: '75%',
|
263 | };
|
264 |
|
265 | export const Col10 = {
|
266 | display: 'inline-block',
|
267 | width: '83.33333333%',
|
268 | };
|
269 |
|
270 | export const Col11 = {
|
271 | display: 'inline-block',
|
272 | width: '91.66666667%',
|
273 | };
|
274 |
|
275 | export const Col12 = {
|
276 | display: 'inline-block',
|
277 | width: '100%',
|
278 | };
|
279 |
|
280 | export const Hidden = {
|
281 | display: 'none',
|
282 | };
|
283 |
|
284 | export const Bootstrap = {
|
285 | container: Container,
|
286 |
|
287 | navBar: NavBar,
|
288 | nav: Nav,
|
289 | navRight: NavRight,
|
290 | navItem: NavItem,
|
291 | navButton: NavButton,
|
292 |
|
293 | formContainer: FormContainer,
|
294 | formSection: FormSection,
|
295 | errorSection: ErrorSection,
|
296 | sectionHeader: SectionHeader,
|
297 | sectionBody: SectionBody,
|
298 | sectionFooter: SectionFooter,
|
299 |
|
300 | formRow: FormRow,
|
301 | actionRow: ActionRow,
|
302 |
|
303 | space: Space,
|
304 |
|
305 | signInButton: SignInButton,
|
306 |
|
307 | input: Input,
|
308 | button: Button,
|
309 | a: A,
|
310 | pre: Pre,
|
311 |
|
312 | col1: Col1,
|
313 | col2: Col2,
|
314 | col3: Col3,
|
315 | col4: Col4,
|
316 | col5: Col5,
|
317 | col6: Col6,
|
318 | col7: Col7,
|
319 | col8: Col8,
|
320 | col9: Col9,
|
321 | col10: Col10,
|
322 | col11: Col11,
|
323 | col12: Col12,
|
324 |
|
325 | hidden: Hidden,
|
326 | };
|
327 |
|
328 |
|
329 |
|
330 |
|
331 | export default Bootstrap;
|