-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImageBox.css
More file actions
executable file
·59 lines (53 loc) · 1.14 KB
/
ImageBox.css
File metadata and controls
executable file
·59 lines (53 loc) · 1.14 KB
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
.imageBox {
width: 100%;
position: relative;
overflow: hidden;
user-select: none;
}
.imageBox .imageItem.box {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.imageBox .imageItem.box>img {
width: 100%;
height: 100%;
}
.imageBox.Previous,
.imageBox.Next {
display: none;
position: absolute;
top: 0;
left: 0;
width: 6em;
bottom: 0;
background: rgba(126, 123, 123, 0.37);
z-index: 20;
cursor: pointer;
background-image: url("data:image/svg+xml,<svg fill=\"%23FFF\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15 4 L5 12 L15 20 L15 18 L7 12 L15 6 Z\"/></svg>");
background-repeat: no-repeat;
background-position: 50%;
}
.imageBox.Next {
left: auto;
left: unset;
right: 0;
transform: rotate(180deg);
}
.imageBox:hover .imageBox.Previous,
.imageBox:hover .imageBox.Next {
display: block;
}
.imageBox.textType0 {
transition: all 0.3s;
color: white;
font-size: 2em;
font-weight: bold;
z-index: 30;
position: absolute;
top: 20%;
left: 10%;
width: auto;
}