From 607bae992d52e0906ba7097fda02a367caf9137a Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Wed, 7 Sep 2016 11:51:30 -0400 Subject: [PATCH] login CSS for all resolutions, optimized --- hourglass/client/login/login.css | 53 +++++++++++++++++++++++-------- hourglass/client/login/login.html | 32 +++++++++---------- 2 files changed, 56 insertions(+), 29 deletions(-) diff --git a/hourglass/client/login/login.css b/hourglass/client/login/login.css index 8c867b4..37bcda0 100644 --- a/hourglass/client/login/login.css +++ b/hourglass/client/login/login.css @@ -1,17 +1,36 @@ +#loginCont { + width: 100%; + height: 100%; + display: table; + border-collapse: collapse; +} + +#bottomBar { + width: 100%; + height: 4px; + background-color: #33ADFF; + position: absolute; + bottom: 0; + z-index: 51; +} + #loginHeader { font-weight: 600; width: 100%; - margin: 0; + height: 13vh; + box-shadow: 2px 2px 5px 3px #666; background-color: #EBEBEB; - display: inline-block; + display: table-row; position: relative; z-index: 50; } #logo { + height: 10vh; + width: 10vh; padding: 0.5%; padding-left: 1%; float: left; @@ -34,18 +53,21 @@ #loginMain { width: 100%; - min-height: 100%; - position: absolute; - top: 11%; + height: 80vh; + + border-top: solid 1vh #33ADFF; + display: table-row; background-color: #E5E5E5; background-image: url("banner100.jpg"); + background-size: 100vw 80vh; } #circle { - position: fixed; - top: 50%; - left: 50%; + width: 95vh; + height: 95vh; + margin: auto; + margin-top: -8vh; -moz-border-radius: 50%; -webkit-border-radius: 50%; @@ -58,9 +80,9 @@ } #loginContent { - position: fixed; - top: 50%; - left: 50%; + width: 80%; + margin: auto; + padding-top: 16vh; } .text { @@ -83,7 +105,9 @@ p.text { } #loginButton { - font-size: 200%; + font-size: 3.5vh; + width: 25%; + margin: auto; padding: 2%; -webkit-border-radius: 6; @@ -117,13 +141,16 @@ p.text { #loginFooter { width: 100%; + height: 8vh; box-shadow: 2px 2px 5px 3px #666; background-color: #EBEBEB; position: absolute; bottom: 0; } - +.login-buttons { + display: none !important; +} #github { font-size: 150%; diff --git a/hourglass/client/login/login.html b/hourglass/client/login/login.html index 3591c9c..35678f6 100644 --- a/hourglass/client/login/login.html +++ b/hourglass/client/login/login.html @@ -1,22 +1,22 @@