Can’t see a way of attaching a file to a post, so I have copied and pasted it here. Note that I didn’t get a chance to test it, and it hasn’t been through full Netcall testing either, so please treat it as development code.
/* SCSS Configuration variables */
$tt_bgcolour: Gray;
/* Tooltip text */
.tt span.help-block {
visibility: hidden;
width: 120px !important;
background-color: $tt_bgcolour;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
position: absolute;
z-index: 1;
opacity: 0;
transition: opacity 1s;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tt:hover span.help-block {
visibility: visible;
opacity: 1;
}
/* tooltop above the field /
.tt-above span.help-block {
bottom: 100%;
left: 50%;
margin-left: -60px; / Use half of the width (120/2 = 60), to center the tooltip */
}
/* Arrow on the bottom of the tooltip */
.tt-above span.help-block:after {
content: " ";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: $tt_bgcolour transparent transparent transparent;
}
/* tooltop below the field /
.tt-below span.help-block {
top: 100%;
left: 50%;
margin-left: -60px; / Use half of the width (120/2 = 60), to center the tooltip */
}
/* Arrow on the top of the tooltip */
.tt-below span.help-block:after {
content: " ";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent $tt_bgcolour transparent;
}
/* Tooltip to left of element */
.tt-left span.help-block {
top: -5px;
right: 100%;
}
/* Arrow to right of the tooltip /
.tt-left span.help-block:after {
content: " ";
position: absolute;
top: 50%;
left: 100%; / To the right of the tooltip */
margin-top: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent transparent $tt_bgcolour;
}
/* Tooltip to right of element */
.tt-right span.help-block {
top: -10px;
left: 100%;
}
/* Arrow to left of the tooltip /
.tt-right span.help-block:after {
content: " ";
position: absolute;
top: 50%;
right: 100%; / To the left of the tooltip */
margin-top: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent $tt_bgcolour transparent transparent;
}
/* Prevent display of the information icon on tool tips */
.tt-noicon .icon-info:before {
content: “” !important;
// Default setting is
// content: “\e08b”;
// You could use any code from https://simplelineicons.github.io/
}