-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
72 lines (64 loc) · 1.65 KB
/
style.css
File metadata and controls
72 lines (64 loc) · 1.65 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
69
70
71
72
#advanced-image-viewer-extension {
display: block;
position: fixed;
z-index: 10000;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.9);
}
#advanced-image-viewer-controls-holder {
position: absolute;
bottom: 10px;
display: flex;
width: 100vw;
flex-wrap: wrap;
justify-content: center;
gap: 5px;
z-index: 10001;
user-select: none; /* 禁止文本选择 */
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE/Edge */
}
#advanced-image-viewer-img-holder img {
position: absolute;
transform: translate(-50%, -50%);
left: 50vw;
top: calc(50vh - 30px);
-webkit-user-drag: none;
cursor: grab;
max-height: calc(70vh);
max-width: 70vw;
/*object-fit: contain;*/
user-select: none; /* 禁止文本选择 */
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE/Edge */
}
.control-group {
background: rgba(255, 255, 255, 0.1);
padding: 5px;
border-radius: 5px;
display: flex;
gap: 5px;
}
#advanced-image-viewer-controls-holder img {
width: 20px;
height: 20px;
}
#advanced-image-viewer-controls-holder button {
padding: 5px 8px;
cursor: pointer;
background: #333;
color: white;
border-width: 1px;
border-style: solid;
border-color: transparent;
border-radius: 3px;
font-size: 12px;
}
#advanced-image-viewer-controls-holder button:hover {
background: #555;
}