From: Laury GvR Date: Tue, 17 Nov 2015 18:22:33 +0000 (-0500) Subject: Adding explore emmet footer. X-Git-Tag: v1.1.0^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=5f5e9af0eae51c9b5970eab6fb989d4ed5dd5686;p=WP-Themes%2FRecycleEmmet.git Adding explore emmet footer. --- diff --git a/assets/more_emmet.png b/assets/more_emmet.png new file mode 100644 index 0000000..292b9e8 Binary files /dev/null and b/assets/more_emmet.png differ diff --git a/css/app.css b/css/app.css index 5597118..11495b2 100755 --- a/css/app.css +++ b/css/app.css @@ -6036,15 +6036,56 @@ li > p.open { top: -65px; left: 32px; } +/* Footer */ footer { background-color: white; - font-family: Open Sans, sans-serif; - margin: 0 -15px; - padding: 20px 10px 0 10px; } + font-family: Open Sans, sans-serif; } footer h2 { font-weight: normal; } +footer { + float: none; + margin: 0 auto; + max-width: 1000px; } + +#connect { + position: fixed; + padding-top: 20px; + bottom: 0; + max-width: 1000px; + z-index: 100; } + #connect #emmet { + max-width: 300px; + float: none; + margin: 0 auto; + background: #6EA643; + border-radius: 8px 8px 0 0; + padding: 12px 15px 2px; } + #connect #sitelist { + height: 0; + padding: 0; } + #connect #sitelist ul { + margin: 0; + list-style: none; + background: #6EA643; } + #connect #sitelist ul li { + background: none; + padding: 0 5px; + display: inline-block; } + #connect #sitelist ul li > a { + display: block; + font-family: Open Sans, sans-serif; + font-size: 12px; + color: #fff; + padding: 12px 18px; + line-height: 1.2; } + #connect #sitelist ul li a#current { + background: #00678b; } + #connect #sitelist ul li a:hover { + background-color: #00678b; } + +/* End Footer */ .multi { padding: 18px 15px; line-height: 100%; } diff --git a/footer.php b/footer.php index fe46f42..5afcced 100755 --- a/footer.php +++ b/footer.php @@ -1,51 +1,36 @@ - + - +

© Emmet County, Michigan • All Rights Reserved

Produced by Gaslight Media

+ + @@ -67,5 +52,27 @@ } }); }); + $(function(){ + var toggleSitelist = true; + $('#emmet').on('click',function(e) { + // var footerPosition = get_footer_position(); + var footerPosition = 'fixed'; + if (footerPosition === 'fixed') { + if (toggleSitelist) { + $("#sitelist").animate({'height': 53}, 600); + toggleSitelist = false; + } else { + $("#sitelist").animate({'height': 0}, 600); + toggleSitelist = true; + } + $('#connect').bind('mouseleave', function () { + if (!toggleSitelist) { + $("#sitelist").animate({'height': 0}, 600); + toggleSitelist = true; + } + }); + } + }) + }); diff --git a/scss/_structure.scss b/scss/_structure.scss index b0aa6c7..2d7afdc 100755 --- a/scss/_structure.scss +++ b/scss/_structure.scss @@ -402,19 +402,65 @@ li > p.open { top: -65px; left: 32px; } +/* Footer */ footer { background-color: white; font-family: Open Sans, sans-serif; - margin: 0 -15px; - padding: 20px 10px 0 10px; -} -footer a { -/* font-size: 12px; - color: #fff;*/ } footer h2 { font-weight: normal; } +footer { + float: none; + margin: 0 auto; + max-width: 1000px; +} +#connect { + position: fixed; + padding-top: 20px; + bottom: 0; + max-width: 1000px; + z-index: 100; + #emmet { + max-width: 300px; + float: none; + margin: 0 auto; + background: #6EA643; + border-radius: 8px 8px 0 0; + padding: 12px 15px 2px; + } + #sitelist { + height: 0; + padding: 0; + ul{ + margin: 0; + list-style: none; + background: #6EA643; + li { + background: none; + padding: 0 5px; + display: inline-block; + & > a { + display: block; + font-family: Open Sans, sans-serif; + font-size: 12px; + color: #fff; + padding: 12px 18px; + line-height: 1.2; + } + a { + &#current { + background: #00678b; + } + } + a:hover { + background-color: #00678b; + } + } + } + } +} +/* End Footer */ .multi { padding: 18px 15px; line-height: 100%;