diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-11-12 19:12:29 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2017-11-12 19:12:29 +0100 |
commit | a1bdd02fca413cdc314137dc65e835131c358e72 (patch) | |
tree | 9e1e48092288e2a578b84cb366da3276553c39cf /src/styles/image-upload.scss | |
parent | Merge pull request #252 from meetfranz/feature/mute-service (diff) | |
download | ferdium-app-a1bdd02fca413cdc314137dc65e835131c358e72.tar.gz ferdium-app-a1bdd02fca413cdc314137dc65e835131c358e72.tar.zst ferdium-app-a1bdd02fca413cdc314137dc65e835131c358e72.zip |
[wip] add icon upload
Diffstat (limited to 'src/styles/image-upload.scss')
-rw-r--r-- | src/styles/image-upload.scss | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/styles/image-upload.scss b/src/styles/image-upload.scss new file mode 100644 index 000000000..764bb3158 --- /dev/null +++ b/src/styles/image-upload.scss | |||
@@ -0,0 +1,52 @@ | |||
1 | .image-upload { | ||
2 | position: absolute; | ||
3 | width: 100px; | ||
4 | height: 100px; | ||
5 | border-radius: $theme-border-radius; | ||
6 | overflow: hidden; | ||
7 | |||
8 | &__preview, | ||
9 | &__action { | ||
10 | position: absolute; | ||
11 | top: 0; | ||
12 | left: 0; | ||
13 | right: 0; | ||
14 | } | ||
15 | |||
16 | &__preview { | ||
17 | z-index: 1; | ||
18 | background-size: cover; | ||
19 | background-size: 100%; | ||
20 | background-repeat: no-repeat; | ||
21 | background-position: center center; | ||
22 | margin: 5px; | ||
23 | } | ||
24 | |||
25 | &__action { | ||
26 | position: relative; | ||
27 | z-index: 10; | ||
28 | opacity: 0; | ||
29 | transition: opacity 0.5s; | ||
30 | |||
31 | &-background { | ||
32 | position: absolute; | ||
33 | top: 0; | ||
34 | left: 0; | ||
35 | right: 0; | ||
36 | bottom: 0; | ||
37 | background: rgba($theme-gray, 0.7); | ||
38 | z-index: 10; | ||
39 | } | ||
40 | |||
41 | button { | ||
42 | position: relative; | ||
43 | z-index: 100; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | &:hover { | ||
48 | .image-upload__action { | ||
49 | opacity: 1; | ||
50 | } | ||
51 | } | ||
52 | } \ No newline at end of file | ||