Skip to content

Commit

Permalink
IE11 centering
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 4, 2018
1 parent a696faf commit 554fd0e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
12 changes: 10 additions & 2 deletions mujina-sp/src/main/resources/public/main.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
ul {
list-style: none;
}

.login-container-wrapper {
display: flex;
flex-direction: column;
height: 100%;
}
.login-container, .user-container {
font-family: Helvetica, Verdana, serif;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100%;
width: 100%;
background: linear-gradient(135deg, #fff 0%, #f3f6f8 100%);
}
Expand Down Expand Up @@ -35,7 +41,9 @@ ul {
justify-content: center;
flex-direction: column;
align-self: center;
margin: auto;
margin: auto auto 20%;
box-sizing: border-box;
max-width: 100%;
}
h1 {
font-size: 24px;
Expand Down
18 changes: 10 additions & 8 deletions mujina-sp/src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
<script th:src="@{/sp.js}"></script>
</head>
<body>
<section class="login-container">
<section class="login">
<h1>Mujina Service Provider</h1>
<a id="user-link" class="button" th:href="@{/user.html?force-authn=false}">Login</a>
<section class="force-authn">
<input type="checkbox" id="force-authn" name="force-authn"/>
<label for="force-authn">Force Authn request?</label>
<section class="login-container-wrapper">
<section class="login-container">
<section class="login">
<h1>Mujina Service Provider</h1>
<a id="user-link" class="button" th:href="@{/user.html?force-authn=false}">Login</a>
<section class="force-authn">
<input type="checkbox" id="force-authn" name="force-authn"/>
<label for="force-authn">Force Authn request?</label>
</section>
</section>
<a class="powered-by" href="https://openconext.org/" target="_blank">Copyright © 2018 OpenConext</a>
</section>
<a class="powered-by" href="https://openconext.org/" target="_blank">Copyright © 2018 OpenConext</a>
</section>
</body>
</html>

0 comments on commit 554fd0e

Please sign in to comment.