]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update validation tooltips to use tooltip vars (#26887)
authorMark Otto <otto@github.com>
Fri, 20 Jul 2018 23:21:40 +0000 (18:21 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Jul 2018 23:21:40 +0000 (18:21 -0500)
Updates the properties and values for which we have existing variables to match our tooltips. Come 4.2, we'll create new tooltips for these.

scss/mixins/_forms.scss

index 7258e9d6e1e482208893a3027505ee1589b514fc..3a61878694b6a593bed20ec3c0e2e02bda12eb43 100644 (file)
     z-index: 5;
     display: none;
     max-width: 100%; // Contain to parent when possible
-    padding: .5rem;
+    padding: $tooltip-padding-y $tooltip-padding-x;
     margin-top: .1rem;
-    font-size: .875rem;
-    line-height: 1;
-    color: $white;
-    background-color: rgba($color, .8);
-    border-radius: .2rem;
+    font-size: $tooltip-font-size;
+    line-height: $line-height-base;
+    color: color-yiq($color);
+    background-color: rgba($color, $tooltip-opacity);
+    @include border-radius($tooltip-border-radius);
   }
 
   .form-control,