2019-12-01 00:55:32 +08:00
|
|
|
:root {
|
|
|
|
--input_bg: #E5E5E5;
|
|
|
|
--input_hover:#eaeaea;
|
|
|
|
--accept_bg: #1FCC44;
|
|
|
|
--accept_hover: #40e263;
|
|
|
|
--deny_bg: #cc1f1f;
|
|
|
|
--deny_hover: #e24040;
|
|
|
|
--icon_color:#6b6b6b;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Overide browser defaults */
|
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Style the form wrapper */
|
|
|
|
body {
|
|
|
|
/* Set custom font */
|
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
margin: auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
font-size: larger;
|
2020-05-02 03:22:34 +08:00
|
|
|
border: none;
|
2019-12-01 00:55:32 +08:00
|
|
|
margin-top: 5%;
|
|
|
|
}
|
|
|
|
|
2019-12-01 01:05:16 +08:00
|
|
|
/* Format the different images*/
|
2020-04-30 21:43:07 +08:00
|
|
|
#form_icon,
|
2019-12-01 00:55:32 +08:00
|
|
|
#form_icon_prompt {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#form_icon img {
|
|
|
|
width: 100%;
|
2020-04-30 21:43:07 +08:00
|
|
|
max-width: 450px;
|
2019-12-01 00:55:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#form_icon_prompt img {
|
|
|
|
width: 50%;
|
2020-04-30 21:43:07 +08:00
|
|
|
max-width: 350px;
|
2019-12-01 00:55:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Style the form_credentials */
|
|
|
|
#form_credentials {
|
|
|
|
/* Center the content */
|
|
|
|
display: inline-block;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-04-30 21:43:07 +08:00
|
|
|
position: absolute;
|
|
|
|
transform: translate(-50%, 25%);
|
2019-12-01 00:55:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Style input fields */
|
|
|
|
.input_container {
|
|
|
|
background-color: var(--input_bg);
|
|
|
|
/* Vertically align icon and text inside the div*/
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input_container:hover {
|
|
|
|
background-color: var(--input_hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.input_container,
|
2020-04-30 21:43:07 +08:00
|
|
|
#input_accept,
|
|
|
|
#input_deny,
|
2019-12-01 00:55:32 +08:00
|
|
|
#input_login {
|
|
|
|
height: 60px;
|
|
|
|
|
|
|
|
/* Make the borders more round */
|
|
|
|
border-radius: 12px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input_field {
|
|
|
|
/* Customize the input tag with lighter font and some padding*/
|
|
|
|
color: var(--icon_color);
|
|
|
|
background-color: inherit;
|
|
|
|
width: 95%;
|
|
|
|
border: none;
|
|
|
|
font-size: 1.3rem;
|
|
|
|
font-weight: 400;
|
|
|
|
padding-left: 6.5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input_field:hover,
|
|
|
|
.input_field:focus {
|
|
|
|
/* Remove the outline */
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2020-04-30 21:43:07 +08:00
|
|
|
#input_accept,
|
|
|
|
#input_deny,
|
2019-12-01 00:55:32 +08:00
|
|
|
#input_login {
|
|
|
|
/* Submit button has a different color and different padding */
|
|
|
|
background-color: var(--accept_bg);
|
|
|
|
padding-left: 0;
|
|
|
|
font-weight: bold;
|
|
|
|
color: white;
|
|
|
|
text-transform: capitalize;
|
|
|
|
text-align: center;
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 25%;
|
|
|
|
margin-right: 2%;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
2020-04-30 21:43:07 +08:00
|
|
|
#input_accept:hover,
|
|
|
|
#input_deny:hover,
|
2019-12-01 00:55:32 +08:00
|
|
|
#input_login:hover {
|
|
|
|
/* Simple color transition on hover */
|
|
|
|
transition: background-color, 500ms;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2020-04-30 21:43:07 +08:00
|
|
|
#input_accept,
|
2019-12-01 00:55:32 +08:00
|
|
|
#input_deny {
|
|
|
|
width: 45%;
|
|
|
|
margin-top: 6%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#input_deny {
|
|
|
|
background-color: var(--deny_bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#input_deny:hover {
|
|
|
|
background-color: var(--deny_hover);
|
|
|
|
}
|
|
|
|
|
2019-12-01 01:05:16 +08:00
|
|
|
/* Format the error messages */
|
|
|
|
.err_msg {
|
2020-04-30 21:43:07 +08:00
|
|
|
color: red;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 110%;
|
2019-12-01 01:05:16 +08:00
|
|
|
}
|
|
|
|
|
2019-12-01 00:55:32 +08:00
|
|
|
|
|
|
|
/* General page styling */
|
|
|
|
h1,
|
|
|
|
span {
|
|
|
|
text-align: center;
|
|
|
|
padding-bottom: 2%;
|
2020-04-30 21:43:07 +08:00
|
|
|
padding-top: 0%;
|
2019-12-01 00:55:32 +08:00
|
|
|
font-weight: bolder;
|
|
|
|
font-size: 300%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: var(--icon_color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make it responsive */
|
|
|
|
@media screen and (max-width:768px) {
|
|
|
|
|
|
|
|
/* Make the layout a single column and add some margin to the wrapper */
|
|
|
|
#form_wrapper {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* On small screens we don't display the image */
|
|
|
|
#form_icon {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
button {
|
|
|
|
overflow: visible;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
button.link {
|
|
|
|
font-family: "Verdana" sans-serif;
|
2020-05-02 03:22:34 +08:00
|
|
|
font-size: 2pt;
|
2020-04-30 21:43:07 +08:00
|
|
|
text-align: left;
|
|
|
|
color: blue;
|
|
|
|
background: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
-moz-user-select: text;
|
|
|
|
|
|
|
|
/* override all your button styles here if there are any others */
|
|
|
|
}
|
|
|
|
button.link span {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
button.link:hover span,
|
|
|
|
button.link:focus span {
|
|
|
|
color: black;
|
|
|
|
}
|