From fcdfa3e63ebe5eb908021565308ab2a85d1a1d5a Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Thu, 13 Oct 2016 14:10:39 -0400 Subject: [PATCH] CSS fixes, centering for all screen sizes --- hourglass/client/login/login.css | 32 ++++++++++++++++++---------- hourglass/client/login/login.html | 35 +++++++++++++++++-------------- hourglass/client/main/main.css | 4 ---- 3 files changed, 40 insertions(+), 31 deletions(-) diff --git a/hourglass/client/login/login.css b/hourglass/client/login/login.css index dfc4adc..5283895 100644 --- a/hourglass/client/login/login.css +++ b/hourglass/client/login/login.css @@ -56,32 +56,42 @@ #loginMain { width: 100%; height: 84vh; - - background-color: #E5E5E5; - background-image: url("banner100.jpg"); - background-size: 100vw 84vh; - + display: table-row; position: absolute; top: 11vh; } -#circle { - width: 95vh; - height: 95vh; - margin: auto; - margin-top: -8vh; +#bannerBg { + margin-top: 1%; + height: 86vh; + position: fixed; + top: 50%; + left: 50%; + z-index: -1; + + transform:translate(-50%, -50%); +} + +#circle { + width: 98vh; + height: 98vh; + -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; background-color: rgba(0,0,0,0.2); position: relative; + top: 50%; + left: 50%; z-index: 0; -webkit-filter: drop-shadow(2px 2px 5px #333); filter: drop-shadow(2px 2px 5px #333); + + transform: translate(-50%, -50%); } #loginContent { @@ -186,4 +196,4 @@ a { a:hover { color: #00BFFF; -} +} \ No newline at end of file diff --git a/hourglass/client/login/login.html b/hourglass/client/login/login.html index ba71eaf..7f4ca94 100644 --- a/hourglass/client/login/login.html +++ b/hourglass/client/login/login.html @@ -1,23 +1,26 @@ diff --git a/hourglass/client/main/main.css b/hourglass/client/main/main.css index 915384f..c3b5602 100644 --- a/hourglass/client/main/main.css +++ b/hourglass/client/main/main.css @@ -31,9 +31,6 @@ html { pointer-events: all; - /*background-image: url("Hourglass.png"); - background-size: 1920px 1080px;*/ - -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; @@ -896,7 +893,6 @@ textarea.clickModify { top: 0; left: 0; z-index: -1; - } #mainBody {