This commit is contained in:
connors 2014-01-11 17:03:45 -08:00
Родитель 79815e0107
Коммит 4a1016fd66
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -97,6 +97,14 @@ $(function() {
iphone[0].setAttribute('style','')
}
if(pageHeight - currentTop <= $('.platform-toggle') {
$('.platform-toggle').addClass('fixed');
} else {
$('.platform-toggle').removeClass('fixed');
}
// Injection of components into phone
for (var l = contentSection.length; l--;) {
if ((topCache[l] - currentTop) < windowHeight) {

Просмотреть файл

@ -158,6 +158,13 @@ h1, h2, h3, h4, h5, h6 {
.platform-toggle {
border-bottom: 1px solid #ddd;
&.fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
}
.segmented-controller {
max-width: 300px;
margin: 8px auto;