CSS fixes, centering for all screen sizes

This commit is contained in:
Kenneth Jao 2016-10-13 14:10:39 -04:00
parent a7154c17dc
commit fcdfa3e63e
3 changed files with 40 additions and 31 deletions

View File

@ -57,20 +57,26 @@
width: 100%; width: 100%;
height: 84vh; height: 84vh;
background-color: #E5E5E5;
background-image: url("banner100.jpg");
background-size: 100vw 84vh;
display: table-row; display: table-row;
position: absolute; position: absolute;
top: 11vh; top: 11vh;
} }
#bannerBg {
margin-top: 1%;
height: 86vh;
position: fixed;
top: 50%;
left: 50%;
z-index: -1;
transform:translate(-50%, -50%);
}
#circle { #circle {
width: 95vh; width: 98vh;
height: 95vh; height: 98vh;
margin: auto;
margin-top: -8vh;
-moz-border-radius: 50%; -moz-border-radius: 50%;
-webkit-border-radius: 50%; -webkit-border-radius: 50%;
@ -78,10 +84,14 @@
background-color: rgba(0,0,0,0.2); background-color: rgba(0,0,0,0.2);
position: relative; position: relative;
top: 50%;
left: 50%;
z-index: 0; z-index: 0;
-webkit-filter: drop-shadow(2px 2px 5px #333); -webkit-filter: drop-shadow(2px 2px 5px #333);
filter: drop-shadow(2px 2px 5px #333); filter: drop-shadow(2px 2px 5px #333);
transform: translate(-50%, -50%);
} }
#loginContent { #loginContent {

View File

@ -1,4 +1,5 @@
<template name="login"> <template name="login">
<div class="noScroll">
<div id="loginCont"> <div id="loginCont">
<header id="loginHeader"> <header id="loginHeader">
<img id="logo" src="logo.png"> <img id="logo" src="logo.png">
@ -6,6 +7,7 @@
<div id="bottomBar"></div> <div id="bottomBar"></div>
</header> </header>
<div id="loginMain"> <div id="loginMain">
<img id="bannerBg" src="banner100.jpg">
<div id="circle"> <div id="circle">
<div id="loginContent"> <div id="loginContent">
<h2 class="text">Hourglass</h2> <h2 class="text">Hourglass</h2>
@ -19,5 +21,6 @@
<p id="version">Version 0.1.2</p> <p id="version">Version 0.1.2</p>
</footer> </footer>
</div> </div>
</div>
{{> loginButtons}} {{> loginButtons}}
</template> </template>

View File

@ -31,9 +31,6 @@ html {
pointer-events: all; pointer-events: all;
/*background-image: url("Hourglass.png");
background-size: 1920px 1080px;*/
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
@ -896,7 +893,6 @@ textarea.clickModify {
top: 0; top: 0;
left: 0; left: 0;
z-index: -1; z-index: -1;
} }
#mainBody { #mainBody {