-
Notifications
You must be signed in to change notification settings - Fork 5
/
HoverPreview.css
95 lines (80 loc) · 2.11 KB
/
HoverPreview.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
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
#hover-preview-container {
display: none;
background: #fff;
position: absolute;
z-index: 5000;
left: 200px;
top: 40px;
pointer-events: none;
padding: 10px;
text-align: center;
}
#hover-preview-container .color-swatch-bg {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiPHPmDAMMGBsbw9lMDDgA6RKM%2F%2F%2F%2Fh3POnj1LCzsAAgwAQtYIcFfEyzkAAAAASUVORK5CYII%3D');
box-shadow: 0 0 4px rgba(0, 0, 0, 0.10);
}
#hover-preview-container .color-swatch {
width: 100px;
height: 100px;
background-size: 99.99%;
}
#hover-preview-container .image-preview {
width: 100px;
max-height: 100px;
}
#hover-preview-container .image-preview img {
max-width: 100%;
margin-bottom: -5px;
}
#hover-preview-container .img-size {
font-size: 0.85em;
color: #aaa;
margin-top: -5px;
}
#hover-preview-container.small-padding-bottom {
padding-bottom: 3px;
}
.preview-bubble, .preview-bubble-below {
border: 1px solid rgba(0, 0, 0, 0.10);
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.preview-bubble:before {
border-bottom: 25px solid transparent;
border-right: 25px solid rgba(0, 0, 0, 0.1);
bottom: -13px;
content: '';
position: absolute;
left: 40%;
-webkit-transform:rotate(135deg);
}
.preview-bubble:after {
border-bottom: 25px solid transparent;
border-right: 25px solid #fff;
bottom: -12px;
content: '';
position: absolute;
left: 40%;
-webkit-transform:rotate(135deg);
}
.preview-bubble-below:before {
border-top: 25px solid transparent;
border-right: 25px solid rgba(0, 0, 0, 0.1);
top: -13px;
content: '';
position: absolute;
left: 40%;
-webkit-transform:rotate(225deg);
}
.preview-bubble-below:after {
border-top: 25px solid transparent;
border-right: 25px solid #fff;
top: -12px;
content: '';
position: absolute;
left: 40%;
-webkit-transform:rotate(225deg);
}
.preview-highlight {
background-color: rgba(200, 200, 150, 0.4);
}