From 5aa9bcf27e7539efe0f303e5f5d9a06a9a07b74f Mon Sep 17 00:00:00 2001 From: Alid Castano Date: Thu, 17 Mar 2016 00:39:02 -0400 Subject: [PATCH] mobile fixes to accordion tabs and footer --- _includes/content/home-intro.md | 2 +- _includes/email-form.html | 2 +- _includes/scripts.html | 4 ++-- _layouts/page.html | 1 + _sass/_accordion-tabs.scss | 8 +++++--- _sass/_footer.scss | 3 +-- _sass/_home.scss | 4 ++++ index.html | 2 +- js/home-accordion-tabs.js | 9 +-------- public/favicon.ico | Bin 486 -> 318 bytes 10 files changed, 17 insertions(+), 18 deletions(-) mode change 100755 => 100644 public/favicon.ico diff --git a/_includes/content/home-intro.md b/_includes/content/home-intro.md index dea79da..af5fce6 100644 --- a/_includes/content/home-intro.md +++ b/_includes/content/home-intro.md @@ -1,5 +1,5 @@ -# Introducing Utterson +# [Introducing Utterson](/) Utterson is Jekyll's loyal companion. Built on top of Poole, it's an unassuming, trustworthy theme built to get you up and writing with minimal effort. diff --git a/_includes/email-form.html b/_includes/email-form.html index 0f707fe..b2243a4 100644 --- a/_includes/email-form.html +++ b/_includes/email-form.html @@ -1,6 +1,6 @@

Join My Newsletter

-

Never miss a thing.

+

Sign up to receive weekly updates.

x -{% if page.type == "home" %} +{% if page.type == "Home" %} {% endif %} -{% if page.type != "home" %} +{% if page.type != "Home" %} {% endif %} diff --git a/_layouts/page.html b/_layouts/page.html index 960f767..953726c 100755 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,5 +1,6 @@ --- layout: default +footer: none ---
diff --git a/_sass/_accordion-tabs.scss b/_sass/_accordion-tabs.scss index a968bd8..879102c 100644 --- a/_sass/_accordion-tabs.scss +++ b/_sass/_accordion-tabs.scss @@ -28,8 +28,9 @@ border-top: $tab-border; border-bottom: $tab-border; color: $tab-link-color; - width: 18%; - @include bp-medium { width: 16%; } + width: 16%; + font-size: .9rem; + @include bp-small { font-size: 1rem; } text-align: center; display: block; padding-top: .5rem; @@ -74,7 +75,8 @@ .tab-aside-link { position: absolute; top: 15%; - left: 79%; + left: 75%; + @include bp-small { left: 79%; } @include dim-effect(.6, 1); padding: .125rem .5rem; margin-bottom: .125rem; diff --git a/_sass/_footer.scss b/_sass/_footer.scss index a097b23..d10d326 100644 --- a/_sass/_footer.scss +++ b/_sass/_footer.scss @@ -15,7 +15,6 @@ @include border-radius(5px); text-align: left; padding: 1rem; - padding-bottom: 1.5rem; h1 { font-size: 1.5rem; } @@ -43,6 +42,6 @@ .copyright { text-align: center; opacity: .5; - padding-bottom: .25rem; + margin-bottom: 1.5rem; } diff --git a/_sass/_home.scss b/_sass/_home.scss index af66de5..89f1984 100644 --- a/_sass/_home.scss +++ b/_sass/_home.scss @@ -16,6 +16,10 @@ h1 { border-bottom: 1px dashed $border-color; padding-bottom: .5rem; + color: $gray-4; + a:hover, a:visited { + color: inherit; + } } p { diff --git a/index.html b/index.html index 7f177fa..53b6b1d 100755 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ --- layout: default title: Home -type: home +type: Home header: none footer: none --- diff --git a/js/home-accordion-tabs.js b/js/home-accordion-tabs.js index 286f56a..f765d16 100644 --- a/js/home-accordion-tabs.js +++ b/js/home-accordion-tabs.js @@ -17,14 +17,7 @@ $(document).ready(function () { $(this).next().toggleClass('is-open').toggle(); accordionTabs.find('.is-active').removeClass('is-active'); $(this).addClass('is-active'); - } - // if clicked twice reset - that is, remove active class and give to first element - else if ($(this).hasClass('is-active')) { - e.preventDefault(); - window.location.reload(true); - - } - else { + } else { e.preventDefault(); } }); diff --git a/public/favicon.ico b/public/favicon.ico old mode 100755 new mode 100644 index 34b42063d5e65cf11a2f3ce3e9e04190a3d4e41c..bc5ea9ea3249a4897f342632a7dd02bd09d462c5 GIT binary patch literal 318 zcmZQzU<5(|0RaXO&|qX>5ChRb3=&ZQVnzlQAj!bc045;>L^Xu{|NnmmdwY9^`}glN z$ji$!?BBniVgCI2NUCu&1)%_H9wUNwGZao?U=&~xRbUEqU=&~#VPJ3!U=#qU0FmU< O5T`K0?8WUe;$#4@u@RpD literal 486 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WI14-?i-EKU7`vU!wgU;46*#5? zX$3HD|21bW0|R5Ir;B5V$MNKl%NJ4?s3t60`Es!s4;Obtf#;7MyTAFpII8;l$;Zi) zkNeA6m%aJ1@^b$D`UA;~n>Tb=lqt`%+g7~U0i{Foaa;NLXEn3EE_ikOQYHLAWcsjq{R2`R@?992nUwL?Vv{s$^)y5_;QN4fu zl<8p)itJ8`v9z-uKHDlH`kPPg-?zu?a=J?*8P1v&fB0#!43y85}Sb4q9e0JR&<;Q#;t