JSFiddle - React, Tailwind, and code Playground
by oilvier
HTML
<div class="tippy-tooltip dark-theme" data-size="regular" data-animation="fade" data-state="hidden" data-template-id=".test" style="transition-duration: 15300ms; top: 0px;">
<div class="tippy-arrow" style="left: 233px;"></div>
<div class="tippy-content">
<dl>
<dt>DOT 2013 :</dt>
<dd>Pneu hiver avec la garantie de haute performance (3 Pics Mountain Snow Flake</dd>
</dl>
<dl>
<dt>Roue de secours :</dt>
<dd>Renforcé (extra load)</dd>
</dl>
</div>
</div>
CSS
.tooltip--spec {
margin: 0;
}
.tooltip--spec .tooltip-bubble {
top: auto;
bottom: 100%;
left: 50%;
margin: 0 0 8px;
border: 2px solid #c1c1c1;
padding: 8px;
width: auto;
height: auto;
background: white;
color: black;
font-size: 13px;
line-height: 1.2;
font-weight: bold;
transform: translateX(-50%);
border-radius: 8px;
box-shadow: 0 3px 6px 0px rgba(0, 0, 0, .3);
}
.tooltip--spec .tooltip-bubble:before,
.tooltip--spec .tooltip-bubble:after {
content: "";
position: absolute;
top: 100%;
left: 50%;
border: 0 solid transparent;
height: 0;
width: 0;
pointer-events: none;
}
.tooltip--spec .tooltip-bubble:before {
border-top-color: #c1c1c1;
border-width: 11px;
margin-left: -11px;
}
.tooltip--spec .tooltip-bubble:after {
border-top-color: #ffffff;
border-width: 8px;
margin-left: -8px;
}