From: Bernhard Tittelbach Date: Wed, 17 Apr 2013 14:23:29 +0000 (+0000) Subject: raspberry kiosk beauty of css (hust) X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=1263fe34ac655a03a3f5b657ff9a0c6f85e95477;p=svn42.git raspberry kiosk beauty of css (hust) --- diff --git a/raspberry-kiosk/kiosk.css b/raspberry-kiosk/kiosk.css index 54c3eb1..b0300d3 100644 --- a/raspberry-kiosk/kiosk.css +++ b/raspberry-kiosk/kiosk.css @@ -115,11 +115,19 @@ td.anwesenheitsstatus { font-size:30px; } +td.sensorstatus{ + height:42px; + text-align:center; + vertical-align:middle; + display:table-cell; + background-color:#f2f2f2; +} + div.sensorelem { display:block; width:397px; - margin-top:2px; - margin-bottom:0; + margin-top:0; + margin-bottom:6px; margin-left:auto; margin-right:auto; } @@ -140,32 +148,45 @@ div.gpluswall { div.gpluspost { display:block; - width: 495px; - border-bottom:1px solid gray; - margin-top:0px; - margin-bottom:5px; + width: 497px; + margin-left:0; + margin-right:0; + border-top:1px solid #333; + margin-top:0; + margin-bottom:6px; + background-color:#f2f2f2; } img.gplusactor { - margin:4px; + margin-left:2px; + margin-bottom:0px; + margin-right:4px; + margin-top:4px; display:inline; float:left; } p.gplustimestamp { display:inline; float: right; - margin-left:auto; - margin-right:8px; + margin-top:0; + padding:4 14 4 14; + margin-left:4px; + margin-bottom:4px; + margin-right:0; font-size:9pt; + color:white; + background-color: #333; } p.gplusimg { display:block; - margin-top:2px; - margin-bottom: 4px; - overflow: hidden; - max-height:300px; + margin-left:0; + margin-top:6px; + margin-bottom:0; + margin-right:0; + overflow:hidden; + max-height:275px; } -p.gplusimg { - width:495px; +img.gplusimg { + width:497px; } p.gplustxt { display:block; diff --git a/raspberry-kiosk/kiosk.html b/raspberry-kiosk/kiosk.html index ef1ddd6..b06a399 100644 --- a/raspberry-kiosk/kiosk.html +++ b/raspberry-kiosk/kiosk.html @@ -26,7 +26,7 @@
- +
Loading ...
Loading ...
Loading ...
diff --git a/raspberry-kiosk/kiosk.js b/raspberry-kiosk/kiosk.js index 4077087..90addfb 100644 --- a/raspberry-kiosk/kiosk.js +++ b/raspberry-kiosk/kiosk.js @@ -23,7 +23,7 @@ function writeGooglePlusEvents(data, elem) } } ghtml += '
' - ghtml += '

'+item.updated+'

'; + ghtml += '

'+item.updated.substring(0,16).replace("T"," ")+'

'; ghtml += '

'+notetxt+'

'; if (noteimg) { @@ -106,7 +106,7 @@ function writeAnwesenheitStatus(data) { $.each( data.sensors[s], function(stype, std){ $.each( std, function(swhere, svalue){ - sensorstd+=''+stype+'
'+swhere+': '+svalue+''; + sensorstd+=''+stype+'
'+swhere+': '+svalue+''; }); }); }