From 9bcf534c5f58eee1681bdec695a383f2116143ee Mon Sep 17 00:00:00 2001 From: Michael Scherle Date: Mon, 5 Dec 2016 18:55:36 +0100 Subject: frontend: changed to backend changes, use media querrys, changed free seats font for better scaling --- .../locationinfo/frontend/doorsign.html | 144 +++++++++++++++------ 1 file changed, 102 insertions(+), 42 deletions(-) (limited to 'modules-available/locationinfo/frontend') diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html index 082f6ff0..f6d5f840 100755 --- a/modules-available/locationinfo/frontend/doorsign.html +++ b/modules-available/locationinfo/frontend/doorsign.html @@ -46,12 +46,22 @@ optional: box-shadow: 0 2px 4px 0 black; margin-bottom: 4px; - } + width: 100%; + } .header { - font-size: 20px; - height: 100px; + display: table; color: white; + padding: 0; + height: 80px; + + } + + .font { + display: table-cell; + vertical-align: middle; + font-size: 40px; + font-weight: bold } .courseText { @@ -78,6 +88,7 @@ optional: width: 33%; } + .roomLayoutDesign { position: relative; background: linear-gradient(#cccccc, white); @@ -110,15 +121,17 @@ optional: } .square { - right: 0; - position: absolute; - margin: 0 0; - width: 100px; - height: 100px; + display: table; + float: right; + padding: 0; + width: 80px; + height: 80px; } .FreeSeatsFont { - font-size: 85px; + display: table-cell; + vertical-align: middle; + font-size: 65px; color: white; top: 0; margin: 0 auto; @@ -126,9 +139,9 @@ optional: text-align: center; font-weight: bold; overflow: visible; - } + .pcImg { position: absolute; left: 0; @@ -186,7 +199,54 @@ optional: border-color: grey; } + @media (max-width: 1200px){ + .square { + height: 60px; + width: 60px; + } + .FreeSeatsFont { + font-size: 45px; + } + .font { + font-size: 30px; + } + .header { + height: 60px; + + } + } + @media (max-width: 800px){ + .square { + height: 50px; + width: 50px; + } + .FreeSeatsFont { + font-size: 35px; + } + .font { + font-size: 20px; + } + .header { + height: 50px; + + } + } + @media (max-width: 600px){ + .square { + height: 40px; + width: 40px; + } + .FreeSeatsFont { + font-size: 30px; + } + .font { + font-size: 18px; + } + .header { + height: 40px; + } + }