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
2 months ago
blocks.build.css
1 week ago
carousel.min.css
2 years ago
custom-player.build.css
2 months ago
el-icon.css
3 months ago
embedpress-elementor.css
2 years ago
embedpress.css
1 week 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
instagram-shortcode-generator.css
1 month 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
1 month 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 |