Skip to content

Commit

Permalink
webinterface: handle 720p phones
Browse files Browse the repository at this point in the history
  • Loading branch information
xkonni committed Dec 16, 2012
1 parent 3772f00 commit b78a719
Showing 1 changed file with 65 additions and 23 deletions.
88 changes: 65 additions & 23 deletions webinterface/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
body {
background-color:#000000;
color: white;
font-size: 20px;
font-size: 1.5em;
}

h3 {
font-size: 24px;
font-size: 1.75em;
}

table {
Expand All @@ -14,40 +14,21 @@ table {
border-spacing: 10px;
}

td.outer {

padding: 5px;
width: 200px;
height: 200px;
}

td.inner {
width: 180;
height: 180px;
}

p {
width: 480px;
text-align: center;
}

a:link {
color: #ffffff;
text-decoration: none;
}
a.bold:link {
a.active:link {
color: #00ff00;
text-decoration: none;
font-weight: bold;
}
a:visited {
color: #ffffff;
text-decoration: none;
}
a.bold:visited {
a.active:visited {
color: #00ff00;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #298aad;
Expand All @@ -66,7 +47,68 @@ a:active {
text-decoration: none;
}

/* Default */
td.outer {
padding: 5px;
width: 300px;
height: 170px;
}

td.inner {
width: 280;
height: 150px;
}

p {
width: 700px;
text-align: center;
}

/* Android HDPI */
@media only screen and (-webkit-device-pixel-ratio:1.5) {
td.outer {
padding: 5px;
width: 200px;
height: 170px;
}

td.inner {
width: 180;
height: 150px;
}

p {
width: 480px;
text-align: center;
}
}

/* Android 720p */
@media only screen and (-webkit-device-pixel-ratio:2) {
body {
background-color:#000000;
color: white;
font-size: 2em;
}

h3 {
font-size: 2.25em;
}

td.outer {
padding: 5px;
width: 350px;
height: 170px;
}

td.inner {
width: 330;
height: 150px;
}

p {
width: 720px;
text-align: center;
}
}

0 comments on commit b78a719

Please sign in to comment.