aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ComparisonBox.scss
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-04-28 21:58:10 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-04-28 21:58:10 -0700
commit26abe109bdb556d86a2a3fe39377a080a2a902f1 (patch)
treed6a7ac5e97a2f120068ac1fbdd37dade87dca24b /src/client/views/nodes/ComparisonBox.scss
parentbb170fe119eb1831e96ebc1ae10553334398cf45 (diff)
fixed bug where user cannot select comparison box when images and box are the same size
Diffstat (limited to 'src/client/views/nodes/ComparisonBox.scss')
-rw-r--r--src/client/views/nodes/ComparisonBox.scss104
1 files changed, 56 insertions, 48 deletions
diff --git a/src/client/views/nodes/ComparisonBox.scss b/src/client/views/nodes/ComparisonBox.scss
index 5449cd145..f3ad2b8b9 100644
--- a/src/client/views/nodes/ComparisonBox.scss
+++ b/src/client/views/nodes/ComparisonBox.scss
@@ -3,69 +3,77 @@
border-radius: inherit;
width: 100%;
height: 100%;
+ background-color: grey;
- .clip-div {
+ .content-wrapper {
position: absolute;
- top: 0;
- left: 0;
- width: 50%;
- height: 100%;
- overflow: hidden;
- z-index: 999;
+ bottom: 0;
+ width: 100%;
+ height: 95%;
- .beforeBox-cont {
+ .clip-div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 50%;
height: 100%;
- overflow: auto;
- background-color: rgb(230, 230, 230);
+ overflow: hidden;
+ z-index: 999;
+
+ .beforeBox-cont {
+ height: 100%;
+ overflow: auto;
+ background-color: rgb(240, 240, 240);
+ }
+
+ .slide-bar {
+ position: absolute;
+ width: 5px;
+ height: 100%;
+ top: 0;
+ right: 0;
+ background-color: grey;
+ cursor: ew-resize;
+ }
}
- .slide-bar {
+ .afterBox-cont {
position: absolute;
- width: 5px;
- height: 100%;
top: 0;
right: 0;
- background-color: white;
- cursor: ew-resize;
+ height: 100%;
+ width: 100%;
+ overflow: hidden;
+ background-color: lightgray;
}
- }
- .afterBox-cont {
- position: absolute;
- top: 0;
- right: 0;
- height: 100%;
- width: 100%;
- overflow: hidden;
- background-color: rgb(200, 200, 200);
- }
-
- .clear-button {
- position: absolute;
- top: 3px;
- opacity: 0.8;
- pointer-events: all;
- cursor: pointer;
- }
+ .clear-button {
+ position: absolute;
+ top: 3px;
+ opacity: 0.8;
+ pointer-events: all;
+ cursor: pointer;
+ }
- .clear-button.before {
- left: 3px;
- }
+ .clear-button.before {
+ left: 3px;
+ }
- .clear-button.after {
- right: 3px;
- }
+ .clear-button.after {
+ right: 3px;
+ }
- .placeholder {
- width: 50%;
- height: 50%;
- margin-top: 25%;
- margin-left: 25%;
+ .placeholder {
+ width: 50%;
+ height: 50%;
+ margin-top: 25%;
+ margin-left: 25%;
- .upload-icon {
- width: 100%;
- height: 100%;
- opacity: 0.5;
+ .upload-icon {
+ width: 100%;
+ height: 100%;
+ opacity: 0.5;
+ }
}
}
} \ No newline at end of file