Skip to content

Commit 886f9ba

Browse files
committed
docs upd
1 parent f5c57af commit 886f9ba

File tree

3 files changed

+83
-12
lines changed

3 files changed

+83
-12
lines changed

website/_includes/examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ <h3>Single image lightbox</h3>
135135

136136
<div class="example gc3">
137137
<h3>Lightbox gallery</h3>
138-
<p>You may put any HTML content in each gallery item and <a href="http://codepen.io/dimsemenov/pen/vKrqs">mix content types</a>. In this example lazy-loading of images is enabled for the next image based on move direction. If you wish to add touch-swipe support, check <a href="http://coding.smashingmagazine.com/2013/05/02/truly-responsive-lightbox/">my article</a> on the Smashing Magazine.</p>
138+
<p>You may put any HTML content in each gallery item and <a href="http://codepen.io/dimsemenov/pen/vKrqs">mix content types</a>. In this example lazy-loading of images is enabled for the next image based on move direction. If you wish to add touch-swipe support, check <a href="http://coding.smashingmagazine.com/2013/05/02/truly-responsive-lightbox/">my article</a> on the Smashing Magazine, or <a href="http://photoswipe.com">new PhotoSwipe</a> script.</p>
139139
<div class="html-code grid-of-images">
140140
<div class="popup-gallery">
141141
<a href="http://farm9.staticflickr.com/8242/8558295633_f34a55c1c6_b.jpg" title="The Cleaner"><img src="http://farm9.staticflickr.com/8242/8558295633_f34a55c1c6_s.jpg" width="75" height="75" /></a>

website/documentation.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Here you can find the guide on how to use Magnific Popup. Besides this docs page
2727

2828
Please ask general questions through <a href="http://stackoverflow.com/questions/ask?tags=magnific-popup">StackOverflow</a> tagged with `magnific-popup`.
2929

30+
If you're looking for touch-friendly popup just for images, <a href="http://photoswipe.com">PhotoSwipe</a> might be a better choice.
31+
32+
3033
# magnific popup docs
3134

3235
* This will become a table of contents (this text will be scraped).
@@ -1195,3 +1198,16 @@ Improve this documentation page (simply submit commit <a href="https://github.co
11951198
<div>
11961199
<iframe src="http://ghbtns.com/github-btn.html?user=dimsemenov&amp;repo=magnific-popup&amp;type=watch&amp;count=true&amp;size=large" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30">&nbsp;</iframe>
11971200
</div>
1201+
1202+
<h2>Keep updated</h2>
1203+
<div id="mc_embed_signup" class="embed-form">
1204+
<form action="http://dimsemenov.us1.list-manage.com/subscribe/post?u=ef6026d946a7b5d41d92c02e4&amp;id=54fae727da" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
1205+
<p>Get notified about important update or new release.</p>
1206+
<div class="mc-field-group">
1207+
<input type="email" value="" name="EMAIL" placeholder="Your email" class="required email" id="mce-EMAIL">
1208+
<input type="hidden" id="group_2" name="group[2065][2]" value="true">
1209+
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
1210+
</div>
1211+
<p style="font-size: 12px; margin: 4px 0 0 0;">Newsletter is sent 3 times a year at max. Powered by Mailchimp.</p>
1212+
</form>
1213+
</div>

website/site-assets/site.css

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,45 +186,46 @@ h2.intro {
186186
}*/
187187

188188

189-
#magnific_popup_docs {
190-
display: none;
191-
}
192-
.maruku_toc {
189+
#markdown-toc {
193190
position: fixed;
194191
left: 0;
195192
top: 50px;
196193
padding: 20px 20px;
197194
background: rgba(255, 255, 255, 0.71);
198195
-webkit-backface-visibility:hidden;
196+
list-style: none;
199197
}
200-
.maruku_toc ul {
198+
#markdown-toc a[href="#magnific-popup-docs"] {
199+
display: none;
200+
}
201+
#markdown-toc ul {
201202
list-style: none;
202203
}
203-
.maruku_toc ul ul {
204+
#markdown-toc ul ul {
204205
display: none;
205206
}
206-
.maruku_toc:before {
207+
#markdown-toc:before {
207208
content: 'Table of contents';
208209
font-weight: bold;
209210
display: block;
210211
margin-bottom: 10px;
211212
}
212213
@media all and (max-width: 75em) {
213-
.maruku_toc {
214+
#markdown-toc {
214215
position: static;
215216
padding: 0;
216217
background: none;
217218
}
218219
}
219-
.maruku_toc a {
220+
#markdown-toc a {
220221
text-decoration: none;
221222
border-bottom: 1px dotted;
222223
}
223-
.maruku_toc ul {
224+
#markdown-toc ul {
224225
margin: 0;
225226
padding: 0;
226227
}
227-
.maruku_toc .active a{
228+
#markdown-toc .active a{
228229
text-decoration: none;
229230
color: #666;
230231
}
@@ -299,6 +300,60 @@ content: 'CSS';
299300
}
300301

301302

303+
#mc_embed_signup {
304+
max-width: 350px;
305+
padding: 32px;
306+
background: #EEE;
307+
}
308+
#mc_embed_signup input[type="email"] {
309+
border: 1px solid #CCC;
310+
border-top: 1px solid #999;
311+
padding: 5px;
312+
font-size: 18px;
313+
width: 200px;
314+
margin-right: 10px;
315+
height: 25px;
316+
transition: all 0.3s ease;
317+
-moz-transition: all 0.3s ease;
318+
-webkit-transition: all 0.3s ease;
319+
border-radius: 2px;
320+
-moz-border-radius: 2px;
321+
-webkit-border-radius: 2px;
322+
}
323+
#mc_embed_signup input[type="email"]:focus {
324+
background-color: #FFF;
325+
border: 1px solid #3169B3;
326+
box-shadow: #3169B3 0px 0px 5px;
327+
-moz-box-shadow: #3169B3 0px 0px 5px;
328+
-webkit-box-shadow: #3169B3 0px 0px 5px;
329+
outline: none;
330+
}
331+
#mc_embed_signup input[type="submit"] {
332+
border: 1px solid #3169B3;
333+
font-size: 13px;
334+
font-weight: bold;
335+
color: #FFF;
336+
height: auto;
337+
padding: 8px 13px;
338+
cursor: pointer;
339+
background-color: #3169B3;
340+
display: inline-block;
341+
width: auto;
342+
-webkit-appearance: none;
343+
border-radius: 2px;
344+
-moz-border-radius: 2px;
345+
-webkit-border-radius: 2px;
346+
vertical-align: top;
347+
}
348+
.embed-form {
349+
position: relative;
350+
}
351+
#mc_embed_signup p {
352+
font-size: 15px;
353+
color: #4F4F4F;
354+
}
355+
356+
302357

303358
#main-wrapper {
304359

0 commit comments

Comments
 (0)