mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-22 06:39:52 +00:00
Fix incorrect variable for popover border radius (#28733)
* Use $popover-border-radius * Move and rename the local $offset-border-width to the global variable
This commit is contained in:
parent
45a1954740
commit
dfab49aab7
@ -22,7 +22,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
width: $popover-arrow-width;
|
width: $popover-arrow-width;
|
||||||
height: $popover-arrow-height;
|
height: $popover-arrow-height;
|
||||||
margin: 0 $border-radius-lg;
|
margin: 0 $popover-border-radius;
|
||||||
|
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
@ -62,7 +62,7 @@
|
|||||||
left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
||||||
width: $popover-arrow-height;
|
width: $popover-arrow-height;
|
||||||
height: $popover-arrow-width;
|
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 {
|
&::before {
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -117,7 +117,7 @@
|
|||||||
right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
||||||
width: $popover-arrow-height;
|
width: $popover-arrow-height;
|
||||||
height: $popover-arrow-width;
|
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 {
|
&::before {
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -157,8 +157,7 @@
|
|||||||
color: $popover-header-color;
|
color: $popover-header-color;
|
||||||
background-color: $popover-header-bg;
|
background-color: $popover-header-bg;
|
||||||
border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
|
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($popover-inner-border-radius);
|
||||||
@include border-top-radius($offset-border-width);
|
|
||||||
|
|
||||||
&:empty {
|
&:empty {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -889,6 +889,7 @@ $popover-max-width: 276px !default;
|
|||||||
$popover-border-width: $border-width !default;
|
$popover-border-width: $border-width !default;
|
||||||
$popover-border-color: rgba($black, .2) !default;
|
$popover-border-color: rgba($black, .2) !default;
|
||||||
$popover-border-radius: $border-radius-lg !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-box-shadow: 0 .25rem .5rem rgba($black, .2) !default;
|
||||||
|
|
||||||
$popover-header-bg: darken($popover-bg, 3%) !default;
|
$popover-header-bg: darken($popover-bg, 3%) !default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user