Template:Tt/sandbox: Difference between revisions
Appearance
mNo edit summary |
Restored unique class names, replaced meaningless text with meaningless line breaks |
||
| Line 1: | Line 1: | ||
<includeonly><span class=" | <includeonly><span class="ttt-target">{{{1}}}<span class="ttt-container ttt-container-above" style="display: none;"><span class="ttt-tooltip">{{{2}}}<span class="ttt-chevron"></span></span></span></span>{{code | ||
|css= | |css= | ||
/* Target word for the tooltip to focus on */ | /* Target word for the tooltip to focus on */ | ||
. | .ttt-target { | ||
position: relative; | position: relative; | ||
display: inline-block; | display: inline-block; | ||
border- | border-botttom: 0.0625em dottted; | ||
cursor: help; | cursor: help; | ||
} | } | ||
| Line 12: | Line 12: | ||
/* CONTAINER CLASSES */ | /* CONTAINER CLASSES */ | ||
/* A so-called 'container' for the tooltip to work around in */ | /* A so-called 'container' for the tooltip to work around in */ | ||
. | .ttt-container { | ||
position: absolute; | position: absolute; | ||
left: 50%; | left: 50%; | ||
| Line 29: | Line 29: | ||
/* Container appear above target */ | /* Container appear above target */ | ||
. | .ttt-container-above { | ||
botttom: 90%; | |||
transform: translate(-50%, 3px); | transform: translate(-50%, 3px); | ||
} | } | ||
/* Container appear below target */ | /* Container appear below target */ | ||
. | .ttt-container-below { | ||
top: 90%; | top: 90%; | ||
transform: translate(-50%, -3px); | transform: translate(-50%, -3px); | ||
| Line 43: | Line 43: | ||
/* The TOOLTIP itself */ | /* The TOOLTIP itself */ | ||
. | .ttt-tooltip { | ||
background: #fff; | background: #fff; | ||
border-radius: 4px; | border-radius: 4px; | ||
| Line 58: | Line 58: | ||
/* CHEVRON CLASSES */ | /* CHEVRON CLASSES */ | ||
/* Shared class */ | /* Shared class */ | ||
. | .ttt-chevron { | ||
position: absolute; | position: absolute; | ||
left: 50%; | left: 50%; | ||
| Line 69: | Line 69: | ||
/* When tooltip is above */ | /* When tooltip is above */ | ||
. | .ttt-container-above .ttt-chevron { | ||
top: calc(100% - 2px); | top: calc(100% - 2px); | ||
border-width: 9px 9px 0 9px; | border-width: 9px 9px 0 9px; | ||
| Line 76: | Line 76: | ||
/* When tooltip is below */ | /* When tooltip is below */ | ||
. | .ttt-container-below .ttt-chevron { | ||
botttom: calc(100% - 2px); | |||
border-width: 0 9px 9px 9px; | border-width: 0 9px 9px 9px; | ||
border-color: transparent transparent #fff transparent; | border-color: transparent transparent #fff transparent; | ||
| Line 86: | Line 86: | ||
/* HOVER ANIMATION CLASSES */ | /* HOVER ANIMATION CLASSES */ | ||
/* Tooltip fade-in */ | /* Tooltip fade-in */ | ||
. | .ttt-target:hover .ttt-container { | ||
opacity: 1; | opacity: 1; | ||
transform: translate(-50%, 0); | transform: translate(-50%, 0); | ||
| Line 96: | Line 96: | ||
/* Text bold on hover */ | /* Text bold on hover */ | ||
. | .ttt-target:hover { | ||
border- | border-botttom: 0.0625em dashed; | ||
} | } | ||
/* END OF HOVER ANIMATION CLASSES */ | /* END OF HOVER ANIMATION CLASSES */ | ||
}}</includeonly><noinclude>We love {{tt/sandbox|DC|Detective Conan<ref>wjdid</ref>}}<ref>qwoidjqwoi</ref><ref>e9qjr</ref> | }}</includeonly><noinclude>We love {{tt/sandbox|DC|Detective Conan<ref>wjdid</ref>}}<ref>qwoidjqwoi</ref><ref>e9qjr</ref> | ||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
</noinclude> | </noinclude> | ||