PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more / 4.5.1
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more v4.5.1
4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.14 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.10 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.4.0 4.4.1 4.4.10 4.4.11 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1
embedpress / assets / css / ep-pdf-lightbox.css
embedpress / assets / css Last commit date
fonts 9 months ago vendor 8 months ago admin-notices.css 2 months ago admin.build.css 2 months ago admin.css 8 months ago analytics.build.css 9 months ago blocks.build.css 3 months ago carousel.min.css 2 years ago el-icon.css 3 months ago embedpress-elementor.css 2 years ago embedpress.css 3 months ago ep-pdf-lightbox.css 3 months ago feature-notices.css 8 months ago font.css 7 years ago glider.min.css 2 years ago index.html 7 years ago lazy-load.css 6 months ago meetup-events.css 8 months ago modal.css 8 months ago onboarding.build.css 2 months ago pdf-gallery.css 3 months ago plyr.css 9 months ago preview.css 6 years ago settings-icons.css 9 months ago settings.css 3 months ago
ep-pdf-lightbox.css
280 lines
1 /* ===========================================
2 EmbedPress PDF Lightbox — Thumbnail + Lightbox
3 =========================================== */
4
5 /* Book Card Container */
6 .ep-pdf-thumbnail-card {
7 display: inline-block;
8 text-align: center;
9 max-width: 100%;
10 cursor: pointer;
11 }
12
13 /* Book Wrap */
14 .ep-pdf-thumbnail-wrap {
15 position: relative;
16 display: inline-block;
17 max-width: 100%;
18 overflow: hidden;
19 border-radius: 4px;
20 }
21
22 /* The book "cover" */
23 .ep-pdf-thumbnail-wrap .ep-pdf-thumbnail-inner {
24 position: relative;
25 display: block;
26 width: 100%;
27 height: 100%;
28 background: #fff;
29 overflow: hidden;
30 }
31
32 /* Thumbnail Canvas & Image */
33 .ep-pdf-thumbnail-canvas,
34 .ep-pdf-thumbnail-custom {
35 display: block;
36 max-width: 100%;
37 height: auto;
38 }
39
40 /* Loading shimmer */
41 .ep-pdf-thumbnail-canvas[data-loading="true"] {
42 background: linear-gradient(90deg, #f5f3ef 25%, #ece8e1 50%, #f5f3ef 75%);
43 background-size: 200% 100%;
44 animation: epLightboxShimmer 1.5s infinite;
45 min-height: 280px;
46 min-width: 200px;
47 }
48
49 @keyframes epLightboxShimmer {
50 0% { background-position: 200% 0; }
51 100% { background-position: -200% 0; }
52 }
53
54 /* Fallback placeholder */
55 .ep-pdf-thumbnail-placeholder {
56 display: flex;
57 align-items: center;
58 justify-content: center;
59 flex-direction: column;
60 min-height: 280px;
61 min-width: 200px;
62 background: #f9f7f4;
63 color: #999;
64 }
65
66 /* Hover overlay */
67 .ep-pdf-thumbnail-overlay {
68 position: absolute;
69 inset: 0;
70 background: rgba(0, 0, 0, 0);
71 display: flex;
72 align-items: center;
73 justify-content: center;
74 transition: background 0.3s ease;
75 pointer-events: none;
76 z-index: 1;
77 }
78
79 .ep-pdf-thumbnail-card:hover .ep-pdf-thumbnail-overlay {
80 background: rgba(0, 0, 0, 0.4);
81 }
82
83 /* Open/play icon circle */
84 .ep-pdf-thumbnail-icon-circle {
85 width: 56px;
86 height: 56px;
87 border-radius: 50%;
88 background: rgba(255, 255, 255, 0.95);
89 display: flex;
90 align-items: center;
91 justify-content: center;
92 opacity: 0;
93 transform: scale(0.7);
94 transition: opacity 0.3s ease, transform 0.3s ease;
95 }
96
97 .ep-pdf-thumbnail-card:hover .ep-pdf-thumbnail-icon-circle {
98 opacity: 1;
99 transform: scale(1);
100 }
101
102 .ep-pdf-thumbnail-icon-circle svg {
103 width: 24px;
104 height: 24px;
105 fill: #333;
106 margin-left: 2px;
107 }
108
109 /* Editor: show play icon always (no hover in editor) */
110 .block-editor-block-list__layout .ep-pdf-thumbnail-overlay {
111 background: rgba(0, 0, 0, 0.25);
112 }
113
114 .block-editor-block-list__layout .ep-pdf-thumbnail-icon-circle {
115 opacity: 1;
116 transform: scale(1);
117 }
118
119 .block-editor-block-list__layout .ep-pdf-thumbnail-card {
120 cursor: default;
121 }
122
123 /* ===========================================
124 Trigger Elements (Button / Link / Text)
125 =========================================== */
126
127 /* Shared trigger styles */
128 .ep-pdf-trigger {
129 cursor: pointer;
130 display: inline-block;
131 transition: all 0.2s ease;
132 }
133
134 /* Button style */
135 .ep-pdf-trigger--button {
136 background: #5b4e96;
137 color: #fff;
138 padding: 12px 28px;
139 border-radius: 6px;
140 font-size: 15px;
141 font-weight: 600;
142 letter-spacing: 0.3px;
143 box-shadow: 0 2px 6px rgba(91, 78, 150, 0.3);
144 }
145
146 .ep-pdf-trigger--button:hover {
147 background: #4a3f7e;
148 box-shadow: 0 4px 12px rgba(91, 78, 150, 0.4);
149 transform: translateY(-1px);
150 }
151
152 /* Link style */
153 .ep-pdf-trigger--link {
154 color: #5b4e96;
155 font-size: 15px;
156 font-weight: 500;
157 text-decoration: underline;
158 text-underline-offset: 3px;
159 }
160
161 .ep-pdf-trigger--link:hover {
162 color: #4a3f7e;
163 text-decoration-thickness: 2px;
164 }
165
166 /* Text style */
167 .ep-pdf-trigger--text {
168 color: #333;
169 font-size: 15px;
170 }
171
172 .ep-pdf-trigger--text:hover {
173 color: #5b4e96;
174 }
175
176 /* ===========================================
177 Lightbox Overlay
178 =========================================== */
179 .ep-pdf-lightbox {
180 position: fixed;
181 inset: 0;
182 z-index: 100000;
183 display: none;
184 }
185
186 .ep-pdf-lightbox.ep-pdf-lightbox--open {
187 display: flex;
188 }
189
190 .ep-pdf-lightbox__overlay {
191 position: absolute;
192 inset: 0;
193 background: rgba(0, 0, 0, 0.92);
194 display: flex;
195 align-items: center;
196 justify-content: center;
197 animation: epLightboxFadeIn 0.25s ease-out;
198 }
199
200 @keyframes epLightboxFadeIn {
201 from { opacity: 0; }
202 to { opacity: 1; }
203 }
204
205 /* Close Button */
206 .ep-pdf-lightbox__close {
207 position: absolute;
208 top: 15px;
209 right: 15px;
210 background: rgba(255, 255, 255, 0.12);
211 color: #fff;
212 border: none;
213 border-radius: 50%;
214 width: 44px;
215 height: 44px;
216 font-size: 24px;
217 cursor: pointer;
218 z-index: 3;
219 display: flex;
220 align-items: center;
221 justify-content: center;
222 transition: background 0.2s;
223 line-height: 1;
224 padding: 0;
225 }
226
227 .ep-pdf-lightbox__close:hover {
228 background: rgba(255, 255, 255, 0.25);
229 }
230
231 /* Viewer Container */
232 .ep-pdf-lightbox__viewer {
233 width: 90vw;
234 height: 90vh;
235 max-width: 1400px;
236 position: relative;
237 }
238
239 .ep-pdf-lightbox__iframe {
240 width: 100%;
241 height: 100%;
242 border: none;
243 border-radius: 6px;
244 background: #fff;
245 }
246
247
248
249 /* ===========================================
250 Responsive
251 =========================================== */
252 @media (max-width: 1024px) {
253 .ep-pdf-lightbox__viewer {
254 width: 95vw;
255 height: 90vh;
256 }
257 }
258
259 @media (max-width: 767px) {
260 .ep-pdf-lightbox__viewer {
261 width: 100vw;
262 height: 85vh;
263 border-radius: 0;
264 }
265
266 .ep-pdf-lightbox__iframe {
267 border-radius: 0;
268 }
269
270 .ep-pdf-thumbnail-icon-circle {
271 width: 44px;
272 height: 44px;
273 }
274
275 .ep-pdf-thumbnail-icon-circle svg {
276 width: 20px;
277 height: 20px;
278 }
279 }
280