diff --git a/Gruntfile.js b/Gruntfile.js
index b2dc1e50..716bc5e0 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -19,8 +19,20 @@ module.exports = function(grunt) {
}
},
exec: {
- list: {
- cmd: ['ls', 'ls -l'].join('&&')
+ zip: {
+ cmd: function(version) {
+ return ['rm -rf lightbox',
+ 'mkdir lightbox',
+ 'cp index.html lightbox',
+ 'cp README.markdown lightbox',
+ 'cp -r css lightbox',
+ 'cp -r js lightbox',
+ 'cp -r img lightbox',
+ 'zip -r lightbox-' + version + '.zip lightbox',
+ 'mv lightbox-' + version + '.zip releases',
+ 'rm -rf lightbox'
+ ].join('&&');
+ }
},
},
'ftp-deploy': {
@@ -40,7 +52,8 @@ module.exports = function(grunt) {
'node_modules',
'sass',
'Gruntfile.js',
- 'package.json'
+ 'package.json',
+ 'README.markdown'
]
}
},
@@ -84,7 +97,9 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['compass', 'connect', 'watch']);
- grunt.registerTask('test', ['compass', 'jshint']);
- grunt.registerTask('zip', ['uglify','exec:list']);
- // grunt.registerTask('deploy', ['compass', 'jshint', 'ftp-deploy']);
+ grunt.registerTask('zip', '', function(version) {
+ grunt.task.run('jshint');
+ grunt.task.run('uglify');
+ grunt.task.run('exec:zip:' + version);
+ });
};
\ No newline at end of file
diff --git a/README.markdown b/README.markdown
index 89884b98..18490c7b 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,12 +1,12 @@
# Lightbox2
-Lightbox is small javascript library used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.
+The original lightbox script. Eight years later — still going strong!
-## Demo and instructions
+## Demo and basic instructions
[Goto the Lightbox2 page](http://lokeshdhakar.com/projects/lightbox2/)
-## Credits and license
+## Credits
### Author
by Lokesh Dhakar
@@ -24,7 +24,7 @@ by Lokesh Dhakar
* careilly - [(https://github.com/careilly)](https://github.com/careilly)
* and many others. Thanks!!!
-###License
+##License
Licensed under the [Creative Commons Attribution 2.5 License](http://creativecommons.org/licenses/by/2.5/)
* Free for use in both personal and commercial projects.
diff --git a/css/lightbox.css b/css/lightbox.css
index 7d5a39e8..60cf695d 100644
--- a/css/lightbox.css
+++ b/css/lightbox.css
@@ -163,7 +163,7 @@ body:after {
.lb-data {
padding: 0 4px;
- color: #bbbbbb;
+ color: #ccc;
}
.lb-data .lb-details {
diff --git a/css/screen.css b/css/screen.css
index 0a161b72..c86d9735 100644
--- a/css/screen.css
+++ b/css/screen.css
@@ -1 +1 @@
-body,input,textarea{color:#fff;font-size:18px;font-family:"Karla","lucida grande",sans-serif}h1,h2,h3,h4,h5,h6{line-height:1.2em;color:#fdf485;font-family:"Montserrat","Helvetica",sans-serif;font-weight:normal}h1{font-size:72px;line-height:1em}h2{font-size:36px;line-height:1.2em;margin-bottom:0.3em;text-transform:uppercase}h3{color:#fdf485;margin-bottom:0.5em;font-size:24px;letter-spacing:1px;text-align:center;text-transform:uppercase}h4{font-size:18px}p{line-height:1.7em;margin-bottom:1.7em}ol{list-style-type:decimal}ul,ol{margin:0 0 1.25em 0}li{margin-bottom:2em;line-height:1.5em}li.last-list-item{border-bottom:none}dt{font-weight:bold}dd{margin-bottom:1.625em}strong{font-weight:bold}i{font-style:italic}em{font-style:normal}pre{padding:10px;margin-top:5px;margin-bottom:10px;background-color:#3c3c3c;font-family:"Karla","lucida grande",sans-serif;line-height:1.5em;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;overflow-x:auto}code,kbd{padding:2px 4px;color:#df8020;background-color:#3c3c3c;font-family:"Karla","lucida grande",sans-serif;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px}code{position:relative;top:-1px}pre code{top:0;padding:0;background:transparent}a{color:#61c227;text-decoration:none}a:hover{color:#b7ea98}::-moz-selection,::selection{background:#ff8000;color:#fff}.sub-point{display:block;font-size:14px}.sub-point code{font-size:12px;padding:2px}body{margin:0;padding:0;background:#444}.section{padding:0 0 40px 0;*zoom:1}.section:after{content:"";display:table;clear:both}.section.last{border-bottom:none}.section-header{position:relative;z-index:5;margin-top:0;margin-bottom:80px;color:#636363;text-align:center;font-size:72px}.section-header:before{border-top:2px solid #636363;content:"";margin:0 auto;position:absolute;top:50%;left:0;right:0;bottom:0;z-index:-1}.section-header .line-cover{background:#444;padding:0 15px}.section-content{margin:0 auto;padding:0 40px 40px 40px;max-width:800px}.row{*zoom:1}.row:after{content:"";display:table;clear:both}.intro-section{text-align:center}.logo{color:#fff;margin-bottom:0.07em}.logo .version{color:#fdf485}.author{margin-top:-9px;padding-left:23px;line-height:1.2em}.author-links{font-size:16px}.lead{font-size:22px}.examples-section{text-align:center}.image-row{*zoom:1;margin-bottom:20px}.image-row:after{content:"";display:table;clear:both}.example-image-link{display:inline-block;margin:0 10px 20px 10px;line-height:0;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;border:4px solid transparent;-webkit-transition:all 0.1s ease-out;-moz-transition:all 0.1s ease-out;-o-transition:all 0.1s ease-out;transition:all 0.1s ease-out}.example-image-link:hover{border:4px solid #61c227}.example-image{-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px}.download-section{text-align:center}.download-button{display:block;max-width:300px;margin:0 auto 20px auto;padding-top:20px;padding-bottom:10px;background-color:#2b2b2b;border:4px solid #444;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;-webkit-transition:all 0.1s ease-out;-moz-transition:all 0.1s ease-out;-o-transition:all 0.1s ease-out;transition:all 0.1s ease-out;*zoom:1}.download-button:after{content:"";display:table;clear:both}.download-button:hover{border-color:#61c227;background-color:#444}.download-button .file{font-size:36px;color:#fff;line-height:1em}.download-button .version{font-size:24px;color:#61c227}fieldset{border:none}.donate-button-form{text-align:center}.donate-button{border:4px solid rgba(0,0,0,0);-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;-webkit-transition:all 0.1s ease-out;-moz-transition:all 0.1s ease-out;-o-transition:all 0.1s ease-out;transition:all 0.1s ease-out}.donate-button:hover{background-color:#444;border-color:#61c227}.credits-section{text-align:center}.sharing-section{position:fixed;z-index:10;top:20px;right:0}@media only screen and (max-width: 640px){body{font-size:14px}h1{font-size:48px}h2{font-size:26px}h3{font-size:16px}ol{list-style-position:inside}code,kbd,pre,pre code{font-size:11px}.sub-point{font-size:12px}.sub-point code{font-size:9px}.lead{font-size:16px}.section{padding-bottom:20px;margin-bottom:20px}.section-content{padding:0 20px 20px 20px}.section-header{margin-bottom:20px;font-size:48px}.author{margin-top:-5px;padding-left:30px}.author-links{font-size:12px}}
+article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{background:#fff;color:#000;font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:0.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type='button'],input[type='reset'],input[type='submit']{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type='checkbox'],input[type='radio']{box-sizing:border-box;padding:0}input[type='search']{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type='search']::-webkit-search-cancel-button,input[type='search']::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}html{font:100%/1.5 "Karla","lucida grande",sans-serif,sans-serif;font-weight:400}@media (min-width: 40rem){html{font-size:112%}}@media (min-width: 64rem){html{font-size:120%}}body{color:#777;background-color:#fff}h1,h2,h3,h4,h5{color:#222;line-height:1.2em;font-family:"Montserrat","Helvetica",sans-serif;font-weight:600}h1{font-size:3.5rem;margin:0 0 0.2em 0}@media (min-width: 40rem){h1{font-size:4.5rem}}@media (min-width: 64rem){h1{font-size:5rem}}h2{color:#e67e39;margin-bottom:1.5rem;font-size:1.5rem;text-transform:uppercase}@media (min-width: 40rem){h2{font-size:2rem}}h3{font-size:1.2rem;margin-bottom:0.5rem}blockquote{margin:0}blockquote p{color:#bbb;font-style:italic;margin-bottom:1.5rem}cite{color:#bbb}p{margin:0 auto 2em auto;max-width:35rem}.lead{max-width:45rem;font-size:1.25rem}ol{list-style-type:decimal}ul,ol{margin:0 0 1.25em 0}li{margin-bottom:2em}li.last-list-item{border-bottom:none}dt{font-weight:bold}dd{margin-bottom:1.625em}strong{font-weight:bold}i{font-style:italic}em{font-style:normal}a{color:#4ae;text-decoration:none}a:hover{text-decoration:underline}::-moz-selection,::selection{background:#e67e39;color:#fff}.sub-point{display:block;font-size:0.75rem}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{margin:0;padding:0;background:#fff}section{border-top:2px solid #f2f2f2;text-align:center;padding:2rem 0}section:first-of-type{border-top:none}@media (min-width: 40rem){section{padding:4rem 0}}.container{margin:0 auto;max-width:53rem;width:90%}.row{*zoom:1}.row:after{content:"";display:table;clear:both}header{padding:2rem 0;background-color:#f7f7f7;text-align:center}.example-image-link{display:inline-block;padding:4px;margin:0 0.5rem 1rem 0.5rem;background-color:#fff;line-height:0;-webkit-transition:background-color 0.1s ease-out;-moz-transition:background-color 0.1s ease-out;-o-transition:background-color 0.1s ease-out;transition:background-color 0.1s ease-out;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px}.example-image-link:hover{background-color:#4ae}.example-image{width:7rem;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px}.how-to-use-section p,.how-to-use-section ol,.how-to-use-section ul,.how-to-use-section pre{text-align:left}fieldset{border:none}.donate-button{width:100%}@media (min-width: 40rem){.donate-button{width:auto}}footer{padding:2rem 0;background-color:#f7f7f7;text-align:center}footer .button{margin-top:0.5rem}.sharing-section{position:fixed;z-index:10;top:20px;right:0}code{color:#777;background-color:#f2f2f2;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;font-family:Consolas,Courier,monospace;font-size:0.9rem;padding:0.1rem 0.3rem;position:relative;top:-1px}pre{background-color:#f2f2f2;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px}pre code{font-size:0.7rem;border:none}.column{margin-bottom:1.5rem}@media (min-width: 40rem){.column{float:left;margin:0;padding-left:1rem;padding-right:1rem}.column.full{width:100%}.column.two-thirds{width:66.7%}.column.half{width:50%}.column.third{width:33.3%}.column.fourth{width:24.95%}.column.flow-opposite{float:right}}ul{margin:0;text-align:left}@media (min-width: 40rem){ul{display:inline-block}}.button{display:block;padding:0.7rem 2rem;margin-bottom:0.5rem;border:none;color:#fff;background-color:#4ae;font-size:1.2rem;font-weight:bold;text-transform:uppercase;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;vertical-align:middle;white-space:nowrap}.button:hover{background:#1595ea;text-decoration:none}@media (min-width: 40rem){.button{display:inline-block;margin:0 0.25rem}}.button-minor{padding:0.35rem 1rem;border:2px solid #4ae;color:#4ae;background-color:transparent;font-size:0.8rem}.button-minor:hover{color:#fff}hr{border:0;border-top:2px solid #f2f2f2;margin:2rem auto;width:3rem}@media (min-width: 40rem){hr{margin:2.5rem auto}}.gist .gist-file{font-size:0.9rem !important;margin:0 auto;max-width:39rem;overflow:hidden !important;text-align:left}.gist .gist-file .gist-data{background:#f8f8f8 !important;border-bottom:none !important}.gist .gist-file .gist-meta{display:none !important}.gist-syntax .k{color:#555 !important;font-weight:normal !important}
diff --git a/img/demopage/donate.png b/img/demopage/donate.png
deleted file mode 100644
index 187ec5ce..00000000
Binary files a/img/demopage/donate.png and /dev/null differ
diff --git a/img/demopage/favicon.ico b/img/demopage/favicon.ico
deleted file mode 100644
index 6dec42ea..00000000
Binary files a/img/demopage/favicon.ico and /dev/null differ
diff --git a/img/demopage/favicon.png b/img/demopage/favicon.png
new file mode 100644
index 00000000..5f837979
Binary files /dev/null and b/img/demopage/favicon.png differ
diff --git a/img/demopage/image-1.jpg b/img/demopage/image-1.jpg
index fe2e1cb8..9a0aaad3 100644
Binary files a/img/demopage/image-1.jpg and b/img/demopage/image-1.jpg differ
diff --git a/img/demopage/image-2.jpg b/img/demopage/image-2.jpg
index 1f4f5dff..94110818 100644
Binary files a/img/demopage/image-2.jpg and b/img/demopage/image-2.jpg differ
diff --git a/img/demopage/image-3.jpg b/img/demopage/image-3.jpg
index b6d57980..f3e6ab7a 100644
Binary files a/img/demopage/image-3.jpg and b/img/demopage/image-3.jpg differ
diff --git a/img/demopage/image-4.jpg b/img/demopage/image-4.jpg
index a7e9dba2..79b6ec16 100644
Binary files a/img/demopage/image-4.jpg and b/img/demopage/image-4.jpg differ
diff --git a/img/demopage/image-5.jpg b/img/demopage/image-5.jpg
index c75fba5c..65474206 100644
Binary files a/img/demopage/image-5.jpg and b/img/demopage/image-5.jpg differ
diff --git a/img/demopage/image-6.jpg b/img/demopage/image-6.jpg
index 95b3523e..680d7dbf 100644
Binary files a/img/demopage/image-6.jpg and b/img/demopage/image-6.jpg differ
diff --git a/img/demopage/thumb-1.jpg b/img/demopage/thumb-1.jpg
index 0d2c4b6d..77a28872 100644
Binary files a/img/demopage/thumb-1.jpg and b/img/demopage/thumb-1.jpg differ
diff --git a/img/demopage/thumb-2.jpg b/img/demopage/thumb-2.jpg
index 39de8567..0f3b9490 100644
Binary files a/img/demopage/thumb-2.jpg and b/img/demopage/thumb-2.jpg differ
diff --git a/img/demopage/thumb-3.jpg b/img/demopage/thumb-3.jpg
index 6acf4f94..db0a959b 100644
Binary files a/img/demopage/thumb-3.jpg and b/img/demopage/thumb-3.jpg differ
diff --git a/img/demopage/thumb-4.jpg b/img/demopage/thumb-4.jpg
index 634e982a..56ef4862 100644
Binary files a/img/demopage/thumb-4.jpg and b/img/demopage/thumb-4.jpg differ
diff --git a/img/demopage/thumb-5.jpg b/img/demopage/thumb-5.jpg
index 4bb7d481..82ab5aca 100644
Binary files a/img/demopage/thumb-5.jpg and b/img/demopage/thumb-5.jpg differ
diff --git a/img/demopage/thumb-6.jpg b/img/demopage/thumb-6.jpg
index 9628f0ba..b7603e71 100644
Binary files a/img/demopage/thumb-6.jpg and b/img/demopage/thumb-6.jpg differ
diff --git a/index.html b/index.html
index bbd36628..398b91e3 100644
--- a/index.html
+++ b/index.html
@@ -7,86 +7,65 @@
-
+
-
+
-
-
-
-
- by Lokesh Dhakar
-
- Blog - Twitter - Github
-
-
+
-
-
-
-
Single images
+
+
+
Examples
+
Two individual images
-
An image set
+
+
+
Four image set
-
-
-
-
-
-
-
-
- Lightbox2 is open-source. View and fork the code on Github .
-
-
-
-
-
-
-
-
Part 1 - Get setup
+
+
+
How to use
+
Step 1 - Load the Javascript and CSS
- Download and unzip the latest version of Lightbox from above.
- Look inside the js
folder to find jquery-1.10.2.min.js
and lightbox.min.js
and load both of these files. Load jQuery first.
- <script src="js/jquery-1.10.2.min.js"></script>
+ Download and unzip the latest version of Lightbox.
+ Look inside the js
folder to find jquery-1.11.0.min.js
and lightbox.min.js
and load both of these files. Load jQuery first.
+<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/lightbox.min.js"></script>
Look inside the css
folder to find lightbox.css
and load it.
@@ -94,48 +73,45 @@ Part 1 - Get setup
Look inside the img
folder to find close.png
, loading.gif
, prev.png
, and next.png
. These files are used in lightbox.css
. By default, lightbox.css
will look for these images in a folder called img
.
-
Part 2 - Turn it on
+
Step 2 - Turn it on
<a href="img/image-1.jpg" data-lightbox="image-1" data-title="My caption">Image #1</a>
+
Optional: Add a
data-title
attribute if you want to show a caption.
+
If you have a group of related images that you would like to combine into a set, use the same data-lightbox
attribute value for all of the images. For example:
- <a href="img/image-2.jpg" data-lightbox="roadtrip">image #2</a>
-<a href="img/image-3.jpg" data-lightbox="roadtrip">image #3</a>
-<a href="img/image-4.jpg" data-lightbox="roadtrip">image #4</a>
+ <a href="img/image-2.jpg" data-lightbox="roadtrip">Image #2</a>
+<a href="img/image-3.jpg" data-lightbox="roadtrip">Image #3</a>
+<a href="img/image-4.jpg" data-lightbox="roadtrip">Image #4</a>
-
For you long time Lightbox users, don't fret, you can still enable Lightbox by using rel="lightbox"
. The new data-lightbox
approach is preferred though as it is valid html.
-
-
-
-
Bugs
-
If you find a bug, create an issue on Github . Include your operating system and browser version along with detailed steps to reproduce the bug.
+
+
+
Help
-
Feature requests
-
If you want a feature added, please create an issue on Github . Someone else or I might be able to help out. No guarantees.
+
Have a feature request?
+
If you want a feature added, create an issue on Github . Someone else or I might be able to help out. No guarantees.
-
Support questions
-
If you have a question that is not a bug or a feature request, your best chance of getting an answer is by posting it on Stackoverflow .
+
Found a bug?
+
If you find a bug, create an issue on Github . Include your operating system and browser version along with detailed steps on how to reproduce the bug.
-
Older versions
-
See a change log and access older versions on the Github releases page .
+
Can't get Lightbox working?
+
If you followed the instructions, but still can't get Lightbox working, search Stackoverflow to see if other people have run into the same issue as you. If not, post a new question.
+
+
Looking for older versions?
+
You can access older versions and see a changelog on the Github releases page .
-
-
-
+
+
+
Donate
- Lightbox is completely free to use. If you're using Lightbox on a commercial project and are feeling generous, consider a donation. Thanks!
+ Lightbox is 100% free to use. If you're using Lightbox on a commercial project and feeling generous, consider a donation. Thanks!
-
-
-
Lightbox2 created by Lokesh Dhakar
- Blog - Twitter - Github
+
-
+
-
+
diff --git a/js/lightbox-2.6.min.js b/js/lightbox-2.6.min.js
deleted file mode 100644
index fe7360a6..00000000
--- a/js/lightbox-2.6.min.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){var b,d,c;b=jQuery;c=(function(){function b(){this.fadeDuration=500;this.fitImagesInViewport=true;this.resizeDuration=700;this.showImageNumberLabel=true;this.wrapAround=false}b.prototype.albumLabel=function(b,c){return"Image "+b+" of "+c};return b})();d=(function(){function c(b){this.options=b;this.album=[];this.currentImageIndex=void 0;this.init()}c.prototype.init=function(){this.enable();return this.build()};c.prototype.enable=function(){var c=this;return b('body').on('click','a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]',function(d){c.start(b(d.currentTarget));return false})};c.prototype.build=function(){var c=this;b("
").appendTo(b('body'));this.$lightbox=b('#lightbox');this.$overlay=b('#lightboxOverlay');this.$outerContainer=this.$lightbox.find('.lb-outerContainer');this.$container=this.$lightbox.find('.lb-container');this.containerTopPadding=parseInt(this.$container.css('padding-top'),10);this.containerRightPadding=parseInt(this.$container.css('padding-right'),10);this.containerBottomPadding=parseInt(this.$container.css('padding-bottom'),10);this.containerLeftPadding=parseInt(this.$container.css('padding-left'),10);this.$overlay.hide().on('click',function(){c.end();return false});this.$lightbox.hide().on('click',function(d){if(b(d.target).attr('id')==='lightbox'){c.end()}return false});this.$outerContainer.on('click',function(d){if(b(d.target).attr('id')==='lightbox'){c.end()}return false});this.$lightbox.find('.lb-prev').on('click',function(){if(c.currentImageIndex===0){c.changeImage(c.album.length-1)}else{c.changeImage(c.currentImageIndex-1)}return false});this.$lightbox.find('.lb-next').on('click',function(){if(c.currentImageIndex===c.album.length-1){c.changeImage(0)}else{c.changeImage(c.currentImageIndex+1)}return false});return this.$lightbox.find('.lb-loader, .lb-close').on('click',function(){c.end();return false})};c.prototype.start=function(c){var f,e,j,d,g,n,o,k,l,m,p,h,i;b(window).on("resize",this.sizeOverlay);b('select, object, embed').css({visibility:"hidden"});this.$overlay.width(b(document).width()).height(b(document).height()).fadeIn(this.options.fadeDuration);this.album=[];g=0;j=c.attr('data-lightbox');if(j){h=b(c.prop("tagName")+'[data-lightbox="'+j+'"]');for(d=k=0,m=h.length;kj)||(c.height>i)){if((c.width/j)>(c.height/i)){h=j;g=parseInt(c.height/(c.width/h),10);d.width(h);d.height(g)}else{g=i;h=parseInt(c.width/(c.height/g),10);d.width(h);d.height(g)}}}return e.sizeContainer(d.width(),d.height())};c.src=this.album[f].link;this.currentImageIndex=f};c.prototype.sizeOverlay=function(){return b('#lightboxOverlay').width(b(document).width()).height(b(document).height())};c.prototype.sizeContainer=function(f,g){var b,d,e,h,c=this;h=this.$outerContainer.outerWidth();e=this.$outerContainer.outerHeight();d=f+this.containerLeftPadding+this.containerRightPadding;b=g+this.containerTopPadding+this.containerBottomPadding;this.$outerContainer.animate({width:d,height:b},this.options.resizeDuration,'swing');setTimeout(function(){c.$lightbox.find('.lb-dataContainer').width(d);c.$lightbox.find('.lb-prevLink').height(b);c.$lightbox.find('.lb-nextLink').height(b);c.showImage()},this.options.resizeDuration)};c.prototype.showImage=function(){this.$lightbox.find('.lb-loader').hide();this.$lightbox.find('.lb-image').fadeIn('slow');this.updateNav();this.updateDetails();this.preloadNeighboringImages();this.enableKeyboardNav()};c.prototype.updateNav=function(){this.$lightbox.find('.lb-nav').show();if(this.album.length>1){if(this.options.wrapAround){this.$lightbox.find('.lb-prev, .lb-next').show()}else{if(this.currentImageIndex>0){this.$lightbox.find('.lb-prev').show()}if(this.currentImageIndex1&&this.options.showImageNumberLabel){this.$lightbox.find('.lb-number').text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn('fast')}else{this.$lightbox.find('.lb-number').hide()}this.$outerContainer.removeClass('animating');this.$lightbox.find('.lb-dataContainer').fadeIn(this.resizeDuration,function(){return b.sizeOverlay()})};c.prototype.preloadNeighboringImages=function(){var c,b;if(this.album.length>this.currentImageIndex+1){c=new Image();c.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){b=new Image();b.src=this.album[this.currentImageIndex-1].link}};c.prototype.enableKeyboardNav=function(){b(document).on('keyup.keyboard',b.proxy(this.keyboardAction,this))};c.prototype.disableKeyboardNav=function(){b(document).off('.keyboard')};c.prototype.keyboardAction=function(g){var d,e,f,c,b;d=27;e=37;f=39;b=g.keyCode;c=String.fromCharCode(b).toLowerCase();if(b===d||c.match(/x|o|c/)){this.end()}else if(c==='p'||b===e){if(this.currentImageIndex!==0){this.changeImage(this.currentImageIndex-1)}}else if(c==='n'||b===f){if(this.currentImageIndex!==this.album.length-1){this.changeImage(this.currentImageIndex+1)}}};c.prototype.end=function(){this.disableKeyboardNav();b(window).off("resize",this.sizeOverlay);this.$lightbox.fadeOut(this.options.fadeDuration);this.$overlay.fadeOut(this.options.fadeDuration);return b('select, object, embed').css({visibility:"visible"})};return c})();b(function(){var e,b;b=new c();return e=new d(b)})}).call(this);
\ No newline at end of file
diff --git a/js/lightbox.js b/js/lightbox.js
index 3f2d98ea..12275224 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -210,7 +210,7 @@
windowWidth = $(window).width();
windowHeight = $(window).height();
maxImageWidth = windowWidth - self.containerLeftPadding - self.containerRightPadding - 20;
- maxImageHeight = windowHeight - self.containerTopPadding - self.containerBottomPadding - 110;
+ maxImageHeight = windowHeight - self.containerTopPadding - self.containerBottomPadding - 120;
// Is there a fitting issue?
if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) {
@@ -364,7 +364,6 @@
var keycode = event.keyCode;
var key = String.fromCharCode(keycode).toLowerCase();
-
if (keycode === KEYCODE_ESC || key.match(/x|o|c/)) {
this.end();
} else if (key === 'p' || keycode === KEYCODE_LEFTARROW) {
diff --git a/js/lightbox.min.js b/js/lightbox.min.js
index b2aaa000..bdefbadd 100644
--- a/js/lightbox.min.js
+++ b/js/lightbox.min.js
@@ -6,5 +6,5 @@
* - Free for use in both personal and commercial projects
* - Attribution requires leaving author name, author link, and the license info intact
*/
-(function(){var a=jQuery,b=function(){function a(){this.fadeDuration=500,this.fitImagesInViewport=!0,this.resizeDuration=700,this.showImageNumberLabel=!0,this.wrapAround=!1}return a.prototype.albumLabel=function(a,b){return"Image "+a+" of "+b},a}(),c=function(){function b(a){this.options=a,this.album=[],this.currentImageIndex=void 0,this.init()}return b.prototype.init=function(){this.enable(),this.build()},b.prototype.enable=function(){var b=this;a("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){var b=this;a("
").appendTo(a("body")),this.$lightbox=a("#lightbox"),this.$overlay=a("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return b.end(),!1}),this.$lightbox.hide().on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$outerContainer.on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return b.changeImage(0===b.currentImageIndex?b.album.length-1:b.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return b.changeImage(b.currentImageIndex===b.album.length-1?0:b.currentImageIndex+1),!1}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return b.end(),!1})},b.prototype.start=function(b){function c(a){d.album.push({link:a.attr("href"),title:a.attr("data-title")||a.attr("title")})}var d=this,e=a(window);e.on("resize",this.sizeOverlay.call(this)),a("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var f,g=0,h=b.attr("data-lightbox");if(h){f=a(b.prop("tagName")+'[data-lightbox="'+h+'"]');for(var i=0;ij||e.height>i)&&(e.width/j>e.height/i?(h=j,g=parseInt(e.height/(e.width/h),10),d.width(h),d.height(g)):(g=i,h=parseInt(e.width/(e.height/g),10),d.width(h),d.height(g)))),c.sizeContainer(d.width(),d.height())},e.src=this.album[b].link,this.currentImageIndex=b},b.prototype.sizeOverlay=function(){this.$overlay.width(a(document).width()).height(a(document).height())},b.prototype.sizeContainer=function(a,b){var c=this,d=(this.$outerContainer.outerWidth(),this.$outerContainer.outerHeight(),a+this.containerLeftPadding+this.containerRightPadding),e=b+this.containerTopPadding+this.containerBottomPadding;this.$outerContainer.animate({width:d,height:e},this.options.resizeDuration,"swing"),setTimeout(function(){c.$lightbox.find(".lb-dataContainer").width(d),c.$lightbox.find(".lb-prevLink").height(e),c.$lightbox.find(".lb-nextLink").height(e),c.showImage()},this.options.resizeDuration)},b.prototype.showImage=function(){this.$lightbox.find(".lb-loader").hide(),this.$lightbox.find(".lb-image").fadeIn("slow"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},b.prototype.updateNav=function(){this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?this.$lightbox.find(".lb-prev, .lb-next").show():(this.currentImageIndex>0&&this.$lightbox.find(".lb-prev").show(),this.currentImageIndex1&&this.options.showImageNumberLabel?this.$lightbox.find(".lb-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".lb-number").hide(),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.resizeDuration,function(){return a.sizeOverlay()})},b.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){var a=new Image;a.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){var b=new Image;b.src=this.album[this.currentImageIndex-1].link}},b.prototype.enableKeyboardNav=function(){a(document).on("keyup.keyboard",a.proxy(this.keyboardAction,this))},b.prototype.disableKeyboardNav=function(){a(document).off(".keyboard")},b.prototype.keyboardAction=function(a){var b=27,c=37,d=39,e=a.keyCode,f=String.fromCharCode(e).toLowerCase();e===b||f.match(/x|o|c/)?this.end():"p"===f||e===c?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):("n"===f||e===d)&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},b.prototype.end=function(){return this.disableKeyboardNav(),a(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),a("select, object, embed").css({visibility:"visible"})},b}();a(function(){{var a=new b;new c(a)}})}).call(this);
+(function(){var a=jQuery,b=function(){function a(){this.fadeDuration=500,this.fitImagesInViewport=!0,this.resizeDuration=700,this.positionFromTop=50,this.showImageNumberLabel=!0,this.alwaysShowNavOnTouchDevices=!1,this.wrapAround=!1}return a.prototype.albumLabel=function(a,b){return"Image "+a+" of "+b},a}(),c=function(){function b(a){this.options=a,this.album=[],this.currentImageIndex=void 0,this.init()}return b.prototype.init=function(){this.enable(),this.build()},b.prototype.enable=function(){var b=this;a("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){var b=this;a("
").appendTo(a("body")),this.$lightbox=a("#lightbox"),this.$overlay=a("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return b.end(),!1}),this.$lightbox.hide().on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$outerContainer.on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return b.changeImage(0===b.currentImageIndex?b.album.length-1:b.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return b.changeImage(b.currentImageIndex===b.album.length-1?0:b.currentImageIndex+1),!1}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return b.end(),!1})},b.prototype.start=function(b){function c(a){d.album.push({link:a.attr("href"),title:a.attr("data-title")||a.attr("title")})}var d=this,e=a(window);e.on("resize",a.proxy(this.sizeOverlay,this)),a("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var f,g=0,h=b.attr("data-lightbox");if(h){f=a(b.prop("tagName")+'[data-lightbox="'+h+'"]');for(var i=0;ij||e.height>i)&&(e.width/j>e.height/i?(h=j,g=parseInt(e.height/(e.width/h),10),d.width(h),d.height(g)):(g=i,h=parseInt(e.width/(e.height/g),10),d.width(h),d.height(g)))),c.sizeContainer(d.width(),d.height())},e.src=this.album[b].link,this.currentImageIndex=b},b.prototype.sizeOverlay=function(){this.$overlay.width(a(window).width()).height(a(document).height())},b.prototype.sizeContainer=function(a,b){function c(){d.$lightbox.find(".lb-dataContainer").width(g),d.$lightbox.find(".lb-prevLink").height(h),d.$lightbox.find(".lb-nextLink").height(h),d.showImage()}var d=this,e=this.$outerContainer.outerWidth(),f=this.$outerContainer.outerHeight(),g=a+this.containerLeftPadding+this.containerRightPadding,h=b+this.containerTopPadding+this.containerBottomPadding;e!==g||f!==h?this.$outerContainer.animate({width:g,height:h},this.options.resizeDuration,"swing",function(){c()}):c()},b.prototype.showImage=function(){this.$lightbox.find(".lb-loader").hide(),this.$lightbox.find(".lb-image").fadeIn("slow"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},b.prototype.updateNav=function(){var a=!1;try{document.createEvent("TouchEvent"),a=this.options.alwaysShowNavOnTouchDevices?!0:!1}catch(b){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(a&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),a&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex1&&this.options.showImageNumberLabel?this.$lightbox.find(".lb-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".lb-number").hide(),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return a.sizeOverlay()})},b.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){var a=new Image;a.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){var b=new Image;b.src=this.album[this.currentImageIndex-1].link}},b.prototype.enableKeyboardNav=function(){a(document).on("keyup.keyboard",a.proxy(this.keyboardAction,this))},b.prototype.disableKeyboardNav=function(){a(document).off(".keyboard")},b.prototype.keyboardAction=function(a){var b=27,c=37,d=39,e=a.keyCode,f=String.fromCharCode(e).toLowerCase();e===b||f.match(/x|o|c/)?this.end():"p"===f||e===c?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):("n"===f||e===d)&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},b.prototype.end=function(){this.disableKeyboardNav(),a(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),a("select, object, embed").css({visibility:"visible"})},b}();a(function(){{var a=new b;new c(a)}})}).call(this);
//# sourceMappingURL=lightbox.min.map
\ No newline at end of file
diff --git a/js/lightbox.min.map b/js/lightbox.min.map
index 2224a212..b5a94878 100644
--- a/js/lightbox.min.map
+++ b/js/lightbox.min.map
@@ -1 +1 @@
-{"version":3,"file":"lightbox.min.js","sources":["lightbox.js"],"names":["$","jQuery","LightboxOptions","this","fadeDuration","fitImagesInViewport","resizeDuration","showImageNumberLabel","wrapAround","prototype","albumLabel","curImageNum","albumSize","Lightbox","options","album","currentImageIndex","init","enable","build","self","on","event","start","currentTarget","appendTo","$lightbox","$overlay","$outerContainer","find","$container","containerTopPadding","parseInt","css","containerRightPadding","containerBottomPadding","containerLeftPadding","hide","end","target","attr","changeImage","length","$link","addToAlbum","push","link","title","$window","window","sizeOverlay","call","visibility","$links","imageNumber","dataLightboxValue","prop","i","j","top","scrollTop","height","left","scrollLeft","fadeIn","disableKeyboardNav","$image","addClass","preloader","Image","onload","$preloader","imageHeight","imageWidth","maxImageHeight","maxImageWidth","windowHeight","windowWidth","width","sizeContainer","src","document","newWidth","outerWidth","outerHeight","newHeight","animate","setTimeout","showImage","updateNav","updateDetails","preloadNeighboringImages","enableKeyboardNav","show","html","text","removeClass","preloadNext","preloadPrev","proxy","keyboardAction","off","KEYCODE_ESC","KEYCODE_LEFTARROW","KEYCODE_RIGHTARROW","keycode","keyCode","key","String","fromCharCode","toLowerCase","match","fadeOut"],"mappings":";;;;;;;;CASA,WAEE,GAAIA,GAAIC,OAEJC,EAAkB,WACpB,QAASA,KACPC,KAAKC,aAAuB,IAC5BD,KAAKE,qBAAuB,EAC5BF,KAAKG,eAAuB,IAC5BH,KAAKI,sBAAuB,EAC5BJ,KAAKK,YAAuB,EAQ9B,MAJAN,GAAgBO,UAAUC,WAAa,SAASC,EAAaC,GAC3D,MAAO,SAAWD,EAAc,OAASC,GAGpCV,KAILW,EAAW,WACb,QAASA,GAASC,GAChBX,KAAKW,QAAoBA,EACzBX,KAAKY,SACLZ,KAAKa,kBA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tC,KAAKa,kBAAoB,GACjCb,KAAKW,QAAQN,YAAcL,KAAKY,MAAM2B,OAAS,GACxDvC,KAAKsC,YAAYtC,KAAKY,MAAM2B,OAAS,IAEtB,MAARiE,GAAeF,IAAYD,KAChCrG,KAAKa,oBAAsBb,KAAKY,MAAM2B,OAAS,EACjDvC,KAAKsC,YAAYtC,KAAKa,kBAAoB,GACjCb,KAAKW,QAAQN,YAAcL,KAAKY,MAAM2B,OAAS,GACxDvC,KAAKsC,YAAY,KAMvB5B,EAASJ,UAAU6B,IAAM,WAKvB,MAJAnC,MAAK8D,qBACLjE,EAAEiD,QAAQoD,IAAI,SAAUlG,KAAK+C,aAC7B/C,KAAKuB,UAAUsF,QAAQ7G,KAAKW,QAAQV,cACpCD,KAAKwB,SAASqF,QAAQ7G,KAAKW,QAAQV,cAC5BJ,EAAE,yBAAyBiC,KAChCmB,WAAY,aAITvC,IAITb,GAAE,WACA,CAAA,GAAIc,GAAW,GAAIZ,EACJ,IAAIW,GAASC,QAG7BqC,KAAKhD"}
\ No newline at end of file
+{"version":3,"file":"lightbox.min.js","sources":["lightbox.js"],"names":["$","jQuery","LightboxOptions","this","fadeDuration","fitImagesInViewport","resizeDuration","positionFromTop","showImageNumberLabel","alwaysShowNavOnTouchDevices","wrapAround","prototype","albumLabel","curImageNum","albumSize","Lightbox","options","album","currentImageIndex","init","enable","build","self","on","event","start","currentTarget","appendTo","$lightbox","$overlay","$outerContainer","find","$container","containerTopPadding","parseInt","css","containerRightPadding","containerBottomPadding","containerLeftPadding","hide","end","target","attr","changeImage","length","$link","addToAlbum","push","link","title","$window","window","proxy","sizeOverlay","visibility","$links","imageNumber","dataLightboxValue","prop","i","j","top","scrollTop","left","scrollLeft","fadeIn","disableKeyboardNav","$image","addClass","preloader","Image","onload","$preloader","imageHeight","imageWidth","maxImageHeight","maxImageWidth","windowHeight","windowWidth","width","height","sizeContainer","src","document","postResize","newWidth","newHeight","showImage","oldWidth","outerWidth","oldHeight","outerHeight","animate","updateNav","updateDetails","preloadNeighboringImages","enableKeyboardNav","alwaysShowNav","createEvent","e","show","html","text","removeClass","preloadNext","preloadPrev","keyboardAction","off","KEYCODE_ESC","KEYCODE_LEFTARROW","KEYCODE_RIGHTARROW","keycode","keyCode","key","String","fromCharCode","toLowerCase","match","fadeOut","call"],"mappings":";;;;;;;;CASA,WAEE,GAAIA,GAAIC,OAEJC,EAAkB,WACpB,QAASA,KACPC,KAAKC,aAA8B,IACnCD,KAAKE,qBAA8B,EACnCF,KAAKG,eAA8B,IACnCH,KAAKI,gBAA8B,GACnCJ,KAAKK,sBAA8B,EACnCL,KAAKM,6BAA8B,EACnCN,KAAKO,YAA8B,EAQrC,MAJAR,GAAgBS,UAAUC,WAAa,SAASC,EAAaC,GAC3D,MAAO,SAAWD,EAAc,OAASC,GAGpCZ,KAILa,EAAW,WACb,QAASA,GAASC,GAChBb,KAAKa,QAAoBA,EACzBb,KAAKc,SACLd,KAAKe,kBAAoB,OACzBf,KAAKgB,OAoWP,MAjWAJ,GAASJ,UAAUQ,KAAO,WACxBhB,KAAKiB,SACLjB,KAAKkB,SAKPN,EAASJ,UAAUS,OAAS,WAC1B,GAAIE,GAAOnB,IACXH,GAAE,QAAQuB,GAAG,QAAS,+EAAgF,SAASC,GAE7G,MADAF,GAAKG,MAAMzB,EAAEwB,EAAME,iBACZ,KAMXX,EAASJ,UAAUU,MAAQ,WACzB,GAAIC,GAAOnB,IACXH,GAAE,mjBAAmjB2B,SAAS3B,EAAE,SAGhkBG,KAAKyB,UAAkB5B,EAAE,aACzBG,KAAK0B,SAAkB7B,EAAE,oBACzBG,KAAK2B,gBAAkB3B,KAAKyB,UAAUG,KAAK,sBAC3C5B,KAAK6B,WAAkB7B,KAAKyB,UAAUG,KAAK,iBAG3C5B,KAAK8B,oBAAsBC,SAAS/B,KAAK6B,WAAWG,IAAI,eAAgB,IACxEhC,KAAKiC,sBAAwBF,SAAS/B,KAAK6B,WAAWG,IAAI,iBAAkB,IAC5EhC,KAAKkC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AMvB5B,EAASJ,UAAU6B,IAAM,WACvBrC,KAAK+D,qBACLlE,EAAEmD,QAAQwD,IAAI,SAAUxG,KAAKkD,aAC7BlD,KAAKyB,UAAU0F,QAAQnH,KAAKa,QAAQZ,cACpCD,KAAK0B,SAASyF,QAAQnH,KAAKa,QAAQZ,cACnCJ,EAAE,yBAAyBmC,KACzBmB,WAAY,aAITvC,IAITf,GAAE,WACA,CAAA,GAAIgB,GAAW,GAAId,EACJ,IAAIa,GAASC,QAG7BuG,KAAKpH"}
\ No newline at end of file
diff --git a/releases/lightbox-2.7.0.zip b/releases/lightbox-2.7.0.zip
new file mode 100644
index 00000000..dfd4d792
Binary files /dev/null and b/releases/lightbox-2.7.0.zip differ
diff --git a/sass/_normalize.sass b/sass/_normalize.sass
new file mode 100644
index 00000000..055e45e9
--- /dev/null
+++ b/sass/_normalize.sass
@@ -0,0 +1,224 @@
+/**! normalize.css v2.1.1 | MIT License | git.io/normalize
+
+// HTML5 display definitions
+
+// Correct `block` display not defined in IE 8/9.
+article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary
+ display: block
+
+// Correct `inline-block` display not defined in IE 8/9.
+audio, canvas, video
+ display: inline-block
+
+audio:not([controls])
+ // Prevent modern browsers from displaying `audio` without controls.
+ display: none
+
+ // Remove excess height in iOS 5 devices.
+ height: 0
+
+// Address styling not present in IE 8/9.
+[hidden]
+ display: none
+
+
+// Base
+
+html
+ // Prevent system color scheme's background color being used in Firefox, IE, and Opera.
+ background: #fff
+
+ // Prevent system color scheme's text color being used in Firefox, IE, and Opera.
+ color: #000
+
+ // Set default font family to sans-serif.
+ font-family: sans-serif
+
+ // Prevent iOS text size adjust after orientation change, without disabling user zoom.
+ -ms-text-size-adjust: 100%
+ -webkit-text-size-adjust: 100%
+
+// Remove default margin.
+body
+ margin: 0
+
+
+// Links
+
+a
+ // Address `outline` inconsistency between Chrome and other browsers.
+ &:focus
+ outline: thin dotted
+
+ // Improve readability when focused and also mouse hovered in all browsers.
+ &:active, &:hover
+ outline: 0
+
+
+// Typography
+
+// Address variable `h1` font-size and margin within `section` and `article` contexts in Firefox 4+, Safari 5, and Chrome.
+h1
+ font-size: 2em
+ margin: 0.67em 0
+
+// Address styling not present in IE 8/9, Safari 5, and Chrome.
+abbr[title]
+ border-bottom: 1px dotted
+
+// Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
+b, strong
+ font-weight: bold
+
+// Address styling not present in Safari 5 and Chrome.
+dfn
+ font-style: italic
+
+// Address differences between Firefox and other browsers.
+hr
+ -moz-box-sizing: content-box
+ box-sizing: content-box
+ height: 0
+
+// Address styling not present in IE 8/9.
+mark
+ background: #ff0
+ color: #000
+
+// Correct font family set oddly in Safari 5 and Chrome.
+code, kbd, pre, samp
+ font-family: monospace, serif
+ font-size: 1em
+
+// Improve readability of pre-formatted text in all browsers.
+pre
+ white-space: pre-wrap
+
+// Set consistent quote types.
+q
+ quotes: '\201C' '\201D' '\2018' '\2019'
+
+// Address inconsistent and variable font size in all browsers.
+small
+ font-size: 80%
+
+// Prevent `sub` and `sup` affecting `line-height` in all browsers.
+sub, sup
+ font-size: 75%
+ line-height: 0
+ position: relative
+ vertical-align: baseline
+
+sup
+ top: -0.5em
+
+sub
+ bottom: -0.25em
+
+
+// Embedded content
+
+// Remove border when inside `a` element in IE 8/9.
+img
+ border: 0
+
+// Correct overflow displayed oddly in IE 9.
+svg:not(:root)
+ overflow: hidden
+
+
+// Figures
+
+// Address margin not present in IE 8/9 and Safari 5.
+figure
+ margin: 0
+
+
+// Forms
+
+// Define consistent border, margin, and padding.
+fieldset
+ border: 1px solid #c0c0c0
+ margin: 0 2px
+ padding: 0.35em 0.625em 0.75em
+
+legend
+ // Correct `color` not being inherited in IE 8/9.
+ border: 0
+
+ // Remove padding so people aren't caught out if they zero out fieldsets.
+ padding: 0
+
+button, input, select, textarea
+ // Correct font family not being inherited in all browsers.
+ font-family: inherit
+
+ // Correct font size not being inherited in all browsers.
+ font-size: 100%
+
+ // Address margins set differently in Firefox 4+, Safari 5, and Chrome.
+ margin: 0
+
+// Address Firefox 4+ setting `line-height` on `input` using `!important` in the UA stylesheet.
+button, input
+ line-height: normal
+
+// Address inconsistent `text-transform` inheritance for `button` and `select`.
+// All other form control elements do not inherit `text-transform` values.
+// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
+// Correct `select` style inheritance in Firefox 4+ and Opera.
+button, select
+ text-transform: none
+
+button, html input[type='button'], input[type='reset'], input[type='submit']
+ // Avoid the WebKit bug in Android 4.0.* where `html input[type='button'] { -webkit-appearance: button }` destroys native `audio` and `video` controls.
+ // Correct inability to style clickable `input` types in iOS.
+ -webkit-appearance: button
+
+ // Improve usability and consistency of cursor style between image-type `input` and others.
+ cursor: pointer
+
+// Re-set default cursor for disabled elements.
+button[disabled], html input[disabled]
+ cursor: default
+
+input
+ &[type='checkbox'], &[type='radio']
+ // Address box sizing set to `content-box` in IE 8/9.
+ box-sizing: border-box
+
+ // Remove excess padding in IE 8/9.
+ padding: 0
+
+ &[type='search']
+ // Address `appearance` set to `searchfield` in Safari 5 and Chrome.
+ -webkit-appearance: textfield
+
+ // Address `box-sizing` set to `border-box` in Safari 5 and Chrome (include `-moz` to future-proof).
+ -moz-box-sizing: content-box
+ -webkit-box-sizing: content-box
+ box-sizing: content-box
+
+ // Remove inner padding and search cancel button in Safari 5 and Chrome on OS X.
+ &::-webkit-search-cancel-button, &::-webkit-search-decoration
+ -webkit-appearance: none
+
+// Remove inner padding and border in Firefox 4+.
+button::-moz-focus-inner, input::-moz-focus-inner
+ border: 0
+ padding: 0
+
+textarea
+ // Remove default vertical scrollbar in IE 8/9.
+ overflow: auto
+
+ // Improve readability and alignment in all browsers.
+ vertical-align: top
+
+
+// Tables
+
+// Remove most spacing between table cells.
+table
+ border-collapse: collapse
+ border-spacing: 0
\ No newline at end of file
diff --git a/sass/screen.sass b/sass/screen.sass
index d793f716..f1b873cc 100644
--- a/sass/screen.sass
+++ b/sass/screen.sass
@@ -1,22 +1,28 @@
@import "compass/css3"
@import "compass/utilities/general/clearfix"
+@import "normalize"
// COLORS & BACKGROUNDS --------------------------------------------------------
$yellow: #fdf485
-$orange: #ff8000
+$orange: #e67e39
$red: #ff4040
$blue: #4ae
$green: #61c227
-$gray: #aaa
-$light-gray: #ddd
-$dark-gray: #444
-
-$color: white
-$bg-color: $dark-gray
-$heading-color: $yellow
-$link-color: $green
+$gray: #777
+$light-gray: #f3f3f3
+$dark-gray: #222
+
+$color: $gray
+$bg-color: #fff
+$border-color: darken($bg-color, 5%)
+$header-bg-color: #f7f7f7
+$section-heading-color: $orange
+$heading-color: $dark-gray
+$link-color: $blue
+$code-color: $color
+$code-bg-color: darken($bg-color, 5%)
// TYPE --------------------------------------------------------
@@ -24,15 +30,13 @@ $body-font-family: "Karla", "lucida grande", sans-serif
$heading-font-family: "Montserrat", "Helvetica", sans-serif
$code-font-family: "Karla", "lucida grande", sans-serif
-$font-size: 18px
+$font-size: 16px
// LAYOUT --------------------------------------------------------
-$gutter: 40px
-$base-line-height: 1.7em
-$max-column-width: 800px
+$gutter: 30px
+$max-column-width: 600px
-$section-header-z-index: 5
$sharing-section-z-index: 10
@@ -45,48 +49,73 @@ $radius: 6px
/* Typography
*----------------------------------------------- */
-body,
-input,
-textarea
+html
+ font: 100% / 1.5 $body-font-family, sans-serif
+ font-weight: 400
+
+@media (min-width: 40rem)
+ html
+ font-size: 112%
+
+@media (min-width: 64rem)
+ html
+ font-size: 120%
+
+body
color: $color
- font-size: $font-size
- font-family: $body-font-family
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6
- line-height: 1.2em
+ background-color: $bg-color
+
+
+h1, h2, h3, h4, h5
color: $heading-color
+ line-height: 1.2em
font-family: $heading-font-family
- font-weight: normal
+ font-weight: 600
h1
- font-size: 72px
- line-height: 1em
+ font-size: 3.5rem
+ margin: 0 0 0.2em 0
+
+@media (min-width: 40rem)
+ h1
+ font-size: 4.5rem
+
+@media (min-width: 64rem)
+ h1
+ font-size: 5rem
h2
- font-size: 36px
- line-height: 1.2em
- margin-bottom: 0.3em
+ color: $section-heading-color
+ margin-bottom: 1.5rem
+ font-size: 1.5rem
text-transform: uppercase
+@media (min-width: 40rem)
+ h2
+ font-size: 2rem
+
h3
- color: $heading-color
- margin-bottom: 0.5em
- font-size: 24px
- letter-spacing: 1px
- text-align: center
- text-transform: uppercase
+ font-size: 1.2rem
+ margin-bottom: .5rem
+
+blockquote
+ margin: 0
+ p
+ color: #bbb
+ font-style: italic
+ margin-bottom: 1.5rem
-h4
- font-size: $font-size
+cite
+ color: #bbb
p
- line-height: $base-line-height
- margin-bottom: $base-line-height
+ margin: 0 auto 2em auto
+ max-width: 35rem
+
+.lead
+ max-width: 45rem
+ font-size: 1.25rem
+
ol
list-style-type: decimal
@@ -96,7 +125,6 @@ ul, ol
li
margin-bottom: 2em
- line-height: $base-line-height - 0.2
&.last-list-item
border-bottom: none
@@ -115,37 +143,11 @@ i
em
font-style: normal
-pre
- padding: $gutter/4
- margin-top: $gutter/8
- margin-bottom: $gutter/4
- background-color: darken($bg-color, 3%)
- font-family: $code-font-family
- line-height: 1.5em
- +border-radius($radius)
- overflow-x: auto
-
-code, kbd
- padding: 2px 4px
- color: desaturate($orange, 25%)
- background-color: darken($bg-color, 3%)
- font-family: $code-font-family
- +border-radius($radius)
-
-code
- position: relative
- top: -1px
-
-pre code
- top: 0
- padding: 0
- background: transparent
-
a
color: $link-color
text-decoration: none
&:hover
- color: lighten($link-color, 30%)
+ text-decoration: underline
::-moz-selection,
::selection
@@ -154,149 +156,95 @@ a
.sub-point
display: block
- font-size: $font-size - 4
- code
- font-size: $font-size - 6
- padding: $gutter/20
+ font-size: 0.75rem
/* -- Layout ------------------------------------------------------------------ */
+*, *:before, *:after
+ +box-sizing("border-box")
+
body
margin: 0
padding: 0
background: $bg-color
-.section
- padding: 0 0 40px 0
- +pie-clearfix
- &.last
- border-bottom: none
-
-.section-header
- position: relative
- z-index: $section-header-z-index
- margin-top: 0
- margin-bottom: $gutter * 2
- color: lighten($bg-color, 12%)
+section
+ border-top: 2px solid $border-color
text-align: center
- font-size: 72px
-
- &:before
- border-top: 2px solid lighten($bg-color, 12%)
- content: ""
- margin: 0 auto // this centers the line to the full width specified
- position: absolute // positioning must be absolute here, and relative positioning must be applied to the parent
- top: 50%
- left: 0
- right: 0
- bottom: 0
- z-index: -1
-
- .line-cover
- /* to hide the lines from behind the text, you have to set the background color the same as the container */
- background: $bg-color
- padding: 0 15px
+ padding: 2rem 0
+ &:first-of-type
+ border-top: none
+
+@media (min-width: 40rem)
+ section
+ padding: 4rem 0
-.section-content
+.container
margin: 0 auto
- padding: 0 $gutter $gutter $gutter
- max-width: $max-column-width
+ max-width: 53rem
+ width: 90%
.row
+pie-clearfix
-/* -- Sections ------------------------------------------------------------------ */
-/* -- Intro -- */
+/* -- Header -- */
-.intro-section
+header
+ padding: 2rem 0
+ background-color: $header-bg-color
text-align: center
-.logo
- color: white
- margin-bottom: 0.07em
- .version
- color: $heading-color
-
-.author
- margin-top: -9px
- padding-left: 23px
- line-height: 1.2em
-
-.author-links
- font-size: $font-size - 2
-
-.lead
- font-size: $font-size + 4
-
/* -- Examples -- */
-.examples-section
- text-align: center
-
-.image-row
- +pie-clearfix
- margin-bottom: $gutter/2
.example-image-link
display: inline-block
- margin: 0 $gutter/4 $gutter/2 $gutter/4
+ padding: 4px
+ margin: 0 0.5rem 1rem 0.5rem
+ background-color: $bg-color
line-height: 0
+ +transition(background-color .1s ease-out)
+border-radius($radius)
- border: 4px solid transparent
- +transition(all .1s ease-out)
&:hover
- border: 4px solid $link-color
+ background-color: $link-color
.example-image
- +border-radius(2px)
+ width: 7rem
+ +border-radius($radius - 1)
-/* -- Download -- */
-.download-section
- text-align: center
+/* -- How to use -- */
-.download-button
- display: block
- max-width: 300px
- margin: 0 auto $gutter/2 auto
- padding-top: $gutter/4 + 10
- padding-bottom: $gutter/4
- background-color: darken($bg-color, 10%)
- border: 4px solid $bg-color
- +border-radius($radius)
- +transition(all .1s ease-out)
- +pie-clearfix
- &:hover
- border-color: $link-color
- background-color: #444
- .file
- font-size: 36px
- color: white
- line-height: 1em
- .version
- font-size: 24px
- color: $link-color
+.how-to-use-section
+ p,
+ ol,
+ ul,
+ pre
+ text-align: left
/* -- Donate -- */
fieldset
border: none
-.donate-button-form
- text-align: center
+
.donate-button
- border: 4px solid rgba(0, 0, 0, 0)
- +border-radius($radius)
- +transition(all .1s ease-out)
- &:hover
- background-color: #444
- border-color: $link-color
+ width: 100%
+
+@media (min-width: 40rem)
+ .donate-button
+ width: auto
/* -- Credits -- */
-.credits-section
+footer
+ padding: 2rem 0
+ background-color: $header-bg-color
text-align: center
+ .button
+ margin-top: 0.5rem
+
/* -- Sharing -- */
.sharing-section
@@ -306,42 +254,132 @@ fieldset
right: 0
-/* -- Responsive design -------------------------------------------------------------- */
-@media only screen and (max-width : 640px)
- body
- font-size: $font-size - 4
- h1
- font-size: 48px
- h2
- font-size: 26px
- h3
- font-size: 16px
- ol
- list-style-position: inside
- code,
- kbd,
- pre,
- pre code
- font-size: $font-size - 7
- .sub-point
- font-size: $font-size - 6
- code
- font-size: $font-size - 9
- .lead
- font-size: $font-size - 2
- .section
- padding-bottom: $gutter/2
- margin-bottom: $gutter/2
- .section-content
- padding: 0 ($gutter / 2) ($gutter / 2) ($gutter / 2)
- .section-header
- margin-bottom: $gutter / 2
- font-size: 48px
- .author
- margin-top: -5px
- padding-left: 30px
- .author-links
- font-size: $font-size - 6
+/* Code
+ * ========================================================================== */
+
+code
+ color: $code-color
+ background-color: $code-bg-color
+ +border-radius($radius)
+ font-family: Consolas, Courier, monospace
+ font-size: 0.9rem
+ padding: 0.1rem 0.3rem
+ position: relative
+ top: -1px
+
+pre
+ background-color: $code-bg-color
+ +border-radius($radius)
+
+ code
+ font-size: 0.7rem
+ border: none
+
+
+/* Mobile First Grid
+ * ========================================================================== */
+
+.column
+ margin-bottom: 1.5rem
+
+@media (min-width: 40rem)
+ .column
+ float: left
+ margin: 0
+ padding-left: 1rem
+ padding-right: 1rem
+ &.full
+ width: 100%
+ &.two-thirds
+ width: 66.7%
+ &.half
+ width: 50%
+ &.third
+ width: 33.3%
+ &.fourth
+ width: 24.95%
+ &.flow-opposite
+ float: right
+
+/* Lists
+ * ========================================================================== */
+
+ul
+ margin: 0
+ text-align: left
+
+@media (min-width: 40rem)
+ ul
+ display: inline-block
+
+
+/* Buttons
+ * ========================================================================== */
+
+.button
+ display: block
+ padding: 0.7rem 2rem
+ margin-bottom: 0.5rem
+ border: none
+ color: #fff
+ background-color: $link-color
+ font-size: 1.2rem
+ font-weight: bold
+ text-transform: uppercase
+ +border-radius($radius)
+ vertical-align: middle
+ white-space: nowrap
+ &:hover
+ background: darken($link-color, 10%)
+ text-decoration: none
+
+@media (min-width: 40rem)
+ .button
+ display: inline-block
+ margin: 0 0.25rem
+
+.button-minor
+ padding: 0.35rem 1rem
+ border: 2px solid $link-color
+ color: $link-color
+ background-color: transparent
+ font-size: 0.8rem
+ &:hover
+ color: white
+
+
+/* Elements
+ * ========================================================================== */
+
+hr
+ border: 0
+ border-top: 2px solid $border-color
+ margin: 2rem auto
+ width: 3rem
+
+@media (min-width: 40rem)
+ hr
+ margin: 2.5rem auto
+
+
+/* Gist Overrides
+ * ========================================================================== */
+
+.gist .gist-file
+ font-size: .9rem !important
+ margin: 0 auto
+ max-width: 39rem
+ overflow: hidden !important
+ text-align: left
+ .gist-data
+ background: #f8f8f8 !important
+ border-bottom: none !important
+ .gist-meta
+ display: none !important
+
+.gist-syntax .k
+ color: #555 !important
+ font-weight: normal !important