From: Calin Crisan Date: Sat, 9 Nov 2013 12:55:28 +0000 (+0200) Subject: a few layout optimizations X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=4cbc7a45d1bb41be23cf74680868cfdaec27d12a;p=motioneye-debian a few layout optimizations --- diff --git a/static/css/main.css b/static/css/main.css index 847fc4a..ae0c251 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -34,16 +34,14 @@ html { div.page, div.header-container { position: relative; - min-width: 360px; - min-height: 90%; + min-width: 400px; width: 100%; } div.page { - padding-top: 50px; - padding-bottom: 20px; font-size: 1em; transition: all 0.5s linear; + min-height: 100%; } div.header { @@ -63,9 +61,9 @@ div.header-container { div.footer { position: absolute; - bottom: 0px; + bottom: 5px; width: 100%; - height: 20px; + height: 2.2em; font-size: 0.7em; color: #aaa; text-align: center; @@ -73,7 +71,7 @@ div.footer { div.page-container { transition: all 0.2s linear; - padding: 5px; + padding: 55px 5px 2.2em 5px; } div.page-container.stretched { @@ -143,19 +141,18 @@ div.settings { top: 50px; left: 0px; width: 0px; - height: 100%; + bottom: 0px; transition: all 0.2s linear; overflow: auto; } div.settings.open { width: 40%; - min-width: 360px; + min-width: 400px; } div.settings-container { padding-top: 10px; - padding-bottom: 60px; display: none; white-space: nowrap; } @@ -173,7 +170,7 @@ div.settings-top-bar { div.settings-top-bar.open { background-color: #414141; - min-width: 360px; + min-width: 400px; } div.settings-section-title { diff --git a/templates/main.html b/templates/main.html index 7a8694d..bced036 100644 --- a/templates/main.html +++ b/templates/main.html @@ -436,7 +436,8 @@