aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/image-upload.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/styles/image-upload.scss')
-rw-r--r--src/styles/image-upload.scss91
1 files changed, 91 insertions, 0 deletions
diff --git a/src/styles/image-upload.scss b/src/styles/image-upload.scss
new file mode 100644
index 000000000..06176a7af
--- /dev/null
+++ b/src/styles/image-upload.scss
@@ -0,0 +1,91 @@
1.image-upload {
2 position: absolute;
3 width: 140px;
4 height: 140px;
5 border: 1px solid $theme-gray-lighter;
6 border-radius: $theme-border-radius-small;
7 background: $theme-gray-lightest;
8 overflow: hidden;
9 margin-top: 5px;
10
11 &__preview,
12 &__action {
13 position: absolute;
14 top: 0;
15 left: 0;
16 right: 0;
17 }
18
19 &__preview {
20 z-index: 1;
21 background-size: cover;
22 background-size: 100%;
23 background-repeat: no-repeat;
24 background-position: center center;
25 border-radius: 3px;
26 }
27
28 &__action {
29 position: relative;
30 z-index: 10;
31 opacity: 0;
32 transition: opacity 0.5s;
33 display: flex;
34 justify-content: center;
35
36 &-background {
37 position: absolute;
38 top: 0;
39 left: 0;
40 right: 0;
41 bottom: 0;
42 background: rgba($theme-gray, 0.7);
43 z-index: 10;
44 }
45
46 button {
47 position: relative;
48 z-index: 100;
49 color: #FFF;
50
51 .mdi {
52 color: #FFF;
53 }
54 }
55 }
56
57 &__dropzone {
58 text-align: center;
59 border-radius: 5px;
60 padding: 10px;
61 display: flex;
62 align-items: center;
63 justify-content: center;
64 flex-direction: column;
65 }
66
67 &__dropzone,
68 button {
69 .mdi {
70 margin-bottom: 5px;
71 }
72
73 p {
74 font-size: 10px;
75 line-height: 10px;
76 }
77 }
78
79 &:hover {
80 .image-upload__action {
81 opacity: 1;
82 }
83 }
84}
85
86.image-upload-wrapper {
87 .mdi {
88 font-size: 40px;
89 color: $theme-gray-light;
90 }
91} \ No newline at end of file