-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
67 lines (54 loc) · 1.29 KB
/
index.css
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
.image-diff {
display: inline-block;
}
.image-diff__inner {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEX5+fn///8pDrwNAAAAFElEQVQI12NgsP/AQAz+f4CBGAwAJIIdTTn0+w0AAAAASUVORK5CYII=);
margin: 0;
position: absolute;
}
.image-diff__before {
box-shadow: 0 0 0 1px #f77;
right: 0px;
margin: 0;
position: absolute;
}
.image-diff__after {
right: 0;
margin: 0;
position: absolute;
}
/* fix border color in left fade pos */
.image-diff__inner--fade .image-diff__wrapper {
z-index: 1;
position: absolute;
}
.image-diff__wrapper {
box-shadow: 0 0 0 1px #63c363;
}
/*
* difference mode
*/
.image-diff__inner--difference .image-diff__after img {
mix-blend-mode: difference;
}
.image-diff__inner--difference .image-diff__before,
.image-diff__inner--difference .image-diff__after {
position: absolute;
top: 0;
left: 0;
border: none;
}
.image-diff__inner--difference {
position: relative;
-webkit-filter: invert(1); /* white base color instead of black */
}
/*
* swipe mode
*/
.image-diff__inner--swipe .image-diff__wrapper {
box-shadow: -7px 0 10px -5px rgba(0,0,0,.5), 0 0 0 1px #63c363;
margin: 0;
overflow: hidden;
position: absolute;
right: 0;
}