Fixed GC App Layout
Works on all webkit based mobile devices. Cut the frontend code size by 90%!
by kizer
HTML
<link rel="stylesheet" href="http://f.cl.ly/items/2D1I2l1O3L3E260v1x1J/ck-reset.css">
<div id="topbar">
<div id="leftnav">
<button>Back</button>
</div>
<div id="rightnav">
<button>Settings</button>
</div>
<div id="title">GC Social</div>
</div>
<footer>
<button>Feed</button>
<button>Games</button>
<button>High Scores</button>
<button>Friends</button>
</footer>
CSS
a, a:active, a:hover, a:visited {
text-decoration: none;
}
#topbar {
position: relative;
left: 0;
top: 0;
width: auto;
background-image: -webkit-linear-gradient(top, rgb(79, 86, 97), rgb(59, 63, 66));
margin-bottom: 13px;
}
#topbar {
height: 32px;
}
#leftnav {
position: absolute;
font-size: 12px;
left: 9px;
font-weight: bold;
}
#leftnav, #rightnav {
top: 4px;
}
#rightnav button, #leftnav button {
-webkit-appearance: none;
color: white;
border-radius: 3px;
border: 1px solid black;
background-image: -webkit-linear-gradient(top, rgb(79, 86, 97), rgb(59, 63, 66));
box-shadow: 0 1px 0 rgba(255,255,255, .222),
0 1px 3px rgba(255,255,255, .22) inset;
}
#rightnav button:active, #leftnav button:active {
}
#rightnav {
position: absolute;
font-size: 12px;
right: 9px;
font-weight: bold;
}
#title {
position: absolute;
font-weight: bold;
top: 0;
left: 0;
right: 0;
padding: 0 10px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
color: white;
text-shadow: rgba(0, 0, 0, 0.6) 0 -1px 0;
}
#title {
line-height: 32px;
height: 32px;
font-size: 13pt;
}
footer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 39px;
width: auto;
border: 1px solid black;
background-image: -webkit-linear-gradient(top, rgb(79, 86, 97), rgb(59, 63, 66));
margin: 0; padding: 0;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
}
footer button {
margin: 0;
padding: 0;
border: none;
position:relative;
left:0px;
width:24%;
-webkit-appearance: none;
color: white;
border-radius: 3px;
border: 1px solid black;
background-image: -webkit-linear-gradient(top, rgb(79, 86, 97), rgb(59, 63, 66));
box-shadow: 0 1px 0 rgba(255,255,255, .222),
0 1px 3px rgba(255,255,255,...