PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.37
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.37
3.37 3.36 3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 All 142 releases
photonic / include / ext / featherlight / featherlight.css

featherlight.css in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 3.37, at include/ext/featherlight/featherlight.css

286 lines 6.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Featherlight – ultra slim jQuery lightbox
3 * Version 1.7.14 - http://noelboss.github.io/featherlight/
4 *
5 * Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
6 * MIT Licensed.
7 **/
8
9 html.with-featherlight {
10 /* disable global scrolling when featherlights are visible */
11 overflow: hidden;
12 }
13
14 .featherlight {
15 display: none;
16
17 /* dimensions: spanning the background from edge to edge */
18 position:fixed;
19 top: 0; right: 0; bottom: 0; left: 0;
20 z-index: 2147483647; /* z-index needs to be >= elements on the site. */
21
22 /* position: centering content */
23 text-align: center;
24
25 /* insures that the ::before pseudo element doesn't force wrap with fixed width content; */
26 white-space: nowrap;
27
28 /* styling */
29 cursor: pointer;
30 background: #333;
31 /* IE8 "hack" for nested featherlights */
32 background: rgba(0, 0, 0, 0);
33 }
34
35 /* support for nested featherlights. Does not work in IE8 (use JS to fix) */
36 .featherlight:last-of-type {
37 background: rgba(0, 0, 0, 0.8);
38 }
39
40 .featherlight:before {
41 /* position: trick to center content vertically */
42 content: '';
43 display: inline-block;
44 height: 100%;
45 vertical-align: middle;
46 }
47
48 .featherlight .featherlight-content {
49 /* make content container for positioned elements (close button) */
50 position: relative;
51
52 /* position: centering vertical and horizontal */
53 text-align: left;
54 vertical-align: middle;
55 display: inline-block;
56
57 /* dimensions: cut off images */
58 overflow: auto;
59 padding: 25px 25px 0;
60 border-bottom: 25px solid transparent;
61
62 /* dimensions: handling large content */
63 margin-left: 5%;
64 margin-right: 5%;
65 max-height: 95%;
66
67 /* styling */
68 background: #fff;
69 cursor: auto;
70
71 /* reset white-space wrapping */
72 white-space: normal;
73 }
74
75 /* contains the content */
76 .featherlight .featherlight-inner {
77 /* make sure its visible */
78 display: block;
79 }
80
81 /* don't show these though */
82 .featherlight script.featherlight-inner,
83 .featherlight link.featherlight-inner,
84 .featherlight style.featherlight-inner {
85 display: none;
86 }
87
88 .featherlight .featherlight-close-icon {
89 /* position: centering vertical and horizontal */
90 position: absolute;
91 z-index: 9999;
92 top: 0;
93 right: 0;
94
95 /* dimensions: 25px x 25px */
96 line-height: 25px;
97 width: 25px;
98
99 /* styling */
100 cursor: pointer;
101 text-align: center;
102 font-family: Arial, sans-serif;
103 background: #fff; /* Set the background in case it overlaps the content */
104 background: rgba(255, 255, 255, 0.3);
105 color: #000;
106 border: none;
107 padding: 0;
108 }
109
110 /* See http://stackoverflow.com/questions/16077341/how-to-reset-all-default-styles-of-the-html5-button-element */
111 .featherlight .featherlight-close-icon::-moz-focus-inner {
112 border: 0;
113 padding: 0;
114 }
115
116 .featherlight .featherlight-image {
117 /* styling */
118 width: 100%;
119 }
120
121
122 .featherlight-iframe .featherlight-content {
123 /* removed the border for image croping since iframe is edge to edge */
124 border-bottom: 0;
125 padding: 0;
126 -webkit-overflow-scrolling: touch;
127 }
128
129 .featherlight iframe {
130 /* styling */
131 border: none;
132 }
133
134 .featherlight * { /* See https://github.com/noelboss/featherlight/issues/42 */
135 -webkit-box-sizing: border-box;
136 -moz-box-sizing: border-box;
137 box-sizing: border-box;
138 }
139
140 /* handling phones and small screens */
141 @media only screen and (max-width: 1024px) {
142 .featherlight .featherlight-content {
143 /* dimensions: maximize lightbox with for small screens */
144 margin-left: 0;
145 margin-right: 0;
146 max-height: 98%;
147
148 padding: 10px 10px 0;
149 border-bottom: 10px solid transparent;
150 }
151 }
152
153 /* hide non featherlight items when printing */
154 @media print {
155 html.with-featherlight > * > :not(.featherlight) {
156 display: none;
157 }
158 }
159
160 /**
161 * Featherlight Gallery – an extension for the ultra slim jQuery lightbox
162 * Version 1.7.14 - http://noelboss.github.io/featherlight/
163 *
164 * Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
165 * MIT Licensed.
166 **/
167
168 .featherlight-next,
169 .featherlight-previous {
170 display: block;
171 position: absolute;
172 top: 25px;
173 right: 25px;
174 bottom: 0;
175 left: 80%;
176 cursor: pointer;
177 /* preventing text selection */
178 -webkit-touch-callout: none;
179 -webkit-user-select: none;
180 -khtml-user-select: none;
181 -moz-user-select: none;
182 -ms-user-select: none;
183 user-select: none;
184 /* IE9 hack, otherwise navigation doesn't appear */
185 background: rgba(0,0,0,0);
186 }
187
188 .featherlight-previous {
189 left: 25px;
190 right: 80%;
191 }
192
193 .featherlight-next:hover,
194 .featherlight-previous:hover {
195 background: rgba(255,255,255,0.25);
196 }
197
198
199 .featherlight-next span,
200 .featherlight-previous span {
201 display: none;
202 position: absolute;
203
204 top: 50%;
205 left: 5%;
206 width: 82%;
207
208 /* center horizontally */
209 text-align: center;
210
211 font-size: 80px;
212 line-height: 80px;
213
214 /* center vertically */
215 margin-top: -40px;
216
217 text-shadow: 0px 0px 5px #fff;
218 color: #fff;
219 font-style: normal;
220 font-weight: normal;
221 }
222 .featherlight-next span {
223 right: 5%;
224 left: auto;
225 }
226
227
228 .featherlight-next:hover span,
229 .featherlight-previous:hover span {
230 display: inline-block;
231 }
232
233 .featherlight-swipe-aware .featherlight-next,
234 .featherlight-swipe-aware .featherlight-previous {
235 display: none;
236 }
237
238 /* Hide navigation while loading */
239 .featherlight-loading .featherlight-previous, .featherlight-loading .featherlight-next {
240 display:none;
241 }
242
243 /* Hide navigation in case of single image */
244 .featherlight-first-slide.featherlight-last-slide .featherlight-previous,
245 .featherlight-first-slide.featherlight-last-slide .featherlight-next {
246 display:none;
247 }
248
249
250 /* Always display arrows on touch devices */
251 @media only screen and (max-device-width: 1024px){
252 .featherlight-next:hover,
253 .featherlight-previous:hover {
254 background: none;
255 }
256 .featherlight-next span,
257 .featherlight-previous span {
258 display: block;
259 }
260 }
261
262 /* handling phones and small screens */
263 @media only screen and (max-width: 1024px) {
264 .featherlight-next,
265 .featherlight-previous {
266 top: 10px;
267 right: 10px;
268 left: 85%;
269 }
270
271 .featherlight-previous {
272 left: 10px;
273 right: 85%;
274 }
275
276 .featherlight-next span,
277 .featherlight-previous span {
278 margin-top: -30px;
279 font-size: 40px;
280 }
281 }
282
283 .photonic-featherlight .featherlight-image { width: auto !important; height: auto !important; max-width: 100%; max-height: 85vh; }
284 .photonic-featherlight .featherlight-content { overflow: hidden; max-height: 85%; }
285 .photonic-featherlight .legend { bottom: 0; position: absolute; width: 100%; background: #222; background: rgba(0,0,0,0.6); color: #ccc; }
286