-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-file-upload.scss
105 lines (90 loc) · 2.18 KB
/
_auk-file-upload.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* ==========================================================================
auk-file-upload
========================================================================== */
.auk-file-upload {
background: transparent;
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
.auk-progress-bar {
width: 60%;
}
}
.auk-file-upload--full-height {
height: 100%;
.auk-file-upload__content {
flex: 1 1 auto;
}
}
.auk-file-upload__content {
border: 0.1rem dashed $auk-gray-300;
border-radius: .3rem;
width: 100%;
padding: 3rem;
height: 100%;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-decoration: none;
min-height: 12rem;
}
.auk-file-upload--gray-100 {
.auk-file-upload__content {
background-color: $auk-gray-100;
}
}
.auk-file-upload--success {
.auk-file-upload__content {
background-color: $auk-green-100;
border-color: $auk-green-300;
}
}
.auk-file-upload--error {
.auk-file-upload__content {
background-color: $auk-red-50;
border-color: $auk-red-300;
}
}
.auk-file-upload input[type="file"] {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0.0001;
}
.auk-file-upload input[type="file"]:hover:not([disabled]) {
cursor: pointer;
}
.auk-file-upload input[type="file"]:focus:not([disabled]) ~ .auk-file-upload__content {
outline: 0;
border-color: transparent;
box-shadow: inset 0 0 0 0.2rem $auk-yellow-500;
}
.auk-file-upload input[type="file"]:hover:not([disabled]) ~ .auk-file-upload__content {
background-color: $auk-gray-100;
}
.auk-file-upload__action-button {
pointer-events: none;
}
.auk-file-upload input[type="file"]:hover:not([disabled]) ~ .auk-file-upload__content {
.auk-file-upload__action-button {
color: $auk-blue-500;
box-shadow: inset 0 0 0 0.1rem $auk-blue-500;
}
}
.auk-file-upload input[type="file"]:active:not([disabled]) ~ .auk-file-upload__content {
.auk-file-upload__action-button {
color: $auk-blue-800;
box-shadow: inset 0 0 0 0.1rem $auk-blue-800;
}
}
.auk-button--redo {
position: absolute;
right: 1rem;
top: 1rem;
}