-
Notifications
You must be signed in to change notification settings - Fork 0
/
gazeimg.gquery.css
167 lines (149 loc) · 5.67 KB
/
gazeimg.gquery.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* ==================================================
//
// GazeImg.gQuery.css v1.2.0
// (c) 2020-present, JU Chengren (Ganxiaozhe)
//
// Licensed GPLv3 for open source use
// or GazeImg Commercial License for commercial use
//
// gquery.cn/plugins/gazeimg
//
// ================================================*/
body.gi-nobar {overflow: hidden!important;}
/** -------------------------------------
* Loading Marker
* ------------------------------------- */
.gi-loading {position: relative;background: #000;}
.gi-loading .loader,.gazeimg-content .loader {
display: block;width: 46px;height: 46px;border-radius: 100%;
position: absolute;top: calc(50% - 23px);left: calc(50% - 23px);
border: 4px solid #f3f3f3;border-top: 4px solid transparent;
animation:gia-spin 0.8s infinite linear;
}
.gi-loading a {
display: block;text-decoration: none;color: #fff;text-align: center;word-break: break-all;
position: absolute;top: 50%;left: 50%;transform: translateX(-50%) translateY(-50%);
min-width: 80px;width: 80%;
}
.gi-click {cursor: pointer;}
.gazeimg-container {
position: fixed;left: 0;top: 0;height: 100%;width: 100%;
outline: none;z-index: 20020214;
user-select: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;
}
.gazeimg-bg, .gazeimg-inner {position: absolute;top: 0;left: 0;width:100%;height:100%;}
.gazeimg-bg {background: rgb(0,0,0);opacity: 0.85;transition: opacity 0.35s;}
.gazeimg-inner {padding: 50px 0;animation: gia-fadeIn 0.5s;}
.gazeimg-nav, .gazeimg-footer {
position: absolute;top: 0;left: 0;z-index: 1;height: 50px;width: 100%;
display: flex;align-items: center;justify-content: space-between;
font-size: 13px;color: #fff;
background-color: rgba(0,0,0,.1);backdrop-filter: blur(10px);
}
/** -------------------------------------
* Operations
* ------------------------------------- */
.gazeimg-opts {display: flex;flex-wrap: nowrap;}
.gazeimg-opts.disabled .gazeimg-opt {opacity: 0.2;}
.gazeimg-opt {
display: inline-flex;align-items: center;justify-content: center;
width: 50px;height: 50px;background: rgba(0,0,0,0);opacity: 0.7;
transition: all 0.3s ease;cursor: pointer;font-size: 18px;
}
.gazeimg-opt:hover {background: rgba(0,0,0,.2);opacity: 1;}
.gazeimg-opt > i {transform: scale(0.9);transition: all 0.3s ease;}
.gazeimg-opt:hover > i {transform: scale(1.0);}
.gazeimg-opt-spin {
box-sizing: border-box;position: relative;
display: block;width: 14px;height: 14px;
border: 2px solid;border-right-color: transparent;border-radius: 100px;
}
.gazeimg-opt-spin:before {
content: "";display: block;box-sizing: border-box;
position: absolute;top: -3px;right: -1px;width: 6px;height: 6px;
border-top: 2px solid;border-right: 2px solid;
transform: rotate(68deg);
}
.gazeimg-opt-close {
box-sizing: border-box;position: relative;
display: block;width: 22px;height: 22px;
border: 2px solid transparent;border-radius: 40px
}
.gazeimg-opt-close::after,
.gazeimg-opt-close::before {
content: "";display: block;box-sizing: border-box;
position: absolute;width: 16px;height: 2px;
background: currentColor;transform: rotate(45deg);
border-radius: 5px;top: 8px;left: 1px
}
.gazeimg-opt-close::after {transform: rotate(-45deg)}
.gazeimg-footer {
top: unset;bottom: 0;
display: flex;align-items: center;justify-content: center;
}
.gazeimg-pages {padding: 12px;}
.gazeimg-title {
padding: 12px;max-width: 60%;text-align: center;
}
.gazeimg-title p {
display: -webkit-box!important;word-break: break-all;-webkit-box-orient: vertical;-webkit-line-clamp: 1;
overflow: hidden;text-overflow: ellipsis;
}
@media screen and (max-width: 767px){
.gazeimg-title {max-width: 90%;}
}
/** -------------------------------------
* Stage
* ------------------------------------- */
.gazeimg-stage {
width: 100%;height: 100%;
display: flex;flex-direction: column;flex-wrap: wrap;
}
.gazeimg-slide {
position: absolute;top: 0;left: 0;width: 100%;height: 100%;
display: flex;justify-content: center;align-items: center;
transition: all 0.3s ease;
}
.gazeimg-content {
position: absolute;width:52px;height:52px;overflow: visible;
transform-origin: center;transition: all 0.3s ease;
}
.gazeimg-content .dialog {
padding: 12px 20px;background: rgb(250,250,250);color: #222;font-size: 1.1em;
}
.gazeimg-content img {
width: 100%;height: 100%;max-width: 100%;max-height: 100%;
border: none;padding: 0;margin: 0;
transition: all 0.3s ease;
}
.gazeimg-content img.spin1 {transform: rotate(90deg);}
.gazeimg-content img.spin2 {transform: rotate(180deg);}
.gazeimg-content img.spin3 {transform: rotate(270deg);}
.gazeimg-content img.spin4 {transform: rotate(360deg);}
.gazeimg-content.zoom-in {cursor: zoom-in;}
.gazeimg-content.zoom-out {cursor: zoom-out;}
.gazeimg-content.grab, .gazeimg-slide.grab .gazeimg-content {
cursor: grab;
}
.gazeimg-content.grabbing, .gazeimg-container.grabbing .gazeimg-content {
cursor: grabbing;transition: none;
}
.gazeimg-container.grabbing .gazeimg-slide {transition: none;}
.gazeimg-container.x-grabbing .gazeimg-slide {display: flex!important;}
.gazeimg-slide.prev, .gazeimg-slide.next {display: none;}
@keyframes gia-spin {0% {transform:rotate(0);}100% {transform:rotate(360deg);}}
.gia-fadeIn {animation: gia-fadeIn 1.5s;}
@keyframes gia-fadeIn {
from {filter: contrast(0);opacity: 0;}
to {filter: contrast(1);opacity: 1;}
}
.gia-zoomIn {animation: gia-zoomIn 0.5s;}
@keyframes gia-zoomIn {
from {transform: scale(0);opacity: 0;}
to {transform: scale(1);opacity: 1;}
}
.gia-zoomOut {animation: gia-zoomOut 0.5s;}
@keyframes gia-zoomOut {
form {transform: scale(1);opacity: 1;}
to {transform: scale(0);opacity: 0;}
}