aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/ImageBox.scss')
-rw-r--r--src/client/views/nodes/ImageBox.scss82
1 files changed, 49 insertions, 33 deletions
diff --git a/src/client/views/nodes/ImageBox.scss b/src/client/views/nodes/ImageBox.scss
index 57c024bbf..43f4a0ba9 100644
--- a/src/client/views/nodes/ImageBox.scss
+++ b/src/client/views/nodes/ImageBox.scss
@@ -1,4 +1,32 @@
-.imageBox-cont, .imageBox-cont-interactive {
+.imageBox,
+.imageBox-dragging {
+ pointer-events: all;
+ border-radius: inherit;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ transform-origin: top left;
+
+ .imageBox-fader {
+ pointer-events: all;
+ }
+}
+
+.imageBox-dragging {
+ .imageBox-fader {
+ pointer-events: none;
+ }
+}
+
+#upload-icon {
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ width: 20px;
+ height: 20px;
+}
+
+.imageBox-cont {
padding: 0vw;
position: absolute;
text-align: center;
@@ -7,18 +35,13 @@
max-width: 100%;
max-height: 100%;
pointer-events: none;
- background:transparent;
-}
+ background: transparent;
-.imageBox-container {
- border-radius: inherit;
- width:100%;
- height:100%;
- position: absolute;
-}
-
-.imageBox-cont-interactive {
- pointer-events: all;
+ img {
+ height: auto;
+ width: 100%;
+ pointer-events: all;
+ }
}
.imageBox-dot {
@@ -31,16 +54,6 @@
background: gray;
}
-.imageBox-cont img {
- height: auto;
- width: 100%;
-}
-
-.imageBox-cont-interactive img {
- height: auto;
- width: 100%;
-}
-
#google-photos {
transition: all 0.5s ease 0s;
width: 30px;
@@ -53,9 +66,10 @@
padding: 3px;
background: white;
cursor: pointer;
- opacity:0.15;
+ opacity: 0.15;
}
-#google-photos:hover{
+
+#google-photos:hover {
opacity: 1;
}
@@ -98,18 +112,18 @@
}
}
-#cf {
+.imageBox-fader {
position: relative;
width: 100%;
margin: 0 auto;
display: flex;
- align-items: center;
height: 100%;
overflow: hidden;
.imageBox-fadeBlocker {
width: 100%;
height: 100%;
+ position: absolute;
background: black;
display: flex;
flex-direction: row;
@@ -124,7 +138,7 @@
}
}
-#cf img {
+.imageBox-fader img {
position: absolute;
left: 0;
}
@@ -136,10 +150,12 @@
transition: opacity 1s ease-in-out;
}
-.imageBox-fadeBlocker:hover {
- -webkit-transition: opacity 1s ease-in-out;
- -moz-transition: opacity 1s ease-in-out;
- -o-transition: opacity 1s ease-in-out;
- transition: opacity 1s ease-in-out;
- opacity: 0;
+.imageBox:hover {
+ .imageBox-fadeBlocker {
+ -webkit-transition: opacity 1s ease-in-out;
+ -moz-transition: opacity 1s ease-in-out;
+ -o-transition: opacity 1s ease-in-out;
+ transition: opacity 1s ease-in-out;
+ opacity: 0;
+ }
} \ No newline at end of file