From b7994b351d9cafe0e969383e0d785f65b7c3834a Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Thu, 24 Aug 2017 08:28:25 -0500 Subject: [PATCH 01/11] Started adding build scripts for 2.0.1 --- README.md | 8 +- css/quick-modal.css | 201 +++---- css/quick-modal.min.css | 2 +- gulpfile.js | 14 +- js/jquery.quick-modal.js | 10 +- js/jquery.quick-modal.min.js | 2 +- package.json | 2 + scss/quick-modal.scss | 103 ++++ yarn.lock | 977 ++++++++++++++++++++++++++++++++++- 9 files changed, 1200 insertions(+), 119 deletions(-) create mode 100644 scss/quick-modal.scss diff --git a/README.md b/README.md index 00f9d40..a08c2a1 100644 --- a/README.md +++ b/README.md @@ -204,4 +204,10 @@ $(document).ready(function() { }); }); ``` -This alternative way of initializing the plugin will ensure that elements that match the selector will always open its associated modal window, regardless of whether or not they were present on page load. \ No newline at end of file +This alternative way of initializing the plugin will ensure that elements that match the selector will always open its associated modal window, regardless of whether or not they were present on page load. + +--- + +#### Modifying the Souce Code + + diff --git a/css/quick-modal.css b/css/quick-modal.css index 9aef300..c7e35b6 100644 --- a/css/quick-modal.css +++ b/css/quick-modal.css @@ -10,112 +10,123 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ +body.qm--disable-scroll { + overflow-y: hidden; + -webkit-overflow-scrolling: none; +} -/* -------------------------------------------------- -Base Styles --------------------------------------------------- */ -body.qm-disable-scroll { - overflow-y: hidden; - -webkit-overflow-scrolling: none; -} -.qm-modal { - transition: all 250ms ease; - display: none; - opacity: 0; - box-sizing: border-box; - padding: 18px; - background-color: #fff; - border-radius: 3px; - width: 60%; - min-height: 60px; - max-height: 90%; - overflow: auto; - position: fixed; - top: 50%; - left: 50%; - z-index: 9999; - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25); -} -.qm-modal .qm-close-modal { - position: absolute; - top: 0; - right: 0; - padding: 18px; - cursor: pointer; - color: #ccc; -} -.qm-modal .qm-close-modal:after { - content: '\2716'; - display: inline-block; - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-size: 20px; -} -.qm-modal .qm-close-modal:focus { - outline: none; -} -#qm-modal-background { - transition: all 250ms ease; - display: none; - opacity: 0; - background-color: rgba(0, 0, 0, 0.8); - position: fixed; - z-index: 9998; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -#qm-modal-background.qm-visible { - opacity: 1; +body .qm--modal { + -webkit-transition: all 250ms ease; + transition: all 250ms ease; + display: none; + opacity: 0; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 18px; + background-color: #fff; + border-radius: 3px; + width: 60%; + min-height: 60px; + max-height: 90%; + overflow: auto; + position: fixed; + top: 50%; + left: 50%; + z-index: 9999; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25); } -/* -------------------------------------------------- -Animation Closed States --------------------------------------------------- */ -.qm-modal.qm-animation-fade { - transform: translate(-50%, -50%) scale(1); +body .qm--modal.qm--animation-fade { + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); } -.qm-modal.qm-animation-fade-up { - transform: translate(-50%, 150%) scale(1); + +body .qm--modal.qm--animation-fade-up { + -webkit-transform: translate(-50%, 150%) scale(1); + transform: translate(-50%, 150%) scale(1); } -.qm-modal.qm-animation-fade-right { - transform: translate(-150%, -50%) scale(1); + +body .qm--modal.qm--animation-fade-right { + -webkit-transform: translate(-150%, -50%) scale(1); + transform: translate(-150%, -50%) scale(1); } -.qm-modal.qm-animation-fade-down { - transform: translate(-50%, -150%) scale(1); + +body .qm--modal.qm--animation-fade-down { + -webkit-transform: translate(-50%, -150%) scale(1); + transform: translate(-50%, -150%) scale(1); } -.qm-modal.qm-animation-fade-left { - transform: translate(150%, -50%) scale(1); + +body .qm--modal.qm--animation-fade-left { + -webkit-transform: translate(150%, -50%) scale(1); + transform: translate(150%, -50%) scale(1); } -.qm-modal.qm-animation-fade-zoom { - transform: translate(-50%, -50%) scale(2); + +body .qm--modal.qm--animation-fade-zoom { + -webkit-transform: translate(-50%, -50%) scale(2); + transform: translate(-50%, -50%) scale(2); } -.qm-modal.qm-animation-fade-zoom-up { - transform: translate(-50%, 150%) scale(2); + +body .qm--modal.qm--animation-fade-zoom-up { + -webkit-transform: translate(-50%, 150%) scale(2); + transform: translate(-50%, 150%) scale(2); } -.qm-modal.qm-animation-fade-zoom-right { - transform: translate(-150%, -50%) scale(2); + +body .qm--modal.qm--animation-fade-zoom-right { + -webkit-transform: translate(-150%, -50%) scale(2); + transform: translate(-150%, -50%) scale(2); } -.qm-modal.qm-animation-fade-zoom-down { - transform: translate(-50%, -150%) scale(2); + +body .qm--modal.qm--animation-fade-zoom-down { + -webkit-transform: translate(-50%, -150%) scale(2); + transform: translate(-50%, -150%) scale(2); } -.qm-modal.qm-animation-fade-zoom-left { - transform: translate(150%, -50%) scale(2); + +body .qm--modal.qm--animation-fade-zoom-left { + -webkit-transform: translate(150%, -50%) scale(2); + transform: translate(150%, -50%) scale(2); } -/* -------------------------------------------------- -Animation Open States --------------------------------------------------- */ -.qm-modal.qm-animation-fade.qm-visible, -.qm-modal.qm-animation-fade-up.qm-visible, -.qm-modal.qm-animation-fade-right.qm-visible, -.qm-modal.qm-animation-fade-down.qm-visible, -.qm-modal.qm-animation-fade-left.qm-visible, -.qm-modal.qm-animation-fade-zoom.qm-visible, -.qm-modal.qm-animation-fade-zoom-up.qm-visible, -.qm-modal.qm-animation-fade-zoom-right.qm-visible, -.qm-modal.qm-animation-fade-zoom-down.qm-visible, -.qm-modal.qm-animation-fade-zoom-left.qm-visible { - opacity: 1; - transform: translate(-50%, -50%) scale(1); -} \ No newline at end of file +body .qm--modal.qm--visible { + opacity: 1; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); +} + +body .qm--modal .qm--close-modal { + position: absolute; + top: 0; + right: 0; + padding: 18px; + cursor: pointer; + color: #ccc; +} + +body .qm--modal .qm--close-modal:after { + content: '\2716'; + display: inline-block; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 20px; +} + +body .qm--modal .qm--close-modal:focus { + outline: none; +} + +body #qm--modal-background { + -webkit-transition: all 250ms ease; + transition: all 250ms ease; + display: none; + opacity: 0; + background-color: rgba(0, 0, 0, 0.8); + position: fixed; + z-index: 9998; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +body #qm--modal-background.qm--visible { + opacity: 1; +} diff --git a/css/quick-modal.min.css b/css/quick-modal.min.css index 4fb3090..3dadeb6 100644 --- a/css/quick-modal.min.css +++ b/css/quick-modal.min.css @@ -10,4 +10,4 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -body.qm-disable-scroll{overflow-y:hidden;-webkit-overflow-scrolling:none}.qm-modal{transition:all .25s ease;display:none;opacity:0;box-sizing:border-box;padding:18px;background-color:#fff;border-radius:3px;width:60%;min-height:60px;max-height:90%;overflow:auto;position:fixed;top:50%;left:50%;z-index:2;box-shadow:0 5px 10px rgba(0,0,0,.25)}.qm-modal .qm-close-modal{position:absolute;top:0;right:0;padding:18px;cursor:pointer;color:#ccc}.qm-modal .qm-close-modal:after{content:"\2716";display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}.qm-modal .qm-close-modal:focus{outline:none}#qm-modal-background{transition:all .25s ease;display:none;opacity:0;background-color:rgba(0,0,0,.8);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}#qm-modal-background.qm-visible{opacity:1}.qm-modal.qm-animation-fade{transform:translate(-50%,-50%) scale(1)}.qm-modal.qm-animation-fade-up{transform:translate(-50%,150%) scale(1)}.qm-modal.qm-animation-fade-right{transform:translate(-150%,-50%) scale(1)}.qm-modal.qm-animation-fade-down{transform:translate(-50%,-150%) scale(1)}.qm-modal.qm-animation-fade-left{transform:translate(150%,-50%) scale(1)}.qm-modal.qm-animation-fade-zoom{transform:translate(-50%,-50%) scale(2)}.qm-modal.qm-animation-fade-zoom-up{transform:translate(-50%,150%) scale(2)}.qm-modal.qm-animation-fade-zoom-right{transform:translate(-150%,-50%) scale(2)}.qm-modal.qm-animation-fade-zoom-down{transform:translate(-50%,-150%) scale(2)}.qm-modal.qm-animation-fade-zoom-left{transform:translate(150%,-50%) scale(2)}.qm-modal.qm-animation-fade-down.qm-visible,.qm-modal.qm-animation-fade-left.qm-visible,.qm-modal.qm-animation-fade-right.qm-visible,.qm-modal.qm-animation-fade-up.qm-visible,.qm-modal.qm-animation-fade-zoom-down.qm-visible,.qm-modal.qm-animation-fade-zoom-left.qm-visible,.qm-modal.qm-animation-fade-zoom-right.qm-visible,.qm-modal.qm-animation-fade-zoom-up.qm-visible,.qm-modal.qm-animation-fade-zoom.qm-visible,.qm-modal.qm-animation-fade.qm-visible{opacity:1;transform:translate(-50%,-50%) scale(1)} \ No newline at end of file +body.qm--disable-scroll{overflow-y:hidden;-webkit-overflow-scrolling:none}body .qm--modal{transition:all .25s ease;display:none;opacity:0;box-sizing:border-box;padding:18px;background-color:#fff;border-radius:3px;width:60%;min-height:60px;max-height:90%;overflow:auto;position:fixed;top:50%;left:50%;z-index:2;box-shadow:0 5px 10px rgba(0,0,0,.25)}body .qm--modal.qm--animation-fade{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm--modal.qm--animation-fade-up{-webkit-transform:translate(-50%,150%) scale(1);transform:translate(-50%,150%) scale(1)}body .qm--modal.qm--animation-fade-right{-webkit-transform:translate(-150%,-50%) scale(1);transform:translate(-150%,-50%) scale(1)}body .qm--modal.qm--animation-fade-down{-webkit-transform:translate(-50%,-150%) scale(1);transform:translate(-50%,-150%) scale(1)}body .qm--modal.qm--animation-fade-left{-webkit-transform:translate(150%,-50%) scale(1);transform:translate(150%,-50%) scale(1)}body .qm--modal.qm--animation-fade-zoom{-webkit-transform:translate(-50%,-50%) scale(2);transform:translate(-50%,-50%) scale(2)}body .qm--modal.qm--animation-fade-zoom-up{-webkit-transform:translate(-50%,150%) scale(2);transform:translate(-50%,150%) scale(2)}body .qm--modal.qm--animation-fade-zoom-right{-webkit-transform:translate(-150%,-50%) scale(2);transform:translate(-150%,-50%) scale(2)}body .qm--modal.qm--animation-fade-zoom-down{-webkit-transform:translate(-50%,-150%) scale(2);transform:translate(-50%,-150%) scale(2)}body .qm--modal.qm--animation-fade-zoom-left{-webkit-transform:translate(150%,-50%) scale(2);transform:translate(150%,-50%) scale(2)}body .qm--modal.qm--visible{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm--modal .qm--close-modal{position:absolute;top:0;right:0;padding:18px;cursor:pointer;color:#ccc}body .qm--modal .qm--close-modal:after{content:"\2716";display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}body .qm--modal .qm--close-modal:focus{outline:none}body #qm--modal-background{transition:all .25s ease;display:none;opacity:0;background-color:rgba(0,0,0,.8);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}body #qm--modal-background.qm--visible{opacity:1}orm:translate(150%,-50%) scale(2)}body .qm--modal.qm--visible{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm--modal .qm--close-modal{position:absolute;top:0;right:0;padding:18px;cursor:pointer;color:#ccc}body .qm--modal .qm--close-modal:after{content:"\2716";display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}body .qm--modal .qm--close-modal:focus{outline:none}body #qm--modal-background{transition:all .25s ease;display:none;opacity:0;background-color:rgba(0,0,0,.8);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}body #qm--modal-background.qm--visible{opacity:1} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 95edf8a..2f18283 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,6 +4,8 @@ var uglify = require('gulp-uglify'); var insert = require('gulp-insert'); var rename = require('gulp-rename'); var runSequence = require('run-sequence'); +var sass = require('gulp-sass'); +var autoprefixer = require('gulp-autoprefixer'); var header = `/* -------------------------------------------------- jQuery Quick Modal v2.0.0 @@ -19,6 +21,13 @@ http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ `; +gulp.task('compile:sass', () => { + return gulp.src(['./scss/*.scss']) + .pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError)) + .pipe(autoprefixer()) + .pipe(gulp.dest('./css')); +}); + gulp.task('minify:css', () => { return gulp.src(['./css/*.css', '!./css/*.min.css']) .pipe(cssnano()) @@ -46,12 +55,13 @@ gulp.task('insert:comments:js', () => { }); gulp.task('watch', () => { + gulp.watch(['./scss/*.scss'], ['compile:sass']); gulp.watch(['./css/*.css', '!./css/*.min.css'], ['minify:css']); gulp.watch(['./js/*.js', '!./js/*.min.js'], ['minify:js']); - gulp.watch(['./css/*.min.css'], ['insert:comments:css']); + gulp.watch(['./css/*.css'], ['insert:comments:css']); gulp.watch(['./js/*.min.js'], ['insert:comments:js']); }); gulp.task('default', () => { - return runSequence('minify:css', 'minify:js', 'insert:comments:css', 'insert:comments:js', 'watch'); + return runSequence('compile:sass', 'minify:css', 'minify:js', 'insert:comments:css', 'insert:comments:js', 'watch'); }); \ No newline at end of file diff --git a/js/jquery.quick-modal.js b/js/jquery.quick-modal.js index 0311949..51aebb7 100644 --- a/js/jquery.quick-modal.js +++ b/js/jquery.quick-modal.js @@ -12,11 +12,17 @@ http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ (function($) { // Protect the $ alias (IIF) $.fn.setSpeed = function(speed) { - return this.css('transition-duration', speed + 'ms'); + return this.css({ + '-webkit-transition-duration': speed + 'ms', + 'transition-duration': speed + 'ms' + }); } $.fn.setTiming = function(timing) { - return this.css('transition-timing-function', timing); + return this.css({ + '-webkit-transition-timing-function': timing, + 'transition-timing-function': timing + }); } function checkSettings(modalObj, backgroundObj, settings) { diff --git a/js/jquery.quick-modal.min.js b/js/jquery.quick-modal.min.js index a64e0aa..f2ef70d 100644 --- a/js/jquery.quick-modal.min.js +++ b/js/jquery.quick-modal.min.js @@ -10,4 +10,4 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -!function(e){function n(e,n,o){e.setSpeed(null).setTiming(null),n.setSpeed(null).setTiming(null),250==o.speed&&"ease"==o.timing||(e.setSpeed(o.speed).setTiming(o.timing),n.setSpeed(o.speed).setTiming(o.timing))}e.fn.setSpeed=function(e){return this.css("transition-duration",e+"ms")},e.fn.setTiming=function(e){return this.css("transition-timing-function",e)},e.fn.quickModal=function(o,i){function a(e){27==e.keyCode&&c.is(":visible")&&d.enableEsc&&l()}function l(){m.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#qm-modal-background").unbind("click")}if(null!==o&&"string"==typeof o){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",onOpen:function(){},onClose:function(){}},i),s=e("body"),t=e(d.closeModalSelector),c=e(".qm-modal"),m=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),n(m,e("#qm-modal-background"),d),c.removeClass().addClass("qm-modal").addClass("qm-animation-"+d.animation),o){case"open":d.enableBodyScroll||s.addClass("qm-disable-scroll"),c.hide(),m.show(),s.keyup(a),e("#qm-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#qm-modal-background").click(l),e("#qm-modal-background").addClass("qm-visible"),m.addClass("qm-visible"),m.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass("qm-disable-scroll"),e("#modal-background").removeClass("qm-visible"),m.removeClass("qm-visible"),d.onClose.call(),setTimeout(function(){e("#qm-modal-background").hide(),m.hide(),m.trigger("modalclose.qm")},d.speed);break;case"trigger":var u=m.data("modal-id");e("#"+u).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(m=this).click(function(n){n.preventDefault();var i=e(this).data("modal-id"),a=e("#"+i);void 0===i?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",o)});return this}}(jQuery); \ No newline at end of file +!function(e){function n(e,n,i){e.setSpeed(null).setTiming(null),n.setSpeed(null).setTiming(null),250==i.speed&&"ease"==i.timing||(e.setSpeed(i.speed).setTiming(i.timing),n.setSpeed(i.speed).setTiming(i.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(i,o){function a(e){27==e.keyCode&&c.is(":visible")&&d.enableEsc&&l()}function l(){m.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#qm-modal-background").unbind("click")}if(null!==i&&"string"==typeof i){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",onOpen:function(){},onClose:function(){}},o),s=e("body"),t=e(d.closeModalSelector),c=e(".qm-modal"),m=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),n(m,e("#qm-modal-background"),d),c.removeClass().addClass("qm-modal").addClass("qm-animation-"+d.animation),i){case"open":d.enableBodyScroll||s.addClass("qm-disable-scroll"),c.hide(),m.show(),s.keyup(a),e("#qm-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#qm-modal-background").click(l),e("#qm-modal-background").addClass("qm-visible"),m.addClass("qm-visible"),m.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass("qm-disable-scroll"),e("#modal-background").removeClass("qm-visible"),m.removeClass("qm-visible"),d.onClose.call(),setTimeout(function(){e("#qm-modal-background").hide(),m.hide(),m.trigger("modalclose.qm")},d.speed);break;case"trigger":var r=m.data("modal-id");e("#"+r).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(m=this).click(function(n){n.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",i)});return this}}(jQuery); \ No newline at end of file diff --git a/package.json b/package.json index e236ee0..7f64216 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,11 @@ "license": "MIT", "devDependencies": { "gulp": "^3.9.1", + "gulp-autoprefixer": "^4.0.0", "gulp-cssnano": "^2.1.2", "gulp-insert": "^0.5.0", "gulp-rename": "^1.2.2", + "gulp-sass": "^3.1.0", "gulp-uglify": "^3.0.0", "run-sequence": "^2.1.0" } diff --git a/scss/quick-modal.scss b/scss/quick-modal.scss new file mode 100644 index 0000000..2a0d27f --- /dev/null +++ b/scss/quick-modal.scss @@ -0,0 +1,103 @@ +/* -------------------------------------------------- +jQuery Quick Modal v2.0.0 + +By Kevin Beronilla +http://www.kevinberonilla.com + +Fork on GitHub +https://github.com/kevinberonilla/jquery-quick-modal + +Free to use under the MIT license +http://www.opensource.org/licenses/mit-license.php +-------------------------------------------------- */ +$prefix: qm-; +body { + &.#{$prefix}-disable-scroll { + overflow-y: hidden; + -webkit-overflow-scrolling: none; + } + .#{$prefix}-modal { + transition: all 250ms ease; + display: none; + opacity: 0; + box-sizing: border-box; + padding: 18px; + background-color: #fff; + border-radius: 3px; + width: 60%; + min-height: 60px; + max-height: 90%; + overflow: auto; + position: fixed; + top: 50%; + left: 50%; + z-index: 9999; + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25); + &.#{$prefix}-animation-fade { + transform: translate(-50%, -50%) scale(1); + } + &.#{$prefix}-animation-fade-up { + transform: translate(-50%, 150%) scale(1); + } + &.#{$prefix}-animation-fade-right { + transform: translate(-150%, -50%) scale(1); + } + &.#{$prefix}-animation-fade-down { + transform: translate(-50%, -150%) scale(1); + } + &.#{$prefix}-animation-fade-left { + transform: translate(150%, -50%) scale(1); + } + &.#{$prefix}-animation-fade-zoom { + transform: translate(-50%, -50%) scale(2); + } + &.#{$prefix}-animation-fade-zoom-up { + transform: translate(-50%, 150%) scale(2); + } + &.#{$prefix}-animation-fade-zoom-right { + transform: translate(-150%, -50%) scale(2); + } + &.#{$prefix}-animation-fade-zoom-down { + transform: translate(-50%, -150%) scale(2); + } + &.#{$prefix}-animation-fade-zoom-left { + transform: translate(150%, -50%) scale(2); + } + &.#{$prefix}-visible { + opacity: 1; + transform: translate(-50%, -50%) scale(1); + } + .#{$prefix}-close-modal { + position: absolute; + top: 0; + right: 0; + padding: 18px; + cursor: pointer; + color: #ccc; + &:after { + content: '\2716'; + display: inline-block; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 20px; + } + &:focus { + outline: none; + } + } + } + ##{$prefix}-modal-background { + transition: all 250ms ease; + display: none; + opacity: 0; + background-color: rgba(0, 0, 0, 0.8); + position: fixed; + z-index: 9998; + top: 0; + left: 0; + width: 100%; + height: 100%; + &.#{$prefix}-visible { + opacity: 1; + } + } +} diff --git a/yarn.lock b/yarn.lock index 343742a..afa2f35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,25 @@ # yarn lockfile v1 +abbrev@1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" + +ajv@^4.9.1: + version "4.11.8" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -14,10 +29,27 @@ ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" +ansi-styles@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" + dependencies: + color-convert "^1.9.0" + +aproba@^1.0.3: + version "1.1.2" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.2.tgz#45c6629094de4e96f693ef7eab74ae079c240fc1" + archy@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" +are-we-there-yet@~1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + argparse@^1.0.7: version "1.0.9" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" @@ -42,6 +74,10 @@ array-each@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/array-each/-/array-each-1.0.1.tgz#a794af0c05ab1752846ee753a1f211a05ba0c44f" +array-find-index@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + array-slice@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-1.0.0.tgz#e73034f00dcc1f40876008fd20feae77bd4b7c2f" @@ -54,6 +90,26 @@ array-unique@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +async-foreach@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + autoprefixer@^6.3.1: version "6.7.7" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.7.7.tgz#1dbd1c835658e35ce3f9984099db00585c782014" @@ -65,6 +121,25 @@ autoprefixer@^6.3.1: postcss "^5.2.16" postcss-value-parser "^3.2.3" +autoprefixer@^7.0.0: + version "7.1.2" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.1.2.tgz#fbeaf07d48fd878e0682bf7cbeeade728adb2b18" + dependencies: + browserslist "^2.1.5" + caniuse-lite "^1.0.30000697" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^6.0.6" + postcss-value-parser "^3.2.3" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" + balanced-match@^0.4.2: version "0.4.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" @@ -73,11 +148,29 @@ balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" +bcrypt-pbkdf@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + dependencies: + tweetnacl "^0.14.3" + beeper@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809" -brace-expansion@^1.0.0: +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + dependencies: + inherits "~2.0.0" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.0.0, brace-expansion@^1.1.7: version "1.1.8" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" dependencies: @@ -99,6 +192,32 @@ browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6: caniuse-db "^1.0.30000639" electron-to-chromium "^1.2.7" +browserslist@^2.1.5: + version "2.3.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.3.3.tgz#2b0cabc4d28489f682598605858a0782f14b154c" + dependencies: + caniuse-lite "^1.0.30000715" + electron-to-chromium "^1.3.18" + +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +camelcase-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" + dependencies: + camelcase "^2.0.0" + map-obj "^1.0.0" + +camelcase@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + caniuse-api@^1.5.2: version "1.6.1" resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-1.6.1.tgz#b534e7c734c4f81ec5fbe8aca2ad24354b962c6c" @@ -112,6 +231,14 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639: version "1.0.30000715" resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000715.tgz#0b9b5c795950dfbaf301a8806bafe87f126da8ca" +caniuse-lite@^1.0.30000697, caniuse-lite@^1.0.30000715: + version "1.0.30000717" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000717.tgz#4539b126af787c1d4851944de22b2bd8780d3612" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -122,12 +249,28 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" +chalk@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e" + dependencies: + ansi-styles "^3.1.0" + escape-string-regexp "^1.0.5" + supports-color "^4.0.0" + clap@^1.0.9: version "1.2.0" resolved "https://registry.yarnpkg.com/clap/-/clap-1.2.0.tgz#59c90fe3e137104746ff19469a27a634ff68c857" dependencies: chalk "^1.1.3" +cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + clone-stats@^0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-0.0.1.tgz#b88f94a82cf38b8791d58046ea4029ad88ca99d1" @@ -140,13 +283,21 @@ clone@^1.0.0, clone@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.2.tgz#260b7a99ebb1edfe247538175f783243cb19d149" +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + coa@~1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/coa/-/coa-1.0.4.tgz#a9ef153660d6a86a8bdec0289a5c684d217432fd" dependencies: q "^1.1.2" -color-convert@^1.3.0: +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +color-convert@^1.3.0, color-convert@^1.9.0: version "1.9.0" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a" dependencies: @@ -182,6 +333,12 @@ colors@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" + dependencies: + delayed-stream "~1.0.0" + commander@~2.11.0: version "2.11.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" @@ -190,10 +347,27 @@ concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" -core-util-is@~1.0.0: +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + +core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" +cross-spawn@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" + dependencies: + lru-cache "^4.0.1" + which "^1.2.9" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + css-color-names@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" @@ -242,11 +416,23 @@ csso@~2.3.1: clap "^1.0.9" source-map "^0.5.3" +currently-unhandled@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" + dependencies: + array-find-index "^1.0.1" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + dateformat@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-2.0.0.tgz#2743e3abb5c3fc2462e527dca445e04e9f4dee17" -decamelize@^1.1.2: +decamelize@^1.1.1, decamelize@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -260,6 +446,14 @@ defined@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + deprecated@^0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/deprecated/-/deprecated-0.0.1.tgz#f9c9af5464afa1e7a971458a8bdef2aa94d5bb19" @@ -276,7 +470,13 @@ duplexer2@0.0.2: dependencies: readable-stream "~1.1.9" -electron-to-chromium@^1.2.7: +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + dependencies: + jsbn "~0.1.0" + +electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.18: version "1.3.18" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.18.tgz#3dcc99da3e6b665f6abbc71c28ad51a2cd731a9c" @@ -286,7 +486,13 @@ end-of-stream@~0.1.5: dependencies: once "~1.3.0" -escape-string-regexp@^1.0.2: +error-ex@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" + dependencies: + is-arrayish "^0.2.1" + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -318,7 +524,7 @@ expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -extend@^3.0.0: +extend@^3.0.0, extend@~3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" @@ -328,6 +534,10 @@ extglob@^0.3.1: dependencies: is-extglob "^1.0.0" +extsprintf@1.3.0, extsprintf@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + fancy-log@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.0.tgz#45be17d02bb9917d60ccffd4995c999e6c8c9948" @@ -353,6 +563,13 @@ find-index@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4" +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + findup-sync@^0.4.2: version "0.4.3" resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.3.tgz#40043929e7bc60adf0b7f4827c4c6e75a0deca12" @@ -400,20 +617,78 @@ for-own@^1.0.0: dependencies: for-in "^1.0.1" +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + fs-exists-sync@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +fstream@^1.0.0, fstream@^1.0.2: + version "1.0.11" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + function-bind@^1.0.2: version "1.1.0" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + gaze@^0.5.1: version "0.5.2" resolved "https://registry.yarnpkg.com/gaze/-/gaze-0.5.2.tgz#40b709537d24d1d45767db5a908689dfe69ac44f" dependencies: globule "~0.1.0" +gaze@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.2.tgz#847224677adb8870d679257ed3388fdb61e40105" + dependencies: + globule "^1.0.0" + +get-caller-file@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" + +get-stdin@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + dependencies: + assert-plus "^1.0.0" + glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -459,6 +734,17 @@ glob@^4.3.1: minimatch "^2.0.1" once "^1.3.0" +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@~7.1.1: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@~3.1.21: version "3.1.21" resolved "https://registry.yarnpkg.com/glob/-/glob-3.1.21.tgz#d29e0a055dea5138f4d07ed40e8982e83c2066cd" @@ -483,6 +769,14 @@ global-prefix@^0.1.4: is-windows "^0.2.0" which "^1.2.12" +globule@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/globule/-/globule-1.2.0.tgz#1dc49c6822dd9e8a2fa00ba2a295006e8664bd09" + dependencies: + glob "~7.1.1" + lodash "~4.17.4" + minimatch "~3.0.2" + globule@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/globule/-/globule-0.1.0.tgz#d9c8edde1da79d125a151b79533b978676346ae5" @@ -503,10 +797,24 @@ graceful-fs@^3.0.0: dependencies: natives "^1.1.0" +graceful-fs@^4.1.2: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + graceful-fs@~1.2.0: version "1.2.3" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-1.2.3.tgz#15a4806a57547cb2d2dbf27f42e89a8c3451b364" +gulp-autoprefixer@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/gulp-autoprefixer/-/gulp-autoprefixer-4.0.0.tgz#e00a8c571b85d06516ac26341be90dfd9fc1eab0" + dependencies: + autoprefixer "^7.0.0" + gulp-util "^3.0.0" + postcss "^6.0.1" + through2 "^2.0.0" + vinyl-sourcemaps-apply "^0.2.0" + gulp-cssnano@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/gulp-cssnano/-/gulp-cssnano-2.1.2.tgz#e08a09771ec5454a549f1a005bdd256cb8e5e0a3" @@ -527,6 +835,16 @@ gulp-rename@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/gulp-rename/-/gulp-rename-1.2.2.tgz#3ad4428763f05e2764dec1c67d868db275687817" +gulp-sass@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/gulp-sass/-/gulp-sass-3.1.0.tgz#53dc4b68a1f5ddfe4424ab4c247655269a8b74b7" + dependencies: + gulp-util "^3.0" + lodash.clonedeep "^4.3.2" + node-sass "^4.2.0" + through2 "^2.0.0" + vinyl-sourcemaps-apply "^0.2.0" + gulp-uglify@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/gulp-uglify/-/gulp-uglify-3.0.0.tgz#0df0331d72a0d302e3e37e109485dddf33c6d1ca" @@ -539,7 +857,7 @@ gulp-uglify@^3.0.0: uglify-js "^3.0.5" vinyl-sourcemaps-apply "^0.2.0" -gulp-util@^3.0.0, gulp-util@^3.0.6, gulp-util@^3.0.8: +gulp-util@^3.0, gulp-util@^3.0.0, gulp-util@^3.0.6, gulp-util@^3.0.8: version "3.0.8" resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f" dependencies: @@ -586,6 +904,17 @@ gulplog@^1.0.0: dependencies: glogg "^1.0.0" +har-schema@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" + +har-validator@~4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" + dependencies: + ajv "^4.9.1" + har-schema "^1.0.5" + has-ansi@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" @@ -596,28 +925,71 @@ has-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" +has-flag@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" + has-gulplog@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/has-gulplog/-/has-gulplog-0.1.0.tgz#6414c82913697da51590397dafb12f22967811ce" dependencies: sparkles "^1.0.0" +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + has@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" dependencies: function-bind "^1.0.2" +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + homedir-polyfill@^1.0.0, homedir-polyfill@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" dependencies: parse-passwd "^1.0.0" +hosted-git-info@^2.1.4: + version "2.5.0" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" + html-comment-regex@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.1.tgz#668b93776eaae55ebde8f3ad464b307a4963625e" +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +in-publish@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51" + +indent-string@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" + dependencies: + repeating "^2.0.0" + indexes-of@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" @@ -633,7 +1005,7 @@ inherits@1: version "1.0.2" resolved "https://registry.yarnpkg.com/inherits/-/inherits-1.0.2.tgz#ca4309dadee6b54cc0b8d247e8d7c7a0975bdc9b" -inherits@2, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" @@ -645,6 +1017,10 @@ interpret@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90" +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + is-absolute-url@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" @@ -656,10 +1032,20 @@ is-absolute@^0.2.3: is-relative "^0.2.1" is-windows "^0.2.0" +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + is-buffer@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + is-dotfile@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" @@ -678,6 +1064,18 @@ is-extglob@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + is-glob@^2.0.0, is-glob@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" @@ -726,6 +1124,10 @@ is-svg@^2.0.0: dependencies: html-comment-regex "^1.1.0" +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + is-unc-path@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-0.1.2.tgz#6ab053a72573c10250ff416a3814c35178af39b9" @@ -762,7 +1164,11 @@ isobject@^3.0.0, isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" -js-base64@^2.1.9: +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +js-base64@^2.1.8, js-base64@^2.1.9: version "2.1.9" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce" @@ -773,6 +1179,37 @@ js-yaml@~3.7.0: argparse "^1.0.7" esprima "^2.6.0" +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + kind-of@^3.0.2: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -785,6 +1222,12 @@ kind-of@^4.0.0: dependencies: is-buffer "^1.1.5" +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + liftoff@^2.1.0: version "2.3.0" resolved "https://registry.yarnpkg.com/liftoff/-/liftoff-2.3.0.tgz#a98f2ff67183d8ba7cfaca10548bd7ff0550b385" @@ -799,6 +1242,16 @@ liftoff@^2.1.0: rechoir "^0.6.2" resolve "^1.1.7" +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + lodash._basecopy@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" @@ -835,6 +1288,14 @@ lodash._root@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692" +lodash.assign@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" + +lodash.clonedeep@^4.3.2: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + lodash.escape@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-3.2.0.tgz#995ee0dc18c1b48cc92effae71a10aab5b487698" @@ -873,6 +1334,10 @@ lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" +lodash.mergewith@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz#150cf0a16791f5903b8891eab154609274bdea55" + lodash.restparam@^3.0.0: version "3.6.1" resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" @@ -902,7 +1367,7 @@ lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" -lodash@^4.13.1: +lodash@^4.0.0, lodash@^4.13.1, lodash@~4.17.4: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -910,10 +1375,24 @@ lodash@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.0.2.tgz#8f57560c83b59fc270bd3d561b690043430e2551" +loud-rejection@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" + dependencies: + currently-unhandled "^0.4.1" + signal-exit "^3.0.0" + lru-cache@2: version "2.7.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952" +lru-cache@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + macaddress@^0.2.8: version "0.2.8" resolved "https://registry.yarnpkg.com/macaddress/-/macaddress-0.2.8.tgz#5904dc537c39ec6dbefeae902327135fa8511f12" @@ -932,10 +1411,29 @@ map-cache@^0.2.0: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" +map-obj@^1.0.0, map-obj@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + math-expression-evaluator@^1.2.14: version "1.2.17" resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" +meow@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" + dependencies: + camelcase-keys "^2.0.0" + decamelize "^1.1.2" + loud-rejection "^1.0.0" + map-obj "^1.0.1" + minimist "^1.1.3" + normalize-package-data "^2.3.4" + object-assign "^4.0.1" + read-pkg-up "^1.0.1" + redent "^1.0.0" + trim-newlines "^1.0.0" + micromatch@^2.3.7: version "2.3.11" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" @@ -954,12 +1452,28 @@ micromatch@^2.3.7: parse-glob "^3.0.4" regex-cache "^0.4.2" +mime-db@~1.29.0: + version "1.29.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.29.0.tgz#48d26d235589651704ac5916ca06001914266878" + +mime-types@^2.1.12, mime-types@~2.1.7: + version "2.1.16" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.16.tgz#2b858a52e5ecd516db897ac2be87487830698e23" + dependencies: + mime-db "~1.29.0" + minimatch@^2.0.1: version "2.0.10" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-2.0.10.tgz#8d087c39c6b38c001b97fca7ce6d0e1e80afbac7" dependencies: brace-expansion "^1.0.0" +minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + dependencies: + brace-expansion "^1.1.7" + minimatch@~0.2.11: version "0.2.14" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.2.14.tgz#c74e780574f63c6f9a090e90efbe6ef53a6a756a" @@ -971,11 +1485,11 @@ minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" -minimist@^1.1.0: +minimist@^1.1.0, minimist@^1.1.3: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" -mkdirp@^0.5.0, mkdirp@~0.5.1: +"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" dependencies: @@ -987,10 +1501,70 @@ multipipe@^0.1.2: dependencies: duplexer2 "0.0.2" +nan@^2.3.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" + natives@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.0.tgz#e9ff841418a6b2ec7a495e939984f78f163e6e31" +node-gyp@^3.3.1: + version "3.6.2" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.6.2.tgz#9bfbe54562286284838e750eac05295853fa1c60" + dependencies: + fstream "^1.0.0" + glob "^7.0.3" + graceful-fs "^4.1.2" + minimatch "^3.0.2" + mkdirp "^0.5.0" + nopt "2 || 3" + npmlog "0 || 1 || 2 || 3 || 4" + osenv "0" + request "2" + rimraf "2" + semver "~5.3.0" + tar "^2.0.0" + which "1" + +node-sass@^4.2.0: + version "4.5.3" + resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.5.3.tgz#d09c9d1179641239d1b97ffc6231fdcec53e1568" + dependencies: + async-foreach "^0.1.3" + chalk "^1.1.1" + cross-spawn "^3.0.0" + gaze "^1.0.0" + get-stdin "^4.0.1" + glob "^7.0.3" + in-publish "^2.0.0" + lodash.assign "^4.2.0" + lodash.clonedeep "^4.3.2" + lodash.mergewith "^4.6.0" + meow "^3.7.0" + mkdirp "^0.5.1" + nan "^2.3.2" + node-gyp "^3.3.1" + npmlog "^4.0.0" + request "^2.79.0" + sass-graph "^2.1.1" + stdout-stream "^1.4.0" + +"nopt@2 || 3": + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + dependencies: + abbrev "1" + +normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: + version "2.4.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + normalize-path@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" @@ -1010,10 +1584,27 @@ normalize-url@^1.4.0: query-string "^4.1.0" sort-keys "^1.0.0" +"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + num2fraction@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + object-assign@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2" @@ -1072,6 +1663,23 @@ os-homedir@^1.0.0, os-homedir@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + dependencies: + lcid "^1.0.0" + +os-tmpdir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@0: + version "0.1.4" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + parse-filepath@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/parse-filepath/-/parse-filepath-1.0.1.tgz#159d6155d43904d16c10ef698911da1e91969b73" @@ -1089,10 +1697,26 @@ parse-glob@^3.0.4: is-extglob "^1.0.0" is-glob "^2.0.0" +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + parse-passwd@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + path-parse@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" @@ -1107,6 +1731,32 @@ path-root@^0.1.1: dependencies: path-root-regex "^0.1.0" +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +performance-now@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + postcss-calc@^5.2.0: version "5.3.1" resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-5.3.1.tgz#77bae7ca928ad85716e2fda42f261bf7c1d65b5e" @@ -1318,6 +1968,14 @@ postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0 source-map "^0.5.6" supports-color "^3.2.3" +postcss@^6.0.1, postcss@^6.0.6: + version "6.0.9" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.9.tgz#54819766784a51c65b1ec4d54c2f93765438c35a" + dependencies: + chalk "^2.1.0" + source-map "^0.5.6" + supports-color "^4.2.1" + prepend-http@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" @@ -1334,10 +1992,22 @@ process-nextick-args@~1.0.6: version "1.0.7" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + q@^1.1.2: version "1.5.0" resolved "https://registry.yarnpkg.com/q/-/q-1.5.0.tgz#dd01bac9d06d30e6f219aecb8253ee9ebdc308f1" +qs@~6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" + query-string@^4.1.0: version "4.3.4" resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" @@ -1352,6 +2022,21 @@ randomatic@^1.1.3: is-number "^3.0.0" kind-of "^4.0.0" +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + "readable-stream@>=1.0.33-1 <1.1.0-0": version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" @@ -1370,7 +2055,7 @@ readable-stream@^1.0.26-2, readable-stream@^1.0.26-4, readable-stream@~1.1.9: isarray "0.0.1" string_decoder "~0.10.x" -readable-stream@^2.1.5: +readable-stream@^2.0.1, readable-stream@^2.0.6, readable-stream@^2.1.5: version "2.3.3" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" dependencies: @@ -1388,6 +2073,13 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" +redent@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" + dependencies: + indent-string "^2.1.0" + strip-indent "^1.0.1" + reduce-css-calc@^1.2.6: version "1.3.0" resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716" @@ -1421,10 +2113,51 @@ repeat-string@^1.5.2: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + replace-ext@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-0.0.1.tgz#29bbd92078a739f0bcce2b4ee41e837953522924" +request@2, request@^2.79.0: + version "2.81.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.12.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~4.2.1" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + performance-now "^0.2.0" + qs "~6.4.0" + safe-buffer "^5.0.1" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "^0.6.0" + uuid "^3.0.0" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + resolve-dir@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e" @@ -1438,6 +2171,12 @@ resolve@^1.1.6, resolve@^1.1.7: dependencies: path-parse "^1.0.5" +rimraf@2: + version "2.6.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" + dependencies: + glob "^7.0.5" + run-sequence@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/run-sequence/-/run-sequence-2.1.0.tgz#149da012516f21dcf79db6dc99a2a95603631b21" @@ -1445,32 +2184,76 @@ run-sequence@^2.1.0: chalk "^1.1.3" gulp-util "^3.0.8" -safe-buffer@~5.1.0, safe-buffer@~5.1.1: +safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" +sass-graph@^2.1.1: + version "2.2.4" + resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.2.4.tgz#13fbd63cd1caf0908b9fd93476ad43a51d1e0b49" + dependencies: + glob "^7.0.0" + lodash "^4.0.0" + scss-tokenizer "^0.2.3" + yargs "^7.0.0" + sax@~1.2.1: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" +scss-tokenizer@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" + dependencies: + js-base64 "^2.1.8" + source-map "^0.4.2" + +"semver@2 || 3 || 4 || 5": + version "5.4.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" + semver@^4.1.0: version "4.3.6" resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da" +semver@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + sequencify@~0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/sequencify/-/sequencify-0.0.7.tgz#90cff19d02e07027fd767f5ead3e7b95d1e7380c" +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + sigmund@~1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" +signal-exit@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + sort-keys@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" dependencies: is-plain-obj "^1.0.0" +source-map@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + source-map@^0.5.1, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1: version "0.5.6" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" @@ -1479,10 +2262,44 @@ sparkles@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.0.tgz#1acbbfb592436d10bbe8f785b7cc6f82815012c3" +spdx-correct@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" + dependencies: + spdx-license-ids "^1.0.2" + +spdx-expression-parse@~1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" + +spdx-license-ids@^1.0.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" +sshpk@^1.7.0: + version "1.13.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +stdout-stream@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" + dependencies: + readable-stream "^2.0.1" + stream-consume@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/stream-consume/-/stream-consume-0.1.0.tgz#a41ead1a6d6081ceb79f65b061901b6d8f3d1d0f" @@ -1497,6 +2314,14 @@ strict-uri-encode@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + string_decoder@~0.10.x: version "0.10.31" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" @@ -1507,7 +2332,11 @@ string_decoder@~1.0.3: dependencies: safe-buffer "~5.1.0" -strip-ansi@^3.0.0: +stringstream@~0.0.4: + version "0.0.5" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" dependencies: @@ -1520,6 +2349,18 @@ strip-bom@^1.0.0: first-chunk-stream "^1.0.0" is-utf8 "^0.2.0" +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-indent@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" + dependencies: + get-stdin "^4.0.1" + supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" @@ -1530,6 +2371,12 @@ supports-color@^3.2.3: dependencies: has-flag "^1.0.0" +supports-color@^4.0.0, supports-color@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.2.1.tgz#65a4bb2631e90e02420dba5554c375a4754bb836" + dependencies: + has-flag "^2.0.0" + svgo@^0.7.0: version "0.7.2" resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5" @@ -1542,6 +2389,14 @@ svgo@^0.7.0: sax "~1.2.1" whet.extend "~0.9.9" +tar@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" + dependencies: + block-stream "*" + fstream "^1.0.2" + inherits "2" + through2@^0.6.1: version "0.6.5" resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" @@ -1566,6 +2421,26 @@ time-stamp@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" +tough-cookie@~2.3.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" + dependencies: + punycode "^1.4.1" + +trim-newlines@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + uglify-js@^3.0.5: version "3.0.27" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.0.27.tgz#a97db8c8ba6b9dba4e2f88d86aa9548fa6320034" @@ -1603,16 +2478,35 @@ util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" +uuid@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" + v8flags@^2.0.2: version "2.1.1" resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" dependencies: user-home "^1.1.1" +validate-npm-package-license@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" + dependencies: + spdx-correct "~1.0.0" + spdx-expression-parse "~1.0.0" + vendors@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.1.tgz#37ad73c8ee417fb3d580e785312307d274847f22" +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + vinyl-fs@^0.3.0: version "0.3.14" resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-0.3.14.tgz#9a6851ce1cac1c1cea5fe86c0931d620c2cfa9e6" @@ -1651,12 +2545,29 @@ whet.extend@~0.9.9: version "0.9.9" resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1" -which@^1.2.12: +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + +which@1, which@^1.2.12, which@^1.2.9: version "1.3.0" resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" dependencies: isexe "^2.0.0" +wide-align@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" + dependencies: + string-width "^1.0.2" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" @@ -1664,3 +2575,35 @@ wrappy@1: "xtend@>=4.0.0 <4.1.0-0", xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + +yargs-parser@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" + dependencies: + camelcase "^3.0.0" + +yargs@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^5.0.0" From 5f1244b91ce791f9739a831456ce3bf7d3b2c2d8 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Thu, 24 Aug 2017 17:48:12 -0500 Subject: [PATCH 02/11] Updated changelog; fixed modal backdrop animations; cleaned up Sass source --- CHANGELOG.md | 6 ++++++ css/quick-modal.css | 36 ++++++++++++++++++------------------ css/quick-modal.min.css | 26 +++++++++++++++++++++++++- js/jquery.quick-modal.js | 2 +- js/jquery.quick-modal.min.js | 2 +- scss/quick-modal.scss | 2 +- 6 files changed, 52 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 423236b..e740b5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # jQuery Quick Modal +#### v2.0.1 | August 25, 2017 +* Fixed an issue where modal backdrops were not animating properly when closing a modal +* Added Sass source files and Gulp tasks to support builds with custom prefixes + +--- + #### v2.0.0 | August 22, 2017 * Updated all HTML classes and ids to use the `qm-` prefix * Updated all events to use the `.qm` namespace diff --git a/css/quick-modal.css b/css/quick-modal.css index c7e35b6..fbce265 100644 --- a/css/quick-modal.css +++ b/css/quick-modal.css @@ -10,12 +10,12 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -body.qm--disable-scroll { +body.qm-disable-scroll { overflow-y: hidden; -webkit-overflow-scrolling: none; } -body .qm--modal { +body .qm-modal { -webkit-transition: all 250ms ease; transition: all 250ms ease; display: none; @@ -37,63 +37,63 @@ body .qm--modal { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25); } -body .qm--modal.qm--animation-fade { +body .qm-modal.qm-animation-fade { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); } -body .qm--modal.qm--animation-fade-up { +body .qm-modal.qm-animation-fade-up { -webkit-transform: translate(-50%, 150%) scale(1); transform: translate(-50%, 150%) scale(1); } -body .qm--modal.qm--animation-fade-right { +body .qm-modal.qm-animation-fade-right { -webkit-transform: translate(-150%, -50%) scale(1); transform: translate(-150%, -50%) scale(1); } -body .qm--modal.qm--animation-fade-down { +body .qm-modal.qm-animation-fade-down { -webkit-transform: translate(-50%, -150%) scale(1); transform: translate(-50%, -150%) scale(1); } -body .qm--modal.qm--animation-fade-left { +body .qm-modal.qm-animation-fade-left { -webkit-transform: translate(150%, -50%) scale(1); transform: translate(150%, -50%) scale(1); } -body .qm--modal.qm--animation-fade-zoom { +body .qm-modal.qm-animation-fade-zoom { -webkit-transform: translate(-50%, -50%) scale(2); transform: translate(-50%, -50%) scale(2); } -body .qm--modal.qm--animation-fade-zoom-up { +body .qm-modal.qm-animation-fade-zoom-up { -webkit-transform: translate(-50%, 150%) scale(2); transform: translate(-50%, 150%) scale(2); } -body .qm--modal.qm--animation-fade-zoom-right { +body .qm-modal.qm-animation-fade-zoom-right { -webkit-transform: translate(-150%, -50%) scale(2); transform: translate(-150%, -50%) scale(2); } -body .qm--modal.qm--animation-fade-zoom-down { +body .qm-modal.qm-animation-fade-zoom-down { -webkit-transform: translate(-50%, -150%) scale(2); transform: translate(-50%, -150%) scale(2); } -body .qm--modal.qm--animation-fade-zoom-left { +body .qm-modal.qm-animation-fade-zoom-left { -webkit-transform: translate(150%, -50%) scale(2); transform: translate(150%, -50%) scale(2); } -body .qm--modal.qm--visible { +body .qm-modal.qm-visible { opacity: 1; -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); } -body .qm--modal .qm--close-modal { +body .qm-modal .qm-close-modal { position: absolute; top: 0; right: 0; @@ -102,18 +102,18 @@ body .qm--modal .qm--close-modal { color: #ccc; } -body .qm--modal .qm--close-modal:after { +body .qm-modal .qm-close-modal:after { content: '\2716'; display: inline-block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 20px; } -body .qm--modal .qm--close-modal:focus { +body .qm-modal .qm-close-modal:focus { outline: none; } -body #qm--modal-background { +body #qm-modal-background { -webkit-transition: all 250ms ease; transition: all 250ms ease; display: none; @@ -127,6 +127,6 @@ body #qm--modal-background { height: 100%; } -body #qm--modal-background.qm--visible { +body #qm-modal-background.qm-visible { opacity: 1; } diff --git a/css/quick-modal.min.css b/css/quick-modal.min.css index 3dadeb6..e5d79cd 100644 --- a/css/quick-modal.min.css +++ b/css/quick-modal.min.css @@ -10,4 +10,28 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -body.qm--disable-scroll{overflow-y:hidden;-webkit-overflow-scrolling:none}body .qm--modal{transition:all .25s ease;display:none;opacity:0;box-sizing:border-box;padding:18px;background-color:#fff;border-radius:3px;width:60%;min-height:60px;max-height:90%;overflow:auto;position:fixed;top:50%;left:50%;z-index:2;box-shadow:0 5px 10px rgba(0,0,0,.25)}body .qm--modal.qm--animation-fade{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm--modal.qm--animation-fade-up{-webkit-transform:translate(-50%,150%) scale(1);transform:translate(-50%,150%) scale(1)}body .qm--modal.qm--animation-fade-right{-webkit-transform:translate(-150%,-50%) scale(1);transform:translate(-150%,-50%) scale(1)}body .qm--modal.qm--animation-fade-down{-webkit-transform:translate(-50%,-150%) scale(1);transform:translate(-50%,-150%) scale(1)}body .qm--modal.qm--animation-fade-left{-webkit-transform:translate(150%,-50%) scale(1);transform:translate(150%,-50%) scale(1)}body .qm--modal.qm--animation-fade-zoom{-webkit-transform:translate(-50%,-50%) scale(2);transform:translate(-50%,-50%) scale(2)}body .qm--modal.qm--animation-fade-zoom-up{-webkit-transform:translate(-50%,150%) scale(2);transform:translate(-50%,150%) scale(2)}body .qm--modal.qm--animation-fade-zoom-right{-webkit-transform:translate(-150%,-50%) scale(2);transform:translate(-150%,-50%) scale(2)}body .qm--modal.qm--animation-fade-zoom-down{-webkit-transform:translate(-50%,-150%) scale(2);transform:translate(-50%,-150%) scale(2)}body .qm--modal.qm--animation-fade-zoom-left{-webkit-transform:translate(150%,-50%) scale(2);transform:translate(150%,-50%) scale(2)}body .qm--modal.qm--visible{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm--modal .qm--close-modal{position:absolute;top:0;right:0;padding:18px;cursor:pointer;color:#ccc}body .qm--modal .qm--close-modal:after{content:"\2716";display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}body .qm--modal .qm--close-modal:focus{outline:none}body #qm--modal-background{transition:all .25s ease;display:none;opacity:0;background-color:rgba(0,0,0,.8);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}body #qm--modal-background.qm--visible{opacity:1}orm:translate(150%,-50%) scale(2)}body .qm--modal.qm--visible{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm--modal .qm--close-modal{position:absolute;top:0;right:0;padding:18px;cursor:pointer;color:#ccc}body .qm--modal .qm--close-modal:after{content:"\2716";display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}body .qm--modal .qm--close-modal:focus{outline:none}body #qm--modal-background{transition:all .25s ease;display:none;opacity:0;background-color:rgba(0,0,0,.8);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}body #qm--modal-background.qm--visible{opacity:1} \ No newline at end of file +/* -------------------------------------------------- +jQuery Quick Modal v2.0.0 + +By Kevin Beronilla +http://www.kevinberonilla.com + +Fork on GitHub +https://github.com/kevinberonilla/jquery-quick-modal + +Free to use under the MIT license +http://www.opensource.org/licenses/mit-license.php +-------------------------------------------------- */ +/* -------------------------------------------------- +jQuery Quick Modal v2.0.0 + +By Kevin Beronilla +http://www.kevinberonilla.com + +Fork on GitHub +https://github.com/kevinberonilla/jquery-quick-modal + +Free to use under the MIT license +http://www.opensource.org/licenses/mit-license.php +-------------------------------------------------- */ +body.qm-disable-scroll{overflow-y:hidden;-webkit-overflow-scrolling:none}body .qm-modal{transition:all .25s ease;display:none;opacity:0;box-sizing:border-box;padding:18px;background-color:#fff;border-radius:3px;width:60%;min-height:60px;max-height:90%;overflow:auto;position:fixed;top:50%;left:50%;z-index:2;box-shadow:0 5px 10px rgba(0,0,0,.25)}body .qm-modal.qm-animation-fade{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm-modal.qm-animation-fade-up{-webkit-transform:translate(-50%,150%) scale(1);transform:translate(-50%,150%) scale(1)}body .qm-modal.qm-animation-fade-right{-webkit-transform:translate(-150%,-50%) scale(1);transform:translate(-150%,-50%) scale(1)}body .qm-modal.qm-animation-fade-down{-webkit-transform:translate(-50%,-150%) scale(1);transform:translate(-50%,-150%) scale(1)}body .qm-modal.qm-animation-fade-left{-webkit-transform:translate(150%,-50%) scale(1);transform:translate(150%,-50%) scale(1)}body .qm-modal.qm-animation-fade-zoom{-webkit-transform:translate(-50%,-50%) scale(2);transform:translate(-50%,-50%) scale(2)}body .qm-modal.qm-animation-fade-zoom-up{-webkit-transform:translate(-50%,150%) scale(2);transform:translate(-50%,150%) scale(2)}body .qm-modal.qm-animation-fade-zoom-right{-webkit-transform:translate(-150%,-50%) scale(2);transform:translate(-150%,-50%) scale(2)}body .qm-modal.qm-animation-fade-zoom-down{-webkit-transform:translate(-50%,-150%) scale(2);transform:translate(-50%,-150%) scale(2)}body .qm-modal.qm-animation-fade-zoom-left{-webkit-transform:translate(150%,-50%) scale(2);transform:translate(150%,-50%) scale(2)}body .qm-modal.qm-visible{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}body .qm-modal .qm-close-modal{position:absolute;top:0;right:0;padding:18px;cursor:pointer;color:#ccc}body .qm-modal .qm-close-modal:after{content:"\2716";display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}body .qm-modal .qm-close-modal:focus{outline:none}body #qm-modal-background{transition:all .25s ease;display:none;opacity:0;background-color:rgba(0,0,0,.8);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}body #qm-modal-background.qm-visible{opacity:1} \ No newline at end of file diff --git a/js/jquery.quick-modal.js b/js/jquery.quick-modal.js index 51aebb7..08bca14 100644 --- a/js/jquery.quick-modal.js +++ b/js/jquery.quick-modal.js @@ -102,7 +102,7 @@ http://www.opensource.org/licenses/mit-license.php case 'close': bodyTag.removeClass('qm-disable-scroll'); - $('#modal-background').removeClass('qm-visible'); + $('#qm-modal-background').removeClass('qm-visible'); self.removeClass('qm-visible'); settings.onClose.call(); // Close callback diff --git a/js/jquery.quick-modal.min.js b/js/jquery.quick-modal.min.js index f2ef70d..7763204 100644 --- a/js/jquery.quick-modal.min.js +++ b/js/jquery.quick-modal.min.js @@ -10,4 +10,4 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -!function(e){function n(e,n,i){e.setSpeed(null).setTiming(null),n.setSpeed(null).setTiming(null),250==i.speed&&"ease"==i.timing||(e.setSpeed(i.speed).setTiming(i.timing),n.setSpeed(i.speed).setTiming(i.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(i,o){function a(e){27==e.keyCode&&c.is(":visible")&&d.enableEsc&&l()}function l(){m.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#qm-modal-background").unbind("click")}if(null!==i&&"string"==typeof i){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",onOpen:function(){},onClose:function(){}},o),s=e("body"),t=e(d.closeModalSelector),c=e(".qm-modal"),m=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),n(m,e("#qm-modal-background"),d),c.removeClass().addClass("qm-modal").addClass("qm-animation-"+d.animation),i){case"open":d.enableBodyScroll||s.addClass("qm-disable-scroll"),c.hide(),m.show(),s.keyup(a),e("#qm-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#qm-modal-background").click(l),e("#qm-modal-background").addClass("qm-visible"),m.addClass("qm-visible"),m.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass("qm-disable-scroll"),e("#modal-background").removeClass("qm-visible"),m.removeClass("qm-visible"),d.onClose.call(),setTimeout(function(){e("#qm-modal-background").hide(),m.hide(),m.trigger("modalclose.qm")},d.speed);break;case"trigger":var r=m.data("modal-id");e("#"+r).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(m=this).click(function(n){n.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",i)});return this}}(jQuery); \ No newline at end of file +!function(e){function n(e,n,i){e.setSpeed(null).setTiming(null),n.setSpeed(null).setTiming(null),250==i.speed&&"ease"==i.timing||(e.setSpeed(i.speed).setTiming(i.timing),n.setSpeed(i.speed).setTiming(i.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(i,o){function a(e){27==e.keyCode&&c.is(":visible")&&d.enableEsc&&l()}function l(){m.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#qm-modal-background").unbind("click")}if(null!==i&&"string"==typeof i){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",onOpen:function(){},onClose:function(){}},o),s=e("body"),t=e(d.closeModalSelector),c=e(".qm-modal"),m=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),n(m,e("#qm-modal-background"),d),c.removeClass().addClass("qm-modal").addClass("qm-animation-"+d.animation),i){case"open":d.enableBodyScroll||s.addClass("qm-disable-scroll"),c.hide(),m.show(),s.keyup(a),e("#qm-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#qm-modal-background").click(l),e("#qm-modal-background").addClass("qm-visible"),m.addClass("qm-visible"),m.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass("qm-disable-scroll"),e("#qm-modal-background").removeClass("qm-visible"),m.removeClass("qm-visible"),d.onClose.call(),setTimeout(function(){e("#qm-modal-background").hide(),m.hide(),m.trigger("modalclose.qm")},d.speed);break;case"trigger":var r=m.data("modal-id");e("#"+r).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(m=this).click(function(n){n.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",i)});return this}}(jQuery); \ No newline at end of file diff --git a/scss/quick-modal.scss b/scss/quick-modal.scss index 2a0d27f..50b6763 100644 --- a/scss/quick-modal.scss +++ b/scss/quick-modal.scss @@ -10,7 +10,7 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -$prefix: qm-; +$prefix: qm; body { &.#{$prefix}-disable-scroll { overflow-y: hidden; From 196336caa7ccc1f5b5dbaabd8e66edff12b00780 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:45:09 -0500 Subject: [PATCH 03/11] Added prefix option to JS; updated changelog and readme --- CHANGELOG.md | 13 ++--- README.md | 92 +++++++++++++++++++----------------- css/quick-modal.min.css | 24 ---------- js/jquery.quick-modal.js | 32 +++++++------ js/jquery.quick-modal.min.js | 2 +- package.json | 2 +- 6 files changed, 74 insertions(+), 91 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e740b5b..e0b5eb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ #### v2.0.1 | August 25, 2017 * Fixed an issue where modal backdrops were not animating properly when closing a modal +* Added the `prefix` option to support builds with custom prefixes * Added Sass source files and Gulp tasks to support builds with custom prefixes --- @@ -21,14 +22,14 @@ --- #### v1.07 | October 5, 2015 -* Added the **onOpen** and **onClose** options +* Added the `onOpen` and `onClose` options * Fixed an issue where the close modal bindings persisted after unbinding * Code cleanup for maintainability --- #### v1.06 | September 30, 2015 -* Added the **appendBackgroundTo** option +* Added the `appendBackgroundTo` option * Fixed an issue where two modal backgrounds could be appended through a specific combination of bindings --- @@ -39,7 +40,7 @@ --- #### v1.04 | August 3, 2015 -* Added the **enableBodyScroll** option +* Added the `enableBodyScroll` option --- @@ -49,8 +50,8 @@ --- #### v1.02 | July 22, 2015 -* Added the **enableEsc** and **enableClickAway** options -* Added the **trigger** method +* Added the `enableEsc` and `enableClickAway` options +* Added the `trigger` method * Fixed an issue where modals taller than the viewport were not scrolling correctly --- @@ -58,7 +59,7 @@ #### v1.01 | July 14, 2015 * Added method functionality * Fixed an issue where the close modal selector was not binding correctly -* Added a min-height CSS property on the **.modal** class (fixes the appearance of empty modals) +* Added a min-height CSS property on the `.modal` class (fixes the appearance of empty modals) --- diff --git a/README.md b/README.md index a08c2a1..44962f5 100644 --- a/README.md +++ b/README.md @@ -33,16 +33,16 @@ bower install jquery-quick-modal Close window ``` -**class="open-modal"** +**`class="open-modal"`** The class for the element which will trigger a modal window on click; can be changed to a selector of your choice when initialized; default class is not styled by CSS -**data-modal-id="my-modal"** +**`data-modal-id="my-modal"`** Specifies the ID of the modal that the link will be bound to; required (throws an error if not present) -**class="qm-modal"** +**`class="qm-modal"`** The class for the modal window; has CSS styles that can be edited/overridden -**class="qm-close-modal"** +**`class="qm-close-modal"`** The class for the element which will close an opened modal window on click; has CSS styles that can be edited/overridden; can be changed to a selector of your choice when initialized (loses CSS styles when done so) --- @@ -53,7 +53,7 @@ $(document).ready(function() { $('.open-modal').quickModal(); }); ``` -**$('.open-modal')** +**`$('.open-modal')`** The jQuery selector object assigned to trigger modal windows on click --- @@ -70,55 +70,59 @@ $(document).ready(function() { enableClickAway: true, enableBodyScroll: false, appendBackgroundTo: 'body', + prefix: 'qm', onOpen: function() {}, onClose: function() {} }); }); ``` -**animation** +**`animation`** The type of animation used for opening and closing modal windows -* 'fade' -* 'fade-up' -* 'fade-right' -* 'fade-down' -* 'fade-left' -* 'fade-zoom' -* 'fade-zoom-up' -* 'fade-zoom-right' -* 'fade-zoom-down' -* 'fade-zoom-left' - -**speed** +* `'fade'` +* `'fade-up'` +* `'fade-right'` +* `'fade-down'` +* `'fade-left'` +* `'fade-zoom'` +* `'fade-zoom-up'` +* `'fade-zoom-right'` +* `'fade-zoom-down'` +* `'fade-zoom-left'` + +**`speed`** The length of time (in milliseconds) for the animation -**timing** +**`timing`** The timing function used to animate the modal window -* 'linear' -* 'ease' -* 'ease-in' -* 'ease-out' -* 'ease-in-out' -* 'cubic-bezier(n, n, n, n)' - -**closeModalSelector** +* `'linear'` +* `'ease'` +* `'ease-in'` +* `'ease-out'` +* `'ease-in-out'` +* `'cubic-bezier(n, n, n, n)'` + +**`closeModalSelector`** The jQuery selector assigned to closing modal windows on click -**enableEsc** +**`enableEsc`** Boolean for determining whether or not pressing the Esc key will close modals -**enableClickAway** +**`enableClickAway`** Boolean for determining whether or not clicking the modal background will close modals -**enableBodyScroll** +**`enableBodyScroll`** Boolean for determining whether or not the body behind an open modal window is scrollable -**appendBackgroundTo** +**`appendBackgroundTo`** The jQuery selector to which the modal background will be appended -**onOpen** +**`prefix`** +String representing the prefix used for all classes and ids (only needed for builds with custom prefixed CSS; does not directly affect `closeModalSelector`) + +**`onOpen`** The callback that fires when the modal is opened -**onClose** +**`onClose`** The callback that fires when the modal is closed --- @@ -151,28 +155,28 @@ $(document).ready(function() { }); }); ``` -**$('#my-modal')** +**`$('#my-modal')`** The jQuery selector object for the modal window to be triggered -**$('#modal-link')** +**`$('#modal-link')`** The jQuery selector object for the element that will trigger its modal window -**.quickModal('open')** +**`.quickModal('open')`** Open the selected modal window with default settings -**.quickModal('open', {...})** +**`.quickModal('open', {...})`** Open the selected modal window with the specified settings -**.quickModal('close')** +**`.quickModal('close')`** Close the selected modal window with previously applied settings -**.quickModal('close', {...})** +**`.quickModal('close', {...})`** Close the selected modal window with the specified settings -**.quickModal('trigger')** +**`.quickModal('trigger')`** Open the target of the selected element with default settings -**.quickModal('trigger', {...})** +**`.quickModal('trigger', {...})`** Open the target of the selected element with the specified settings --- @@ -188,10 +192,10 @@ $(document).ready(function() { }); }); ``` -**'modalopen.qm'** +**`'modalopen.qm'`** The event fired immediately before a modal window is opened -**'modalclose.qm'** +**`'modalclose.qm'`** The event fired immediately after a modal window is closed --- @@ -210,4 +214,4 @@ This alternative way of initializing the plugin will ensure that elements that m #### Modifying the Souce Code - +Included in the package are Sass source source files (with a variable for managing custom prefixed classes and ids) and Gulp build scripts. Be sure to use the `prefix` option in the plugin to support your custom prefix. diff --git a/css/quick-modal.min.css b/css/quick-modal.min.css index e5d79cd..8e9efb9 100644 --- a/css/quick-modal.min.css +++ b/css/quick-modal.min.css @@ -7,30 +7,6 @@ http://www.kevinberonilla.com Fork on GitHub https://github.com/kevinberonilla/jquery-quick-modal -Free to use under the MIT license -http://www.opensource.org/licenses/mit-license.php --------------------------------------------------- */ -/* -------------------------------------------------- -jQuery Quick Modal v2.0.0 - -By Kevin Beronilla -http://www.kevinberonilla.com - -Fork on GitHub -https://github.com/kevinberonilla/jquery-quick-modal - -Free to use under the MIT license -http://www.opensource.org/licenses/mit-license.php --------------------------------------------------- */ -/* -------------------------------------------------- -jQuery Quick Modal v2.0.0 - -By Kevin Beronilla -http://www.kevinberonilla.com - -Fork on GitHub -https://github.com/kevinberonilla/jquery-quick-modal - Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ diff --git a/js/jquery.quick-modal.js b/js/jquery.quick-modal.js index 08bca14..5e55117 100644 --- a/js/jquery.quick-modal.js +++ b/js/jquery.quick-modal.js @@ -50,13 +50,15 @@ http://www.opensource.org/licenses/mit-license.php enableClickAway: true, enableBodyScroll: false, appendBackgroundTo: 'body', + prefix: 'qm', onOpen: function() {}, onClose: function() {} }, options), bodyTag = $('body'), closeModalLink = $(settings.closeModalSelector), - modal = $('.qm-modal'), + modal = $('.' + settings.prefix + '-modal'), self = this; + debugger; function keyUpCheck(e) { if (e.keyCode == 27 && modal.is(':visible') && settings.enableEsc) closeModal(); // Esc key events based on options @@ -66,29 +68,29 @@ http://www.opensource.org/licenses/mit-license.php self.quickModal('close', settings); bodyTag.unbind('keyup', keyUpCheck); closeModalLink.unbind('click'); - $('#qm-modal-background').unbind('click'); + $('#' + settings.prefix + '-modal-background').unbind('click'); } - if (!$('#modal-background').length) $(settings.appendBackgroundTo).append('
'); // Append background; do not append if background already exists + if (!$('#modal-background').length) $(settings.appendBackgroundTo).append('
'); // Append background; do not append if background already exists - checkSettings(self, $('#qm-modal-background'), settings); + checkSettings(self, $('#' + settings.prefix + '-modal-background'), settings); modal.removeClass() - .addClass('qm-modal') - .addClass('qm-animation-' + settings.animation); + .addClass(settings.prefix + '-modal') + .addClass(settings.prefix + '-animation-' + settings.animation); switch (args) { case 'open': - if (!settings.enableBodyScroll) bodyTag.addClass('qm-disable-scroll'); + if (!settings.enableBodyScroll) bodyTag.addClass(settings.prefix + '-disable-scroll'); modal.hide(); // Hide any currently visible modals self.show(); bodyTag.keyup(keyUpCheck); - $('#qm-modal-background').show(); + $('#' + settings.prefix + '-modal-background').show(); setTimeout(function() { // Ensure elements are displayed before adding classes - if (settings.enableClickAway) $('#qm-modal-background').click(closeModal); - $('#qm-modal-background').addClass('qm-visible'); - self.addClass('qm-visible'); + if (settings.enableClickAway) $('#' + settings.prefix + '-modal-background').click(closeModal); + $('#' + settings.prefix + '-modal-background').addClass(settings.prefix + '-visible'); + self.addClass(settings.prefix + '-visible'); self.trigger('modalopen.qm'); // Trigger custom 'open' event settings.onOpen.call(); // Open callback }, 25); @@ -101,13 +103,13 @@ http://www.opensource.org/licenses/mit-license.php break; case 'close': - bodyTag.removeClass('qm-disable-scroll'); - $('#qm-modal-background').removeClass('qm-visible'); - self.removeClass('qm-visible'); + bodyTag.removeClass(settings.prefix + '-disable-scroll'); + $('#' + settings.prefix + '-modal-background').removeClass(settings.prefix + '-visible'); + self.removeClass(settings.prefix + '-visible'); settings.onClose.call(); // Close callback setTimeout(function() { - $('#qm-modal-background').hide(); + $('#' + settings.prefix + '-modal-background').hide(); self.hide(); self.trigger('modalclose.qm'); // Trigger custom 'close' event }, settings.speed); diff --git a/js/jquery.quick-modal.min.js b/js/jquery.quick-modal.min.js index 7763204..6538f89 100644 --- a/js/jquery.quick-modal.min.js +++ b/js/jquery.quick-modal.min.js @@ -10,4 +10,4 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -!function(e){function n(e,n,i){e.setSpeed(null).setTiming(null),n.setSpeed(null).setTiming(null),250==i.speed&&"ease"==i.timing||(e.setSpeed(i.speed).setTiming(i.timing),n.setSpeed(i.speed).setTiming(i.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(i,o){function a(e){27==e.keyCode&&c.is(":visible")&&d.enableEsc&&l()}function l(){m.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#qm-modal-background").unbind("click")}if(null!==i&&"string"==typeof i){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",onOpen:function(){},onClose:function(){}},o),s=e("body"),t=e(d.closeModalSelector),c=e(".qm-modal"),m=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),n(m,e("#qm-modal-background"),d),c.removeClass().addClass("qm-modal").addClass("qm-animation-"+d.animation),i){case"open":d.enableBodyScroll||s.addClass("qm-disable-scroll"),c.hide(),m.show(),s.keyup(a),e("#qm-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#qm-modal-background").click(l),e("#qm-modal-background").addClass("qm-visible"),m.addClass("qm-visible"),m.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass("qm-disable-scroll"),e("#qm-modal-background").removeClass("qm-visible"),m.removeClass("qm-visible"),d.onClose.call(),setTimeout(function(){e("#qm-modal-background").hide(),m.hide(),m.trigger("modalclose.qm")},d.speed);break;case"trigger":var r=m.data("modal-id");e("#"+r).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(m=this).click(function(n){n.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",i)});return this}}(jQuery); \ No newline at end of file +!function(e){function i(e,i,n){e.setSpeed(null).setTiming(null),i.setSpeed(null).setTiming(null),250==n.speed&&"ease"==n.timing||(e.setSpeed(n.speed).setTiming(n.timing),i.setSpeed(n.speed).setTiming(n.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(n,o){function a(e){27==e.keyCode&&r.is(":visible")&&d.enableEsc&&l()}function l(){c.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#"+d.prefix+"-modal-background").unbind("click")}if(null!==n&&"string"==typeof n){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",prefix:"qm",onOpen:function(){},onClose:function(){}},o),s=e("body"),t=e(d.closeModalSelector),r=e("."+d.prefix+"-modal"),c=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),i(c,e("#"+d.prefix+"-modal-background"),d),r.removeClass().addClass(d.prefix+"-modal").addClass(d.prefix+"-animation-"+d.animation),n){case"open":d.enableBodyScroll||s.addClass(d.prefix+"-disable-scroll"),r.hide(),c.show(),s.keyup(a),e("#"+d.prefix+"-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#"+d.prefix+"-modal-background").click(l),e("#"+d.prefix+"-modal-background").addClass(d.prefix+"-visible"),c.addClass(d.prefix+"-visible"),c.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass(d.prefix+"-disable-scroll"),e("#"+d.prefix+"-modal-background").removeClass(d.prefix+"-visible"),c.removeClass(d.prefix+"-visible"),d.onClose.call(),setTimeout(function(){e("#"+d.prefix+"-modal-background").hide(),c.hide(),c.trigger("modalclose.qm")},d.speed);break;case"trigger":var u=c.data("modal-id");e("#"+u).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(c=this).click(function(i){i.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",n)});return this}}(jQuery); \ No newline at end of file diff --git a/package.json b/package.json index 7f64216..f4169bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-quick-modal", - "version": "2.0.0", + "version": "2.1.0", "description": "Easily add customizable, CSS-driven modal windows to your website", "repository": "https://kevinberonilla@github.com/kevinberonilla/jquery-quick-modal.git", "author": "Kevin Beronilla ", From b2b7195f390d00c7cb3d9c6bb4b0d8f5d2750ae3 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:49:48 -0500 Subject: [PATCH 04/11] Fixed typos in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 44962f5..3dac1fd 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ jQuery 1.7.0 or higher --- #### Installation -Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the `` tag. Be sure to reference the JS after jQuery. +Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the `` tag. Be sure to reference the JS file after jQuery. ``` bower install jquery-quick-modal ``` @@ -212,6 +212,6 @@ This alternative way of initializing the plugin will ensure that elements that m --- -#### Modifying the Souce Code +#### Using Custom Prefixes -Included in the package are Sass source source files (with a variable for managing custom prefixed classes and ids) and Gulp build scripts. Be sure to use the `prefix` option in the plugin to support your custom prefix. +Included in the package are Sass source files (with a variable for managing custom prefixed classes and ids) and Gulp build scripts. Be sure to use the `prefix` option in the plugin to support your custom prefix. From 9f98ae51628a2e514242a11d6e69ee8dc80b159d Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:51:45 -0500 Subject: [PATCH 05/11] Added strict mode --- js/jquery.quick-modal.js | 2 ++ js/jquery.quick-modal.min.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/jquery.quick-modal.js b/js/jquery.quick-modal.js index 5e55117..81731ec 100644 --- a/js/jquery.quick-modal.js +++ b/js/jquery.quick-modal.js @@ -11,6 +11,8 @@ Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ (function($) { // Protect the $ alias (IIF) + 'use strict'; + $.fn.setSpeed = function(speed) { return this.css({ '-webkit-transition-duration': speed + 'ms', diff --git a/js/jquery.quick-modal.min.js b/js/jquery.quick-modal.min.js index 6538f89..7d3bbd2 100644 --- a/js/jquery.quick-modal.min.js +++ b/js/jquery.quick-modal.min.js @@ -10,4 +10,4 @@ https://github.com/kevinberonilla/jquery-quick-modal Free to use under the MIT license http://www.opensource.org/licenses/mit-license.php -------------------------------------------------- */ -!function(e){function i(e,i,n){e.setSpeed(null).setTiming(null),i.setSpeed(null).setTiming(null),250==n.speed&&"ease"==n.timing||(e.setSpeed(n.speed).setTiming(n.timing),i.setSpeed(n.speed).setTiming(n.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(n,o){function a(e){27==e.keyCode&&r.is(":visible")&&d.enableEsc&&l()}function l(){c.quickModal("close",d),s.unbind("keyup",a),t.unbind("click"),e("#"+d.prefix+"-modal-background").unbind("click")}if(null!==n&&"string"==typeof n){var d=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",prefix:"qm",onOpen:function(){},onClose:function(){}},o),s=e("body"),t=e(d.closeModalSelector),r=e("."+d.prefix+"-modal"),c=this;switch(e("#modal-background").length||e(d.appendBackgroundTo).append('
'),i(c,e("#"+d.prefix+"-modal-background"),d),r.removeClass().addClass(d.prefix+"-modal").addClass(d.prefix+"-animation-"+d.animation),n){case"open":d.enableBodyScroll||s.addClass(d.prefix+"-disable-scroll"),r.hide(),c.show(),s.keyup(a),e("#"+d.prefix+"-modal-background").show(),setTimeout(function(){d.enableClickAway&&e("#"+d.prefix+"-modal-background").click(l),e("#"+d.prefix+"-modal-background").addClass(d.prefix+"-visible"),c.addClass(d.prefix+"-visible"),c.trigger("modalopen.qm"),d.onOpen.call()},25),t.click(function(e){e.preventDefault(),l()});break;case"close":s.removeClass(d.prefix+"-disable-scroll"),e("#"+d.prefix+"-modal-background").removeClass(d.prefix+"-visible"),c.removeClass(d.prefix+"-visible"),d.onClose.call(),setTimeout(function(){e("#"+d.prefix+"-modal-background").hide(),c.hide(),c.trigger("modalclose.qm")},d.speed);break;case"trigger":var u=c.data("modal-id");e("#"+u).quickModal("open",d);break;default:console.warn("The method you entered does not exist.")}}else(c=this).click(function(i){i.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",n)});return this}}(jQuery); \ No newline at end of file +!function(e){"use strict";function i(e,i,n){e.setSpeed(null).setTiming(null),i.setSpeed(null).setTiming(null),250==n.speed&&"ease"==n.timing||(e.setSpeed(n.speed).setTiming(n.timing),i.setSpeed(n.speed).setTiming(n.timing))}e.fn.setSpeed=function(e){return this.css({"-webkit-transition-duration":e+"ms","transition-duration":e+"ms"})},e.fn.setTiming=function(e){return this.css({"-webkit-transition-timing-function":e,"transition-timing-function":e})},e.fn.quickModal=function(n,o){if(null!==n&&"string"==typeof n){var a=e.extend({animation:"fade-zoom",speed:250,timing:"ease",closeModalSelector:".qm-close-modal",enableEsc:!0,enableClickAway:!0,enableBodyScroll:!1,appendBackgroundTo:"body",prefix:"qm",onOpen:function(){},onClose:function(){}},o),l=e("body"),s=e(a.closeModalSelector),d=e("."+a.prefix+"-modal"),t=this;function r(e){27==e.keyCode&&d.is(":visible")&&a.enableEsc&&c()}function c(){t.quickModal("close",a),l.unbind("keyup",r),s.unbind("click"),e("#"+a.prefix+"-modal-background").unbind("click")}switch(e("#modal-background").length||e(a.appendBackgroundTo).append('
'),i(t,e("#"+a.prefix+"-modal-background"),a),d.removeClass().addClass(a.prefix+"-modal").addClass(a.prefix+"-animation-"+a.animation),n){case"open":a.enableBodyScroll||l.addClass(a.prefix+"-disable-scroll"),d.hide(),t.show(),l.keyup(r),e("#"+a.prefix+"-modal-background").show(),setTimeout(function(){a.enableClickAway&&e("#"+a.prefix+"-modal-background").click(c),e("#"+a.prefix+"-modal-background").addClass(a.prefix+"-visible"),t.addClass(a.prefix+"-visible"),t.trigger("modalopen.qm"),a.onOpen.call()},25),s.click(function(e){e.preventDefault(),c()});break;case"close":l.removeClass(a.prefix+"-disable-scroll"),e("#"+a.prefix+"-modal-background").removeClass(a.prefix+"-visible"),t.removeClass(a.prefix+"-visible"),a.onClose.call(),setTimeout(function(){e("#"+a.prefix+"-modal-background").hide(),t.hide(),t.trigger("modalclose.qm")},a.speed);break;case"trigger":var u=t.data("modal-id");e("#"+u).quickModal("open",a);break;default:console.warn("The method you entered does not exist.")}}else(t=this).click(function(i){i.preventDefault();var o=e(this).data("modal-id"),a=e("#"+o);void 0===o?console.warn('No "data-modal-id" attribute has been set.'):a.quickModal("open",n)});return this}}(jQuery); \ No newline at end of file From 41dc4d59376b6126b6c1bacebdd3af41d892bf68 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:53:02 -0500 Subject: [PATCH 06/11] Added changelog entry for strict mode --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0b5eb7..a6c9fcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Fixed an issue where modal backdrops were not animating properly when closing a modal * Added the `prefix` option to support builds with custom prefixes * Added Sass source files and Gulp tasks to support builds with custom prefixes +* The plugin now runs in strict mode --- From 17ed774a16f9937ce398c6574e55f811202baa2d Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:54:33 -0500 Subject: [PATCH 07/11] Updated installation instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3dac1fd..14009da 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ jQuery 1.7.0 or higher --- #### Installation -Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the `` tag. Be sure to reference the JS file after jQuery. +Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the ``tag. ``` bower install jquery-quick-modal ``` From d8177418c342009d5886af34535c724f3fb9bcf1 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:56:45 -0500 Subject: [PATCH 08/11] Updated installation instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 14009da..411b91b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ jQuery 1.7.0 or higher --- #### Installation -Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the ``tag. +Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the `` tag after jQuery. ``` bower install jquery-quick-modal ``` From 40fe1c43dc6438816bb5afb3aa60ce6094cbbaeb Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 07:59:58 -0500 Subject: [PATCH 09/11] Updated installation instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 411b91b..8d0e6c2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ jQuery 1.7.0 or higher --- #### Installation -Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the `` tag after jQuery. +Download the plugin via Bower or manually copy the CSS and JS files to your site, then include them in the `` tag. ``` bower install jquery-quick-modal ``` From 85a62561bdd9cca7d691a20dd4cfa833208453b9 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Fri, 25 Aug 2017 08:48:55 -0500 Subject: [PATCH 10/11] Removed debugger --- js/jquery.quick-modal.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/jquery.quick-modal.js b/js/jquery.quick-modal.js index 81731ec..122ed05 100644 --- a/js/jquery.quick-modal.js +++ b/js/jquery.quick-modal.js @@ -60,7 +60,6 @@ http://www.opensource.org/licenses/mit-license.php closeModalLink = $(settings.closeModalSelector), modal = $('.' + settings.prefix + '-modal'), self = this; - debugger; function keyUpCheck(e) { if (e.keyCode == 27 && modal.is(':visible') && settings.enableEsc) closeModal(); // Esc key events based on options From caae06bc44109efd011a37ab405e5e97c21e27d1 Mon Sep 17 00:00:00 2001 From: Kevin Beronilla Date: Mon, 28 Aug 2017 07:28:22 -0500 Subject: [PATCH 11/11] Updated version numbers --- CHANGELOG.md | 2 +- bower.json | 2 +- css/quick-modal.css | 2 +- css/quick-modal.min.css | 2 +- gulpfile.js | 2 +- js/jquery.quick-modal.js | 2 +- js/jquery.quick-modal.min.js | 2 +- scss/quick-modal.scss | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6c9fcd..8909201 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # jQuery Quick Modal -#### v2.0.1 | August 25, 2017 +#### v2.1.0 | August 28, 2017 * Fixed an issue where modal backdrops were not animating properly when closing a modal * Added the `prefix` option to support builds with custom prefixes * Added Sass source files and Gulp tasks to support builds with custom prefixes diff --git a/bower.json b/bower.json index d528456..7f82755 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery-quick-modal", - "version": "2.0.0", + "version": "2.1.0", "homepage": "https://github.com/kevinberonilla/jquery-quick-modal", "authors": [ "Kevin Beronilla " diff --git a/css/quick-modal.css b/css/quick-modal.css index fbce265..9c84048 100644 --- a/css/quick-modal.css +++ b/css/quick-modal.css @@ -1,5 +1,5 @@ /* -------------------------------------------------- -jQuery Quick Modal v2.0.0 +jQuery Quick Modal v2.1.0 By Kevin Beronilla http://www.kevinberonilla.com diff --git a/css/quick-modal.min.css b/css/quick-modal.min.css index 8e9efb9..323b11f 100644 --- a/css/quick-modal.min.css +++ b/css/quick-modal.min.css @@ -1,5 +1,5 @@ /* -------------------------------------------------- -jQuery Quick Modal v2.0.0 +jQuery Quick Modal v2.1.0 By Kevin Beronilla http://www.kevinberonilla.com diff --git a/gulpfile.js b/gulpfile.js index 2f18283..c6e5a7a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -8,7 +8,7 @@ var sass = require('gulp-sass'); var autoprefixer = require('gulp-autoprefixer'); var header = `/* -------------------------------------------------- -jQuery Quick Modal v2.0.0 +jQuery Quick Modal v2.1.0 By Kevin Beronilla http://www.kevinberonilla.com diff --git a/js/jquery.quick-modal.js b/js/jquery.quick-modal.js index 122ed05..4977499 100644 --- a/js/jquery.quick-modal.js +++ b/js/jquery.quick-modal.js @@ -1,5 +1,5 @@ /* -------------------------------------------------- -jQuery Quick Modal v2.0.0 +jQuery Quick Modal v2.1.0 By Kevin Beronilla http://www.kevinberonilla.com diff --git a/js/jquery.quick-modal.min.js b/js/jquery.quick-modal.min.js index 7d3bbd2..f5c85e1 100644 --- a/js/jquery.quick-modal.min.js +++ b/js/jquery.quick-modal.min.js @@ -1,5 +1,5 @@ /* -------------------------------------------------- -jQuery Quick Modal v2.0.0 +jQuery Quick Modal v2.1.0 By Kevin Beronilla http://www.kevinberonilla.com diff --git a/scss/quick-modal.scss b/scss/quick-modal.scss index 50b6763..e166462 100644 --- a/scss/quick-modal.scss +++ b/scss/quick-modal.scss @@ -1,5 +1,5 @@ /* -------------------------------------------------- -jQuery Quick Modal v2.0.0 +jQuery Quick Modal v2.1.0 By Kevin Beronilla http://www.kevinberonilla.com