[gimp-web/gimp-web-static] Styled nav el position when active
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/gimp-web-static] Styled nav el position when active
- Date: Tue, 22 Sep 2015 16:02:30 +0000 (UTC)
commit 8c19b3ab3e70b2608e38059ea4fc8b83d39e4b87
Author: Pat David <patdavid gmail com>
Date: Tue Sep 22 11:02:23 2015 -0500
Styled nav el position when active
content/js/push-menu.js | 2 ++
themes/newgimp/static/css/gimp.css | 8 ++++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/content/js/push-menu.js b/content/js/push-menu.js
index 0003d47..9196713 100644
--- a/content/js/push-menu.js
+++ b/content/js/push-menu.js
@@ -17,10 +17,12 @@ var toggle = function(e){
if( menu.className.indexOf('show') !== -1 ){
menu.className = "hide";
+ navel.className = "initial";
page.removeEventListener('click', toggle, false);
page.removeEventListener('touchstart', toggle, false);
}else{
menu.className = "show";
+ navel.className = "bottom";
page.addEventListener('click', toggle, false);
page.addEventListener('touchstart', toggle, false);
}
diff --git a/themes/newgimp/static/css/gimp.css b/themes/newgimp/static/css/gimp.css
index 4a05213..e5548a8 100644
--- a/themes/newgimp/static/css/gimp.css
+++ b/themes/newgimp/static/css/gimp.css
@@ -389,6 +389,14 @@ footer .nav-bottom a {
-1px -1px black,
-1px 1px black;
}
+
+ a#navel.bottom {
+ bottom: 0;
+ }
+
+ a#navel.initial {
+ bottom: initial;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]