a b/src/static/css/main.css
1
.img-preview {
2
    width: 256px;
3
    height: 256px;
4
    position: relative;
5
    border: 5px solid #F8F8F8;
6
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
7
    margin-top: 1em;
8
    margin-bottom: 1em;    
9
}
10
11
.img-preview>div {
12
    width: 100%;
13
    height: 100%;
14
    background-size: 256px 256px;
15
    background-repeat: no-repeat;
16
    background-position: center;
17
}
18
19
input[type="file"] {
20
    display: none;
21
}
22
23
.upload-label{
24
    display: inline-block;
25
    padding: 12px 30px;
26
    background: #39D2B4;
27
    color: #fff;
28
    font-size: 1em;
29
    transition: all .4s;
30
    cursor: pointer;
31
}
32
33
.upload-label:hover{
34
    background: #34495E;
35
    color: #39D2B4;
36
}
37
38
.loader {
39
    border: 8px solid #f3f3f3; /* Light grey */
40
    border-top: 8px solid #3498db; /* Blue */
41
    border-radius: 50%;
42
    width: 50px;
43
    height: 50px;
44
    animation: spin 1s linear infinite;
45
}
46
47
@keyframes spin {
48
    0% { transform: rotate(0deg); }
49
    100% { transform: rotate(360deg); }
50
}