2018-01-15 01:06:52 +01:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding-top: 40px;
|
|
|
|
padding-bottom: 40px;
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-signin {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 420px;
|
|
|
|
padding: 15px;
|
2018-03-12 18:29:45 +01:00
|
|
|
margin: auto;
|
2018-01-15 01:06:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group {
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group > input,
|
|
|
|
.form-label-group > label {
|
2018-08-19 05:15:44 +02:00
|
|
|
height: 3.125rem;
|
2018-11-11 09:52:06 +01:00
|
|
|
padding: .75rem;
|
2018-01-15 01:06:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group > label {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 0; /* Override default `<label>` margin */
|
|
|
|
line-height: 1.5;
|
|
|
|
color: #495057;
|
2018-11-24 13:25:18 +01:00
|
|
|
pointer-events: none;
|
2018-07-15 00:14:29 +02:00
|
|
|
cursor: text; /* Match the input under the label */
|
2018-01-15 01:06:52 +01:00
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: .25rem;
|
|
|
|
transition: all .1s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input::-webkit-input-placeholder {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input:-ms-input-placeholder {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input::-ms-input-placeholder {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input::-moz-placeholder {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input::placeholder {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input:not(:placeholder-shown) {
|
2018-11-11 09:52:06 +01:00
|
|
|
padding-top: 1.25rem;
|
|
|
|
padding-bottom: .25rem;
|
2018-01-15 01:06:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-label-group input:not(:placeholder-shown) ~ label {
|
2018-11-11 09:52:06 +01:00
|
|
|
padding-top: .25rem;
|
|
|
|
padding-bottom: .25rem;
|
2018-01-15 01:06:52 +01:00
|
|
|
font-size: 12px;
|
|
|
|
color: #777;
|
|
|
|
}
|
2018-06-24 22:11:39 +02:00
|
|
|
|
|
|
|
/* Fallback for Edge
|
|
|
|
-------------------------------------------------- */
|
|
|
|
@supports (-ms-ime-align: auto) {
|
|
|
|
.form-label-group > label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.form-label-group input::-ms-input-placeholder {
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fallback for IE
|
|
|
|
-------------------------------------------------- */
|
|
|
|
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
|
|
.form-label-group > label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.form-label-group input:-ms-input-placeholder {
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
}
|