1
- import React from ' react' ;
1
+ import React from " react" ;
2
2
import styled from "@emotion/styled" ;
3
3
import fastXml from 'fast-xml-parser' ;
4
4
import { spacing , colors , fontSizes , radii } from "../constants" ;
5
5
import { ObservableCell } from "../components" ;
6
6
7
7
//Upload page specific css/html
8
8
export const UploadButton = styled ( "div" ) `
9
- position: relative;
10
- padding: ${ spacing [ 0 ] } ${ spacing [ 0 ] } ;
11
- margin: ${ spacing [ 2 ] } ${ spacing [ 0 ] } ;
12
- overflow: hidden;
13
- background-color: ${ colors . blue } ;
14
- font-size: ${ fontSizes [ 1 ] } ;
15
- border-radius: ${ radii [ 2 ] } ;
16
- color: ${ colors . white } ;
17
- text-decoration: none;
18
- display: inline-block;
19
- width: 300px;
20
- height: 20px;
21
- &:hover {
22
- background-color: ${ colors . lightblue } ;
23
- }
9
+ position: relative;
10
+ padding: ${ spacing [ 0 ] } ${ spacing [ 0 ] } ;
11
+ margin: ${ spacing [ 2 ] } ${ spacing [ 0 ] } ;
12
+ overflow: hidden;
13
+ background-color: ${ colors . blue } ;
14
+ font-size: ${ fontSizes [ 1 ] } ;
15
+ border-radius: ${ radii [ 2 ] } ;
16
+ color: ${ colors . white } ;
17
+ text-decoration: none;
18
+ display: inline-block;
19
+ width: 300px;
20
+ height: 20px;
21
+ &:hover {
22
+ background-color: ${ colors . lightblue } ;
23
+ }
24
24
` ;
25
25
26
26
export const UploadInput = styled ( "input" ) `
27
- visibility: hidden;
28
- position: relative;
29
- width: 300px;
30
- height: 50px;
31
- z-index: 1;
27
+ visibility: hidden;
28
+ position: relative;
29
+ width: 300px;
30
+ height: 50px;
31
+ z-index: 1;
32
32
` ;
33
33
34
34
export const UploadLabel = styled ( "label" ) `
35
- position: absolute;
36
- font-size: ${ fontSizes [ 1 ] } ;
37
- width: 300px;
38
- height: 50px;
35
+ position: absolute;
36
+ font-size: ${ fontSizes [ 1 ] } ;
37
+ width: 300px;
38
+ height: 50px;
39
39
` ;
40
40
41
41
export const DisplayTable = styled ( "table" ) `
42
- border-radius: ${ radii [ 0 ] } ;
43
- margin: ${ spacing [ 0 ] } ;
44
- padding: 8px;
45
- max-width: 500px;
46
- margin: auto;
42
+ border-radius: ${ radii [ 0 ] } ;
43
+ margin: ${ spacing [ 0 ] } ;
44
+ padding: 8px;
45
+ max-width: 500px;
46
+ margin: auto;
47
47
` ;
48
48
49
49
export const TableHeader = styled ( "th" ) `
50
- background-color: #dddddd;
51
- border: 1px solid #dddddd;
52
- text-align: left;
53
- padding: 8px;
50
+ background-color: #dddddd;
51
+ border: 1px solid #dddddd;
52
+ text-align: left;
53
+ padding: 8px;
54
54
` ;
55
55
56
- export const TableRow = styled ( "tr" ) `
57
- border: 1px solid #dddddd;
56
+ export const TableRow = styled ( "tr" ) `
57
+ border: 1px solid #dddddd;
58
58
` ;
59
59
//-------------------------------------------------
60
60
@@ -184,4 +184,4 @@ export default class FileUpload extends React.Component {
184
184
</ div >
185
185
)
186
186
}
187
- }
187
+ }
0 commit comments