]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add new variables for form feedback tooltips (#26959)
authorMark Otto <otto@github.com>
Wed, 19 Sep 2018 04:27:02 +0000 (21:27 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Sep 2018 04:27:02 +0000 (21:27 -0700)
Fixes #26886

scss/_variables.scss
scss/mixins/_forms.scss

index 4f26be9d4a77c8196450bf46ad30b7d54dba2740..7b0d3a2f5a2cd03b66a8770b7b34c285a2a9e97d 100644 (file)
@@ -782,6 +782,14 @@ $tooltip-arrow-width:               .8rem !default;
 $tooltip-arrow-height:              .4rem !default;
 $tooltip-arrow-color:               $tooltip-bg !default;
 
+// Form tooltips must come after regular tooltips
+$form-feedback-tooltip-padding-y:     $tooltip-padding-y !default;
+$form-feedback-tooltip-padding-x:     $tooltip-padding-x !default;
+$form-feedback-tooltip-font-size:     $tooltip-font-size !default;
+$form-feedback-tooltip-line-height:   $line-height-base !default;
+$form-feedback-tooltip-opacity:       $tooltip-opacity !default;
+$form-feedback-tooltip-border-radius: $tooltip-border-radius !default;
+
 
 // Popovers
 
index 90ecddee0c691d512a4df79d49bd635afebb6488..fbddd780394bb74b00fd4e496aae68642726a89a 100644 (file)
     z-index: 5;
     display: none;
     max-width: 100%; // Contain to parent when possible
-    padding: $tooltip-padding-y $tooltip-padding-x;
+    padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
     margin-top: .1rem;
-    font-size: $tooltip-font-size;
-    line-height: $line-height-base;
+    font-size: $form-feedback-tooltip-font-size;
+    line-height: $form-feedback-tooltip-line-height;
     color: color-yiq($color);
-    background-color: rgba($color, $tooltip-opacity);
-    @include border-radius($tooltip-border-radius);
+    background-color: rgba($color, $form-feedback-tooltip-opacity);
+    @include border-radius($form-feedback-tooltip-border-radius);
   }
 
   .form-control {