From 53986cada03aaab692cfe1350fe7aea2994a0dbc Mon Sep 17 00:00:00 2001 From: Jim Bennett Date: Thu, 26 Jun 2014 20:33:25 -0300 Subject: [PATCH] Fix for off-canvas on iphone --- dev/dest/js/ghostion.js | 20 +++++++++---------- dev/src/js/disqus.js | 2 +- dev/src/js/ghosthunter.js | 2 +- dev/src/js/google_analytics.js | 2 +- dev/src/js/google_fonts.js | 2 +- dev/src/js/highlight.js | 2 +- dev/src/js/init.js | 4 ++-- dev/src/scss/ghostion.scss | 2 +- dev/src/scss/theme/_ghost.scss | 2 +- dev/src/scss/theme/_style.scss | 2 +- dev/src/scss/theme/_variables.scss | 2 +- dev/src/scss/theme/_widgets.scss | 2 +- ghostion.sh | 2 +- gulpfile.js | 2 +- packages/theme/default.hbs | 2 +- .../theme/partials/all_page/at_off_canvas.hbs | 4 ++-- 16 files changed, 27 insertions(+), 27 deletions(-) diff --git a/dev/dest/js/ghostion.js b/dev/dest/js/ghostion.js index 5a2e918..cb93254 100644 --- a/dev/dest/js/ghostion.js +++ b/dev/dest/js/ghostion.js @@ -127,7 +127,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur for(; lastTime < vendors.length && !requestAnimationFrame; lastTime++) { requestAnimationFrame = window[ vendors[lastTime] + "RequestAnimationFrame" ]; cancelAnimationFrame = cancelAnimationFrame || - window[ vendors[lastTime] + "CancelAnimationFrame" ] || + window[ vendors[lastTime] + "CancelAnimationFrame" ] || window[ vendors[lastTime] + "CancelRequestAnimationFrame" ]; } @@ -167,7 +167,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur window.cancelAnimationFrame = function(id) { clearTimeout(id); }; - + } }( jQuery )); @@ -350,7 +350,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur } else { var query = Foundation.media_queries[media]; if(query !== undefined) { - Foundation.stylesheet.insertRule('@media ' + + Foundation.stylesheet.insertRule('@media ' + Foundation.media_queries[media] + '{ ' + rule + ' }'); } } @@ -906,8 +906,8 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur touch_close_text: 'Tap To Close', disable_for_touch: false, tip_template : function (selector, content) { - return '' + content + ''; } }, @@ -924,7 +924,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur if (Modernizr.touch) { $(this.scope) .off('.tooltip') - .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', + .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', '[data-tooltip]', function (e) { var settings = $.extend({}, self.settings, self.data_options($(this))); if (!settings.disable_for_touch) { @@ -933,7 +933,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur self.showOrCreateTip($(this)); } }) - .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', + .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', this.settings.tooltip_class, function (e) { e.preventDefault(); $(this).fadeOut(150); @@ -941,7 +941,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur } else { $(this.scope) .off('.tooltip') - .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip', + .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip', '[data-tooltip]', function (e) { var $this = $(this); @@ -1008,7 +1008,7 @@ window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){retur nub = tip.children('.nub'); nubHeight = nub.outerHeight(); nubWidth = nub.outerHeight(); - + tip.css({'width' : (width) ? width : 'auto'}); objPos = function (obj, top, right, bottom, left, width) { @@ -3500,4 +3500,4 @@ hljs.registerLanguage("makefile", function (a) { $(".at_search_input").ghostHunter({results: ".at_search_results", onKeyUp: true, info_template: "× Number of posts found: {{amount}}", result_template : "{{title}}"}); $("#at_search").on('click', '.at_search_clear_toggle', function(e) {e.preventDefault();$(".at_search_input").val('');$(".at_search_results").removeClass("at_search_active");}); }); -}(jQuery)); \ No newline at end of file +}(jQuery)); diff --git a/dev/src/js/disqus.js b/dev/src/js/disqus.js index 5dc26a0..3bed371 100644 --- a/dev/src/js/disqus.js +++ b/dev/src/js/disqus.js @@ -7,4 +7,4 @@ atPost.loadDisqus = function() { dsq.async = true; dsq.src = '//' + ghostionConfig.disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); -}; \ No newline at end of file +}; diff --git a/dev/src/js/ghosthunter.js b/dev/src/js/ghosthunter.js index 5d07e12..62fa95c 100644 --- a/dev/src/js/ghosthunter.js +++ b/dev/src/js/ghosthunter.js @@ -132,4 +132,4 @@ } } -})( jQuery ); \ No newline at end of file +})( jQuery ); diff --git a/dev/src/js/google_analytics.js b/dev/src/js/google_analytics.js index 842e247..46be255 100644 --- a/dev/src/js/google_analytics.js +++ b/dev/src/js/google_analytics.js @@ -1,3 +1,3 @@ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', ghostionConfig.google_analytics_tracking_id, ghostionConfig.site_url); -ga('send', 'pageview'); \ No newline at end of file +ga('send', 'pageview'); diff --git a/dev/src/js/google_fonts.js b/dev/src/js/google_fonts.js index 7a23bc2..3df152d 100644 --- a/dev/src/js/google_fonts.js +++ b/dev/src/js/google_fonts.js @@ -9,4 +9,4 @@ WebFontConfig = { wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); -})(); \ No newline at end of file +})(); diff --git a/dev/src/js/highlight.js b/dev/src/js/highlight.js index a6f0430..403cda2 100644 --- a/dev/src/js/highlight.js +++ b/dev/src/js/highlight.js @@ -2172,4 +2172,4 @@ hljs.registerLanguage("makefile", function (a) { c: [a.QSM, b] }] } -}); \ No newline at end of file +}); diff --git a/dev/src/js/init.js b/dev/src/js/init.js index 9358da8..09b21a1 100644 --- a/dev/src/js/init.js +++ b/dev/src/js/init.js @@ -4,8 +4,8 @@ $(document).ready(function(){ $(".at_block").fitVids(); $("pre code").each(function(i, e) {hljs.highlightBlock(e)}); - $("#at_body").wrap( "
" ).append(""); + $("#at_body").wrap( "
" ).append(""); $(".at_search_input").ghostHunter({results: ".at_search_results", onKeyUp: true, info_template: "× Number of posts found: {{amount}}", result_template : "{{title}}"}); $("#at_search").on('click', '.at_search_clear_toggle', function(e) {e.preventDefault();$(".at_search_input").val('');$(".at_search_results").removeClass("at_search_active");}); }); -}(jQuery)); \ No newline at end of file +}(jQuery)); diff --git a/dev/src/scss/ghostion.scss b/dev/src/scss/ghostion.scss index c875c3e..2218244 100644 --- a/dev/src/scss/ghostion.scss +++ b/dev/src/scss/ghostion.scss @@ -23,4 +23,4 @@ //*----------------------------------------- @import "theme/style"; @import "theme/ghost"; -@import "theme/widgets"; \ No newline at end of file +@import "theme/widgets"; diff --git a/dev/src/scss/theme/_ghost.scss b/dev/src/scss/theme/_ghost.scss index 6cfc1f6..75afc03 100644 --- a/dev/src/scss/theme/_ghost.scss +++ b/dev/src/scss/theme/_ghost.scss @@ -76,4 +76,4 @@ padding: 5px; border-radius: 100%; } -} \ No newline at end of file +} diff --git a/dev/src/scss/theme/_style.scss b/dev/src/scss/theme/_style.scss index 987eccc..1f37490 100644 --- a/dev/src/scss/theme/_style.scss +++ b/dev/src/scss/theme/_style.scss @@ -256,4 +256,4 @@ ul.off-canvas-list { > .nub { border-color: transparent transparent rgba(0, 0, 0, 0.8); } -} \ No newline at end of file +} diff --git a/dev/src/scss/theme/_variables.scss b/dev/src/scss/theme/_variables.scss index 9658a9e..d8cb160 100644 --- a/dev/src/scss/theme/_variables.scss +++ b/dev/src/scss/theme/_variables.scss @@ -24,4 +24,4 @@ $featured_label_color: #F4C445; //*----------------------------------------- $base_font_family: "Open Sans", sans-serif; $base_font_size: 16px; -$base_line_height: 1.6; \ No newline at end of file +$base_line_height: 1.6; diff --git a/dev/src/scss/theme/_widgets.scss b/dev/src/scss/theme/_widgets.scss index 3e9e70d..2226fa2 100644 --- a/dev/src/scss/theme/_widgets.scss +++ b/dev/src/scss/theme/_widgets.scss @@ -80,4 +80,4 @@ position: absolute; top: 0; width: 100%; -} \ No newline at end of file +} diff --git a/ghostion.sh b/ghostion.sh index eaf633f..4cc4a75 100755 --- a/ghostion.sh +++ b/ghostion.sh @@ -41,4 +41,4 @@ done if ["$1" == ""]; then echo "$(tput setaf 1)[AxianTheme] Please pass the available parameters$(tput sgr 0)\n" usage -fi \ No newline at end of file +fi diff --git a/gulpfile.js b/gulpfile.js index 7e5603e..af78d0a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -96,4 +96,4 @@ gulp.task('develop', function() { // Main Task: Release gulp.task('release', ['zip'], function() { gulp.start('move_zip', 'clean_tmp'); -}); \ No newline at end of file +}); diff --git a/packages/theme/default.hbs b/packages/theme/default.hbs index 5f96fb0..76f2dee 100644 --- a/packages/theme/default.hbs +++ b/packages/theme/default.hbs @@ -43,4 +43,4 @@ - \ No newline at end of file + diff --git a/packages/theme/partials/all_page/at_off_canvas.hbs b/packages/theme/partials/all_page/at_off_canvas.hbs index f865481..d7cb820 100644 --- a/packages/theme/partials/all_page/at_off_canvas.hbs +++ b/packages/theme/partials/all_page/at_off_canvas.hbs @@ -1,4 +1,4 @@ -
+
\ No newline at end of file +