Skip to content

Commit

Permalink
hack on bottom nav spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed Jul 25, 2012
1 parent e45b2a4 commit 97521e7
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 24 deletions.
33 changes: 19 additions & 14 deletions build/vk.css
Expand Up @@ -15,7 +15,8 @@
.vk-container input::-webkit-input-placeholder { opacity: .8; }

.vk-container a { text-decoration: none; outline: 0; line-height: inherit; }
.topNav { z-index: 666; width: 100%; height: 49px; border-bottom: 1px solid #6d8f75; position: fixed; top: 0px; background-color: #e4e4e4; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#96c7a2), to(#87b492)); border-top-right-radius: 5px; border-top-left-radius: 5px;
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
.bottomNav { height: 55px; z-index: 666; position: fixed; bottom: 0px; left: 0px; right: 0px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-color: #464646; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#313131), to(#464646));
-webkit-box-align: center;
-moz-box-align: center;
-o-box-align: center;
Expand All @@ -25,14 +26,7 @@
display: -o-box;
display: box;
}




.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
.bottomNav { height: 55px; z-index: 666; position: fixed; bottom: 0px; left: 0px; right: 0px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-color: #464646; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#313131), to(#464646)); }
.bottomNav .center.buttons { display: -webkit-box; display: -moz-box; display: box; }
.bottomNav .right.buttons { height: 53px; float: right; }
.bottomNav .selected { color: #111111; text-shadow: 0 1px 0 white; border-radius: 3px; background: #96C7A2; border-left: 1px solid #6F816F; border-right: 1px solid #6F816F;}
.bottomNav .refreshIcon { width: 38px; height: 38px; border-radius: 3px; background: #96C7A2; border-left: 1px solid #6F816F; border-right: 1px solid #6F816F; }
.bottomNav .refreshIcon:active { background-color: #C7DECC; }
Expand All @@ -41,7 +35,20 @@
.nav-button.following { font-size: 13.5px; font-weight: bold; border-bottom-left-radius: 5px; }
.nav-button.settings { border-bottom-right-radius: 5px; }
.whitePlaceholder { height: 54px; width: 100%; background: white;}
.actionButton {display: box; box-flex: 1;}
.topNav { z-index: 666; width: 100%; height: 49px; border-bottom: 1px solid #6d8f75; position: fixed; top: 0px; background-color: #e4e4e4; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#96c7a2), to(#87b492)); border-top-right-radius: 5px; border-top-left-radius: 5px;
-webkit-box-align: center;
-moz-box-align: center;
-o-box-align: center;
box-align: center;
display: -webkit-box;
display: -moz-box;
display: -o-box;
display: box;
}




.nav-button { font-size: 13.5px; background: #e5e5e5; color: #959595; float: left; line-height: 47px; height: 49px; text-align: center; }
.nav-button.round { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fefefe), to(#e6e6e6)); position: relative; font-size: 13.58px; text-shadow: 0 1px 0 white; color: #363636; line-height: 39px; height: 39px; border-radius: 3px; box-shadow: 0px 0px 1px rgba(0,0,0,1); z-index: 1}
.nav-button.round:active { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e6e6e6), to(#fefefe));}
Expand All @@ -60,8 +67,6 @@
.nav-button#following div { margin: 9px 7px 0px 2px; }
.nav-button#following span {margin: 0 0 3px 7px;}

/*.nav-button.action span { display: inline-block; position: relative; top: 6px; }
*/
.buttons {
-webkit-box-flex: 1;
-moz-box-flex: 1;
Expand All @@ -80,9 +85,9 @@
.right.buttons a { float: right; }
.right.buttons a:active div { }
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
.bottomNav a { display: block; line-height: 36px; text-align: center; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1;}
.bottomNav a.refreshButton { width: 38px; height: 38px; display: block; margin: 8px 0px 7px 4px; }
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; height: 38px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
.bottomNav a { display: block; text-align: center; }
.bottomNav a.refreshButton { display: block; margin: 8px 0px 7px 4px; }
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
.bottomButton:active { color: white; }
.ui-content { z-index:2 !important; position: absolute; background: white; font-family: Open Sans; top: 50px; bottom: 55px; right: 0; left: 0; border-top: 1px solid #cccccc; }
.ui-content .item-details { overflow: auto; background-color: #e6e6e6; height: 100%; }
Expand Down
13 changes: 11 additions & 2 deletions index.html
Expand Up @@ -38,10 +38,19 @@
var footer = vk.navBar('.footer', 'bottomNav')

var listButton = vk.navButton({href: "#/list", id: "list", text: "List"})
footer.add(listButton)
footer.add(listButton, 'left')

var mapButton = vk.navButton({href: "#/map", id: "map", text: "Map"})
footer.add(mapButton)
footer.add(mapButton, 'left')

//<a class="refreshButton" href="#/refresh!">
// <div class="refreshIcon">
// <div class="sprite icon-refresh-white"></div>
// </div>
//</a>

var refreshButton = vk.actionButton({href: "#/refresh!", id: "refresh-icon", text: "", className: "sprite-icon-refresh-white"})
footer.add(refreshButton, 'right')

</script>
</body>
Expand Down
3 changes: 0 additions & 3 deletions lib/components/actionbutton/actionbutton.css
@@ -1,4 +1,3 @@
.actionButton {display: box; box-flex: 1;}
.nav-button { font-size: 13.5px; background: #e5e5e5; color: #959595; float: left; line-height: 47px; height: 49px; text-align: center; }
.nav-button.round { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fefefe), to(#e6e6e6)); position: relative; font-size: 13.58px; text-shadow: 0 1px 0 white; color: #363636; line-height: 39px; height: 39px; border-radius: 3px; box-shadow: 0px 0px 1px rgba(0,0,0,1); z-index: 1}
.nav-button.round:active { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e6e6e6), to(#fefefe));}
Expand All @@ -17,8 +16,6 @@
.nav-button#following div { margin: 9px 7px 0px 2px; }
.nav-button#following span {margin: 0 0 3px 7px;}

/*.nav-button.action span { display: inline-block; position: relative; top: 6px; }
*/
.buttons {
-webkit-box-flex: 1;
-moz-box-flex: 1;
Expand Down
12 changes: 10 additions & 2 deletions lib/components/bottomnav/bottomnav.css
@@ -1,7 +1,15 @@
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
.bottomNav { height: 55px; z-index: 666; position: fixed; bottom: 0px; left: 0px; right: 0px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-color: #464646; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#313131), to(#464646)); }
.bottomNav { height: 55px; z-index: 666; position: fixed; bottom: 0px; left: 0px; right: 0px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-color: #464646; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#313131), to(#464646));
-webkit-box-align: center;
-moz-box-align: center;
-o-box-align: center;
box-align: center;
display: -webkit-box;
display: -moz-box;
display: -o-box;
display: box;
}
.bottomNav .center.buttons { display: -webkit-box; display: -moz-box; display: box; }
.bottomNav .right.buttons { height: 53px; float: right; }
.bottomNav .selected { color: #111111; text-shadow: 0 1px 0 white; border-radius: 3px; background: #96C7A2; border-left: 1px solid #6F816F; border-right: 1px solid #6F816F;}
.bottomNav .refreshIcon { width: 38px; height: 38px; border-radius: 3px; background: #96C7A2; border-left: 1px solid #6F816F; border-right: 1px solid #6F816F; }
.bottomNav .refreshIcon:active { background-color: #C7DECC; }
Expand Down
6 changes: 3 additions & 3 deletions lib/components/navbutton/navbutton.css
@@ -1,4 +1,4 @@
.bottomNav a { display: block; line-height: 36px; text-align: center; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1;}
.bottomNav a.refreshButton { width: 38px; height: 38px; display: block; margin: 8px 0px 7px 4px; }
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; height: 38px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
.bottomNav a { display: block; text-align: center; }
.bottomNav a.refreshButton { display: block; margin: 8px 0px 7px 4px; }
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
.bottomButton:active { color: white; }

0 comments on commit 97521e7

Please sign in to comment.