media query 4 small displays

This commit is contained in:
Gerrit Linnemann 2015-11-16 21:38:06 +01:00
parent 830bb50f14
commit 42b236bb39
3 changed files with 44 additions and 5 deletions

View File

@ -36,8 +36,8 @@ exports.init = function(Express, Configuration) {
}); });
// set default volume level // set default volume level
Helper.shspawn('amixer scontrols'); //Helper.shspawn('amixer scontrols');
Helper.shspawn('amixer sset \'PCM\' '+volume+'%'); //Helper.shspawn('amixer sset \'PCM\' '+volume+'%');
return this; return this;
} }
@ -103,7 +103,7 @@ exports.volume = function(step) {
Log.log('Radio: volume ' + (step>0 ? 'up' : 'down')); Log.log('Radio: volume ' + (step>0 ? 'up' : 'down'));
if(step != 0) { if(step != 0) {
volume = volume + step; volume += step;
if(volume > 100) { volume = 100; } if(volume > 100) { volume = 100; }
if(volume < 0) { volume = 0; } if(volume < 0) { volume = 0; }

View File

@ -136,11 +136,14 @@ body {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: left top; background-position: left top;
} }
.clearboth {
clear: both;
}
a { a {
color: #00B7FF; color: #00B7FF;
} }
.hidden { .hidden {
display: none; display: none !important;
} }
#navigation { #navigation {
height: 70%; height: 70%;
@ -176,6 +179,20 @@ a {
#navigation .tile:hover { #navigation .tile:hover {
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
} }
@media screen and (max-width: 320px) {
#navigation {
display: block;
text-align: center;
}
#navigation .tile {
display: inline-block;
width: 32%;
}
#navigation .tile .content .icon {
height: auto;
width: 88%;
}
}
#controls { #controls {
background-color: rgba(255, 255, 255, 0.25); background-color: rgba(255, 255, 255, 0.25);
height: 30%; height: 30%;

View File

@ -68,12 +68,16 @@ body {
background-position: left top; background-position: left top;
} }
.clearboth {
clear: both;
}
a { a {
color: #00B7FF; color: #00B7FF;
} }
.hidden { .hidden {
display: none; display: none !important;
} }
#navigation { #navigation {
@ -114,6 +118,24 @@ a {
background-color: @backgroundcolor_element_hover; background-color: @backgroundcolor_element_hover;
} }
} }
@media screen and (max-width: 320px) {
display: block;
text-align: center;
.tile {
display: inline-block;
width: 32%;
.content {
.icon {
height: auto;
width: 88%;
}
}
}
}
} }
#controls { #controls {