-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslideshow.css
More file actions
68 lines (62 loc) · 1.8 KB
/
slideshow.css
File metadata and controls
68 lines (62 loc) · 1.8 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
60
61
62
63
64
65
66
67
68
#chrome-slideshow-container {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
background-color: #000 !important;
z-index: 2147483647 !important;
display: flex !important;
flex-direction: column !important;
overflow: hidden !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
outline: none !important;
}
#chrome-slideshow-container *,
#chrome-slideshow-container *:focus,
#chrome-slideshow-container *:active {
outline: none !important;
box-shadow: none !important;
}
.slideshow-display {
flex: 1 !important;
position: relative !important;
overflow: hidden !important;
background-color: #000 !important;
}
#slideshow-current-img {
position: absolute !important;
top: 50% !important;
left: 50% !important;
max-width: 100% !important;
max-height: 100% !important;
object-fit: contain !important;
transition: opacity 0.3s ease-in-out !important;
}
/* 非缩放模式下居中 */
#slideshow-current-img:not(.panzoom-active) {
transform: translate(-50%, -50%) !important;
}
/* 缩放模式下由 panzoom 控制 transform */
#slideshow-current-img.panzoom-active {
top: 0 !important;
left: 0 !important;
max-width: none !important;
max-height: none !important;
}
/* 右上角计数器 */
#slideshow-counter {
position: absolute !important;
top: 15px !important;
right: 15px !important;
color: rgba(255, 255, 255, 0.8) !important;
font-size: 14px !important;
font-weight: bold !important;
background-color: rgba(0, 0, 0, 0.5) !important;
padding: 5px 12px !important;
border-radius: 15px !important;
font-family: Arial, sans-serif !important;
}