version 0.3.3: Mobile layout adjustments

* Shrunk BG number on mobile so it doesn't push the time elements out of view (when the toolbar is collapsed).
* Fix issue that caused the chart to fill the entire screen on the Android Stock & Dolphin Browsers.
* Improved alignment of time elements.
* Slight style refactoring (moved some css from js to css).
This commit is contained in:
Brian Hanifin
2014-07-30 13:23:12 -07:00
parent 5514a8f874
commit fdb160cd3c
2 changed files with 27 additions and 14 deletions
+22 -11
View File
@@ -15,6 +15,19 @@ body {
color: #808080;
}
/* BEGIN: Dolphin/Stock Android Browser Fix */
@media (max-width: 700px) {
.bgStatus {
width: 100% !important;
}
}
#chartContainer {
top: 225px; /*(toolbar height + status height)*/
}
/* END: Dolphin/Stock Android Browser Fix */
.container {
bottom: 0;
display: block;
@@ -33,15 +46,6 @@ body {
vertical-align: middle;
}
/* Dolphin/Stock Android Browser Fix */
@media (max-width: 700px) {
.bgStatus {
width: 100% !important;
}
}
#chartContainer {
top: 225px; /*calc(45px + 180px) (toolbar height + status height)*/
}
.bgStatus {
float: right;
font-size: 900%;
@@ -65,12 +69,14 @@ body {
}
.time {
font-size: 600%;
margin-left: 25px;
padding-top: 15px;
}
.timebox {
text-align: center;
width: 250px;
}
.timeOther {
font-size: 25%;
margin-left: 32px;
}
#lastEntry {
background: #999;
@@ -97,6 +103,7 @@ body {
#chartContainer svg {
height: calc(100vh - (180px + 45px));
width: 100%;
top: calc(45px + 180px);
}
.axis path,
@@ -253,6 +260,10 @@ body {
margin-left: 0;
width: 100%;
}
.timebox {
text-align: none;
width: auto;
}
#currentTime {
display: inline;
font-size: 25%;
+5 -3
View File
@@ -46,9 +46,11 @@
</div>
<div class="time">
<div id="currentTime">---</div>
<div class="timeOther">
<span id="lastEntry">---</span>
<div class="timebox">
<div id="currentTime">---</div>
<div class="timeOther">
<span id="lastEntry">---</span>
</div>
</div>
</div>
</div>