PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.41
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.41
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 2.44 All 141 releases
photonic / include / scripts / third-party / featherlight / featherlight.css

featherlight.css in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.41, at include/scripts/third-party/featherlight/featherlight.css

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