Commit 0a8f23d8 by Johannes Schill

Update css to use the border-radius variable and add a new variable for the…

Update css to use the border-radius variable and add a new variable for the popper's distance to its ref
parent e5565919
$popper-margin-from-ref: 5px;
.popper { .popper {
position: absolute; position: absolute;
z-index: $zindex-tooltip; z-index: $zindex-tooltip;
...@@ -20,14 +22,14 @@ ...@@ -20,14 +22,14 @@
.popper__background { .popper__background {
background: $tooltipBackground; background: $tooltipBackground;
border-radius: 3px; border-radius: $border-radius;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
padding: 10px; padding: 10px;
} }
// Top // Top
.popper[data-placement^='top'] { .popper[data-placement^='top'] {
padding-bottom: 5px; padding-bottom: $popper-margin-from-ref;
} }
.popper[data-placement^='top'] .popper__arrow { .popper[data-placement^='top'] .popper__arrow {
border-width: 5px 5px 0 5px; border-width: 5px 5px 0 5px;
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
// Bottom // Bottom
.popper[data-placement^='bottom'] { .popper[data-placement^='bottom'] {
padding-top: 5px; padding-top: $popper-margin-from-ref;
} }
.popper[data-placement^='bottom'] .popper__arrow { .popper[data-placement^='bottom'] .popper__arrow {
border-width: 0 5px 5px 5px; border-width: 0 5px 5px 5px;
...@@ -53,7 +55,7 @@ ...@@ -53,7 +55,7 @@
} }
.popper[data-placement^='bottom-start'] { .popper[data-placement^='bottom-start'] {
padding-top: 5px; padding-top: $popper-margin-from-ref;
} }
.popper[data-placement^='bottom-start'] .popper__arrow { .popper[data-placement^='bottom-start'] .popper__arrow {
border-width: 0 5px 5px 5px; border-width: 0 5px 5px 5px;
...@@ -65,7 +67,7 @@ ...@@ -65,7 +67,7 @@
} }
.popper[data-placement^='bottom-end'] { .popper[data-placement^='bottom-end'] {
padding-top: 5px; padding-top: $popper-margin-from-ref;
} }
.popper[data-placement^='bottom-end'] .popper__arrow { .popper[data-placement^='bottom-end'] .popper__arrow {
border-width: 0 5px 5px 5px; border-width: 0 5px 5px 5px;
...@@ -78,7 +80,7 @@ ...@@ -78,7 +80,7 @@
// Right // Right
.popper[data-placement^='right'] { .popper[data-placement^='right'] {
padding-left: 5px; padding-left: $popper-margin-from-ref;
} }
.popper[data-placement^='right'] .popper__arrow { .popper[data-placement^='right'] .popper__arrow {
border-width: 5px 5px 5px 0; border-width: 5px 5px 5px 0;
...@@ -91,7 +93,7 @@ ...@@ -91,7 +93,7 @@
// Left // Left
.popper[data-placement^='left'] { .popper[data-placement^='left'] {
padding-right: 5px; padding-right: $popper-margin-from-ref;
} }
.popper[data-placement^='left'] .popper__arrow { .popper[data-placement^='left'] .popper__arrow {
border-width: 5px 0 5px 5px; border-width: 5px 0 5px 5px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment