]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Override margins set by popper
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Mon, 9 Nov 2020 20:03:57 +0000 (21:03 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 6 Dec 2020 16:42:40 +0000 (18:42 +0200)
scss/_popover.scss

index 36478b33707e2f2292fa00a628b93d2dd875519a..af8e3c80bb1fe8426f8a49771ba10bfe35e23a61 100644 (file)
@@ -36,7 +36,8 @@
 }
 
 .bs-popover-top {
-  margin-bottom: $popover-arrow-height;
+  // Overrule margin set by popper.js
+  margin-bottom: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
 
   > .popover-arrow {
     bottom: subtract(-$popover-arrow-height, $popover-border-width);
@@ -56,7 +57,8 @@
 }
 
 .bs-popover-end {
-  margin-left: $popover-arrow-height #{"/* rtl:ignore */"};
+  // Overrule margin set by popper.js
+  margin-left: $popover-arrow-height !important #{"/* rtl:ignore */"}; // stylelint-disable-line declaration-no-important
 
   > .popover-arrow {
     left: subtract(-$popover-arrow-height, $popover-border-width) #{"/* rtl:ignore */"};
@@ -79,7 +81,8 @@
 }
 
 .bs-popover-bottom {
-  margin-top: $popover-arrow-height;
+  // Overrule margin set by popper.js
+  margin-top: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
 
   > .popover-arrow {
     top: subtract(-$popover-arrow-height, $popover-border-width);
 }
 
 .bs-popover-start {
-  margin-right: $popover-arrow-height #{"/* rtl:ignore */"};
+  // Overrule margin set by popper.js
+  margin-right: $popover-arrow-height !important #{"/* rtl:ignore */"}; // stylelint-disable-line declaration-no-important
 
   > .popover-arrow {
     right: subtract(-$popover-arrow-height, $popover-border-width) #{"/* rtl:ignore */"};