Skip to content

Commit 97521e7

Browse files
committed
hack on bottom nav spacing
1 parent e45b2a4 commit 97521e7

File tree

5 files changed

+43
-24
lines changed

5 files changed

+43
-24
lines changed

build/vk.css

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
.vk-container input::-webkit-input-placeholder { opacity: .8; }
1616

1717
.vk-container a { text-decoration: none; outline: 0; line-height: inherit; }
18-
.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;
18+
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
19+
.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));
1920
-webkit-box-align: center;
2021
-moz-box-align: center;
2122
-o-box-align: center;
@@ -25,14 +26,7 @@
2526
display: -o-box;
2627
display: box;
2728
}
28-
29-
30-
31-
32-
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
33-
.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)); }
3429
.bottomNav .center.buttons { display: -webkit-box; display: -moz-box; display: box; }
35-
.bottomNav .right.buttons { height: 53px; float: right; }
3630
.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;}
3731
.bottomNav .refreshIcon { width: 38px; height: 38px; border-radius: 3px; background: #96C7A2; border-left: 1px solid #6F816F; border-right: 1px solid #6F816F; }
3832
.bottomNav .refreshIcon:active { background-color: #C7DECC; }
@@ -41,7 +35,20 @@
4135
.nav-button.following { font-size: 13.5px; font-weight: bold; border-bottom-left-radius: 5px; }
4236
.nav-button.settings { border-bottom-right-radius: 5px; }
4337
.whitePlaceholder { height: 54px; width: 100%; background: white;}
44-
.actionButton {display: box; box-flex: 1;}
38+
.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;
39+
-webkit-box-align: center;
40+
-moz-box-align: center;
41+
-o-box-align: center;
42+
box-align: center;
43+
display: -webkit-box;
44+
display: -moz-box;
45+
display: -o-box;
46+
display: box;
47+
}
48+
49+
50+
51+
4552
.nav-button { font-size: 13.5px; background: #e5e5e5; color: #959595; float: left; line-height: 47px; height: 49px; text-align: center; }
4653
.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}
4754
.nav-button.round:active { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e6e6e6), to(#fefefe));}
@@ -60,8 +67,6 @@
6067
.nav-button#following div { margin: 9px 7px 0px 2px; }
6168
.nav-button#following span {margin: 0 0 3px 7px;}
6269

63-
/*.nav-button.action span { display: inline-block; position: relative; top: 6px; }
64-
*/
6570
.buttons {
6671
-webkit-box-flex: 1;
6772
-moz-box-flex: 1;
@@ -80,9 +85,9 @@
8085
.right.buttons a { float: right; }
8186
.right.buttons a:active div { }
8287
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
83-
.bottomNav a { display: block; line-height: 36px; text-align: center; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1;}
84-
.bottomNav a.refreshButton { width: 38px; height: 38px; display: block; margin: 8px 0px 7px 4px; }
85-
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; height: 38px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
88+
.bottomNav a { display: block; text-align: center; }
89+
.bottomNav a.refreshButton { display: block; margin: 8px 0px 7px 4px; }
90+
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
8691
.bottomButton:active { color: white; }
8792
.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; }
8893
.ui-content .item-details { overflow: auto; background-color: #e6e6e6; height: 100%; }

index.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,19 @@
3838
var footer = vk.navBar('.footer', 'bottomNav')
3939

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

4343
var mapButton = vk.navButton({href: "#/map", id: "map", text: "Map"})
44-
footer.add(mapButton)
44+
footer.add(mapButton, 'left')
45+
46+
//<a class="refreshButton" href="#/refresh!">
47+
// <div class="refreshIcon">
48+
// <div class="sprite icon-refresh-white"></div>
49+
// </div>
50+
//</a>
51+
52+
var refreshButton = vk.actionButton({href: "#/refresh!", id: "refresh-icon", text: "", className: "sprite-icon-refresh-white"})
53+
footer.add(refreshButton, 'right')
4554

4655
</script>
4756
</body>

lib/components/actionbutton/actionbutton.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.actionButton {display: box; box-flex: 1;}
21
.nav-button { font-size: 13.5px; background: #e5e5e5; color: #959595; float: left; line-height: 47px; height: 49px; text-align: center; }
32
.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}
43
.nav-button.round:active { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e6e6e6), to(#fefefe));}
@@ -17,8 +16,6 @@
1716
.nav-button#following div { margin: 9px 7px 0px 2px; }
1817
.nav-button#following span {margin: 0 0 3px 7px;}
1918

20-
/*.nav-button.action span { display: inline-block; position: relative; top: 6px; }
21-
*/
2219
.buttons {
2320
-webkit-box-flex: 1;
2421
-moz-box-flex: 1;

lib/components/bottomnav/bottomnav.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
.nav-button.action .sprite.icon-refresh { margin: 0px 10px; }
2-
.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)); }
2+
.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));
3+
-webkit-box-align: center;
4+
-moz-box-align: center;
5+
-o-box-align: center;
6+
box-align: center;
7+
display: -webkit-box;
8+
display: -moz-box;
9+
display: -o-box;
10+
display: box;
11+
}
312
.bottomNav .center.buttons { display: -webkit-box; display: -moz-box; display: box; }
4-
.bottomNav .right.buttons { height: 53px; float: right; }
513
.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;}
614
.bottomNav .refreshIcon { width: 38px; height: 38px; border-radius: 3px; background: #96C7A2; border-left: 1px solid #6F816F; border-right: 1px solid #6F816F; }
715
.bottomNav .refreshIcon:active { background-color: #C7DECC; }
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bottomNav a { display: block; line-height: 36px; text-align: center; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1;}
2-
.bottomNav a.refreshButton { width: 38px; height: 38px; display: block; margin: 8px 0px 7px 4px; }
3-
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; height: 38px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
1+
.bottomNav a { display: block; text-align: center; }
2+
.bottomNav a.refreshButton { display: block; margin: 8px 0px 7px 4px; }
3+
.bottomButton { border-radius: 3px; padding: 8px 0px 7px 4px; color: #c4c4c4; font-size: 13.58px; font-weight: bold; }
44
.bottomButton:active { color: white; }

0 commit comments

Comments
 (0)