cffa353ffb
Also: - Add CSS to login page - Refactor login page HTML and CSS into a new package - New custom CSP headers for the login page, because the requirements are different from the form_post page
95 lines
1.9 KiB
CSS
95 lines
1.9 KiB
CSS
/* Copyright 2022 the Pinniped contributors. All Rights Reserved. */
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
html {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: "Metropolis-Light", Helvetica, sans-serif;
|
|
display: flex;
|
|
flex-flow: column wrap;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
/* subtle gradient make the login box stand out */
|
|
background: linear-gradient(to top, #f8f8f8, white);
|
|
min-height: 100%;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
margin: 0;
|
|
}
|
|
|
|
.box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
border-radius: 4px;
|
|
border-color: #ddd;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
width: 400px;
|
|
padding:30px 30px 0;
|
|
margin: 60px 20px 0;
|
|
background: white;
|
|
font-size: 14px;
|
|
}
|
|
|
|
input {
|
|
color: inherit;
|
|
font: inherit;
|
|
border: 0;
|
|
margin: 0;
|
|
outline: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.form-field {
|
|
display: flex;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.form-field input[type="password"], .form-field input[type="text"], .form-field input[type="submit"] {
|
|
width: 100%;
|
|
padding: 1em;
|
|
}
|
|
|
|
.form-field input[type="password"], .form-field input[type="text"] {
|
|
border-radius: 3px;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: #a6a6a6;
|
|
}
|
|
|
|
.form-field input[type="submit"] {
|
|
background-color: #218fcf; /* this is a color from the Pinniped logo :) */
|
|
color: #eee;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all .3s;
|
|
}
|
|
|
|
.form-field input[type="submit"]:focus, .form-field input[type="submit"]:hover {
|
|
background-color: #1abfd3; /* this is a color from the Pinniped logo :) */
|
|
}
|
|
|
|
.form-field input[type="submit"]:active {
|
|
transform: scale(.99);
|
|
}
|
|
|
|
.hidden {
|
|
border: 0;
|
|
clip: rect(0 0 0 0);
|
|
height: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
width: 1px;
|
|
}
|
|
|
|
.alert {
|
|
color: crimson;
|
|
}
|