mirror of
https://github.com/twbs/bootstrap.git
synced 2025-04-10 02:02:26 +02:00
Enhance popover arrow rendering when popover has a header
This commit is contained in:
parent
c2a7d686de
commit
e34813fe8f
@ -119,6 +119,12 @@
|
|||||||
top: var(--#{$prefix}popover-border-width);
|
top: var(--#{$prefix}popover-border-width);
|
||||||
border-bottom-color: var(--#{$prefix}popover-bg);
|
border-bottom-color: var(--#{$prefix}popover-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// `:has` is not yet supported by our `.browserlistrc` but since it adds an extra layer of specificity,
|
||||||
|
// it doesn't hurt the browsers that don't support it.
|
||||||
|
&:has(+ .popover-header)::after {
|
||||||
|
--#{$prefix}popover-bg: var(--#{$prefix}popover-header-bg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This will remove the popover-header's border just below the arrow
|
// This will remove the popover-header's border just below the arrow
|
||||||
|
Loading…
x
Reference in New Issue
Block a user