fixed
This commit is contained in:
@@ -8,10 +8,10 @@ function login_form($error_msg = '')
|
|||||||
<input type="hidden" name="form_id" value="login_form">
|
<input type="hidden" name="form_id" value="login_form">
|
||||||
|
|
||||||
<label for="username">Username / Email</label>
|
<label for="username">Username / Email</label>
|
||||||
<input id="username" name="username" required>
|
<input id="username" name="username" spellcheck="false" required>
|
||||||
|
|
||||||
<label for="password">Password</label>
|
<label for="password">Password</label>
|
||||||
<input id="password" name="password" type="password" required>
|
<input id="password" name="password" type="password" spellcheck="false" required>
|
||||||
|
|
||||||
<label class="form_checkbox_container">Stay Logged In?
|
<label class="form_checkbox_container">Stay Logged In?
|
||||||
<input name="stay_logged_in" type="checkbox" value="true">
|
<input name="stay_logged_in" type="checkbox" value="true">
|
||||||
|
|||||||
+9
-7
@@ -23,7 +23,9 @@ p,
|
|||||||
small,
|
small,
|
||||||
label,
|
label,
|
||||||
input,
|
input,
|
||||||
.autofilled,
|
input:-webkit-autofill,
|
||||||
|
input:-webkit-autofill:hover,
|
||||||
|
input:-webkit-autofill:focus,
|
||||||
textarea,
|
textarea,
|
||||||
a,
|
a,
|
||||||
.modal_button,
|
.modal_button,
|
||||||
@@ -359,7 +361,13 @@ i:hover {
|
|||||||
|
|
||||||
input,
|
input,
|
||||||
.autofilled,
|
.autofilled,
|
||||||
|
input:-webkit-autofill,
|
||||||
|
textarea:-webkit-autofill,
|
||||||
|
input:-webkit-autofill:hover,
|
||||||
|
textarea:-webkit-autofill:hover,
|
||||||
|
input:-webkit-autofill:focus,
|
||||||
textarea {
|
textarea {
|
||||||
|
/* Try this first */
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
@@ -369,13 +377,7 @@ textarea {
|
|||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:-webkit-autofill {
|
|
||||||
-webkit-box-shadow: 0 0 0px 1000px black inset !important;
|
|
||||||
/* Try this first */
|
|
||||||
}
|
|
||||||
|
|
||||||
input:focus,
|
input:focus,
|
||||||
.autofilled,
|
|
||||||
textarea:focus,
|
textarea:focus,
|
||||||
input:hover,
|
input:hover,
|
||||||
textarea:hover {
|
textarea:hover {
|
||||||
|
|||||||
+8
-1
@@ -72,13 +72,20 @@ table tr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
input:is(:-webkit-autofill, :autofill),
|
|
||||||
textarea {
|
textarea {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: white;
|
color: white;
|
||||||
border: 3px solid white;
|
border: 3px solid white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input:-webkit-autofill,
|
||||||
|
textarea:-webkit-autofill,
|
||||||
|
select:-webkit-autofill {
|
||||||
|
-webkit-text-fill-color: white;
|
||||||
|
-webkit-box-shadow: 0 0 0px 1000px black inset;
|
||||||
|
transition: background-color 5000s ease-in-out 0s;
|
||||||
|
}
|
||||||
|
|
||||||
.checkmark {
|
.checkmark {
|
||||||
border: 2px solid white;
|
border: 2px solid white;
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-1
@@ -72,13 +72,20 @@ table tr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
input:is(:-webkit-autofill, :autofill),
|
|
||||||
textarea {
|
textarea {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: black;
|
color: black;
|
||||||
border: 3px solid black;
|
border: 3px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input:-webkit-autofill,
|
||||||
|
textarea:-webkit-autofill,
|
||||||
|
select:-webkit-autofill {
|
||||||
|
-webkit-text-fill-color: black;
|
||||||
|
-webkit-box-shadow: 0 0 0px 1000px white inset;
|
||||||
|
transition: background-color 5000s ease-in-out 0s;
|
||||||
|
}
|
||||||
|
|
||||||
.checkmark {
|
.checkmark {
|
||||||
border: 2px solid black;
|
border: 2px solid black;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
let inputs = document.querySelectorAll('input');
|
|
||||||
|
|
||||||
inputs.forEach(input => {
|
|
||||||
if (input.matches(':-webkit-autofill')) {
|
|
||||||
input.classList.add('autofilled');
|
|
||||||
}
|
|
||||||
|
|
||||||
function apply_hover(el) {
|
|
||||||
input.classList.add('autofilled');
|
|
||||||
}
|
|
||||||
|
|
||||||
input.addEventListener('hover', apply_hover);
|
|
||||||
input.addEventListener('focus', apply_hover);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user