]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
v4 Examples/Floating-labels: fix bad behavior with autofill
authorItamar Eduardo Gonçalves de Oliveira <3duardo.goncalves@gmail.com>
Tue, 27 Oct 2020 00:21:38 +0000 (20:21 -0400)
committerMark Otto <otto@github.com>
Tue, 27 Oct 2020 04:19:56 +0000 (21:19 -0700)
site/docs/4.5/examples/floating-labels/floating-labels.css

index 079a66652ca40d673c3157a6f9ec6ec3d275e73d..e08144d81ed71e04f349425db282a434b86b0634 100644 (file)
@@ -103,6 +103,13 @@ body {
   color: #777;
 }
 
+.form-label-group input:-webkit-autofill ~ label {
+  padding-top: .25rem;
+  padding-bottom: .25rem;
+  font-size: 12px;
+  color: #777;
+}
+
 /* Fallback for Edge
 -------------------------------------------------- */
 @supports (-ms-ime-align: auto) {