aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.scss
blob: 29943e1561f5eb007a92df340465da7279616401 (plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
.imageBox {
    border-radius: inherit;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;

    .imageBox-annotationLayer {
        position: absolute;
        transform-origin: left top;
        top: 0;
        width: 100%;
        pointer-events: none;
        mix-blend-mode: multiply; // bcz: makes text fuzzy!
        overflow: hidden;
    }

    .imageBox-fader {
        pointer-events: inherit;
    }
}

#upload-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
}

.imageBox-cont {
    padding: 0vw;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    pointer-events: inherit;
    background: transparent;

    img {
        height: auto;
        width: 100%;
    }
}

.imageBox-dot {
    position: absolute;
    bottom: 10;
    left: 0;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    background: gray;
}

#google-photos {
    transition: all 0.5s ease 0s;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    right: 15px;
    border: 2px solid black;
    border-radius: 50%;
    padding: 3px;
    background: white;
    cursor: pointer;
    opacity: 0.15;
}

#google-photos:hover {
    opacity: 1;
}

#google-tags {
    transition: all 0.5s ease 0s;
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    border: 2px solid black;
    border-radius: 50%;
    padding: 3px;
    background: white;
}

.imageBox-button {
    padding: 0vw;
    border: none;
    width: 100%;
    height: 100%;
}

.imageBox-fader {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    height: 100%;

    .imageBox-fadeBlocker,
    .imageBox-fadeBlocker-hover {
        width: 100%;
        height: 100%;
        position: absolute;
        background: black;
        display: flex;
        flex-direction: row;
        align-items: center;
        z-index: 1;

        .imageBox-fadeaway {
            object-fit: contain;
            width: 100%;
            height: 100%;
        }
    }
}
.imageBox-alternateDropTarget {
    position: absolute;
    color: white;
    background: black;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.imageBox-fader img {
    position: absolute;
    left: 0;
}

.imageBox-fadeBlocker-hover {
    opacity: 0;
}