Commit 88ece4fc authored by Mark Otto's avatar Mark Otto

fixes #7961 a bit: adds css for extra tooltip placement options. /cc @fat you...

fixes #7961 a bit: adds css for extra tooltip placement options. /cc @fat you just need dat js prolly
parent bf3c5e07
...@@ -3668,6 +3668,20 @@ button.close { ...@@ -3668,6 +3668,20 @@ button.close {
border-width: 5px 5px 0; border-width: 5px 5px 0;
} }
.tooltip.top-left .tooltip-arrow {
bottom: 0;
left: 5px;
border-top-color: rgba(0, 0, 0, 0.9);
border-width: 5px 5px 0;
}
.tooltip.top-right .tooltip-arrow {
right: 5px;
bottom: 0;
border-top-color: rgba(0, 0, 0, 0.9);
border-width: 5px 5px 0;
}
.tooltip.right .tooltip-arrow { .tooltip.right .tooltip-arrow {
top: 50%; top: 50%;
left: 0; left: 0;
...@@ -3692,6 +3706,20 @@ button.close { ...@@ -3692,6 +3706,20 @@ button.close {
border-width: 0 5px 5px; border-width: 0 5px 5px;
} }
.tooltip.bottom-left .tooltip-arrow {
top: 0;
left: 5px;
border-bottom-color: rgba(0, 0, 0, 0.9);
border-width: 0 5px 5px;
}
.tooltip.bottom-right .tooltip-arrow {
top: 0;
right: 5px;
border-bottom-color: rgba(0, 0, 0, 0.9);
border-width: 0 5px 5px;
}
.popover { .popover {
position: absolute; position: absolute;
top: 0; top: 0;
......
...@@ -47,6 +47,18 @@ ...@@ -47,6 +47,18 @@
border-width: @tooltip-arrow-width @tooltip-arrow-width 0; border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
border-top-color: @tooltip-arrow-color; border-top-color: @tooltip-arrow-color;
} }
&.top-left .tooltip-arrow {
bottom: 0;
left: 5px;
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
border-top-color: @tooltip-arrow-color;
}
&.top-right .tooltip-arrow {
bottom: 0;
right: 5px;
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
border-top-color: @tooltip-arrow-color;
}
&.right .tooltip-arrow { &.right .tooltip-arrow {
top: 50%; top: 50%;
left: 0; left: 0;
...@@ -68,4 +80,16 @@ ...@@ -68,4 +80,16 @@
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width; border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
border-bottom-color: @tooltip-arrow-color; border-bottom-color: @tooltip-arrow-color;
} }
&.bottom-left .tooltip-arrow {
top: 0;
left: 5px;
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
border-bottom-color: @tooltip-arrow-color;
}
&.bottom-right .tooltip-arrow {
top: 0;
right: 5px;
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
border-bottom-color: @tooltip-arrow-color;
}
} }
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