]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix incorrect variable for popover border radius (#28733)
authorShohei Yoshida <ysds.code@gmail.com>
Tue, 7 May 2019 10:01:30 +0000 (19:01 +0900)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Tue, 7 May 2019 10:01:30 +0000 (12:01 +0200)
* Use $popover-border-radius

* Move and rename the local $offset-border-width to the global variable

scss/_popover.scss
scss/_variables.scss

index fe70dd071fe70e9af6a894ef6f32ef56151dd571..512a25fb399f957d7c36cdd95cd1d905c427f6f9 100644 (file)
@@ -22,7 +22,7 @@
     display: block;
     width: $popover-arrow-width;
     height: $popover-arrow-height;
-    margin: 0 $border-radius-lg;
+    margin: 0 $popover-border-radius;
 
     &::before,
     &::after {
@@ -62,7 +62,7 @@
     left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
     width: $popover-arrow-height;
     height: $popover-arrow-width;
-    margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
+    margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
 
     &::before {
       left: 0;
     right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
     width: $popover-arrow-height;
     height: $popover-arrow-width;
-    margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
+    margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
 
     &::before {
       right: 0;
   color: $popover-header-color;
   background-color: $popover-header-bg;
   border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
-  $offset-border-width: calc(#{$border-radius-lg} - #{$popover-border-width});
-  @include border-top-radius($offset-border-width);
+  @include border-top-radius($popover-inner-border-radius);
 
   &:empty {
     display: none;
index 9d83f8c61519c9febd60a19931e03c4c7d0741b9..e2271491d5bc77a1972730f48747bb30f9c51d93 100644 (file)
@@ -889,6 +889,7 @@ $popover-max-width:                 276px !default;
 $popover-border-width:              $border-width !default;
 $popover-border-color:              rgba($black, .2) !default;
 $popover-border-radius:             $border-radius-lg !default;
+$popover-inner-border-radius:       calc(#{$popover-border-radius} - #{$popover-border-width}) !default;
 $popover-box-shadow:                0 .25rem .5rem rgba($black, .2) !default;
 
 $popover-header-bg:                 darken($popover-bg, 3%) !default;