Jump to content

Template:Tt/sandbox: Difference between revisions

From Detective Conan Wiki
Undo revision 387491 by R0o0di (talk)
Tag: Undo
No edit summary
Line 1: Line 1:
<includeonly><span class="tooltip-target" style="white-space: initial; overflow-x: initial;">{{{1}}}<span class="tooltip-container tooltip-container-above"><span class="tt12345">{{{2}}}<span class="chevron"></span></span></span></span>{{code
<includeonly><span class="tt-target">{{{1}}}<span class="tt-container tt-container-above" style="display: none;"><span class="tt-tooltip">{{{2}}}<span class="tt-chevron"></span></span></span></span>{{code
|css=
|css=
     /* Target word for the tooltip to focus on */
     /* Target word for the tooltip to focus on */
     .tooltip-target {
     .tt-target {
         position: relative;
         position: relative;
         display: inline-block;
         display: inline-block;
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 */
     .tooltip-container {
     .tt-container {
         position: absolute;
         position: absolute;
         left: 50%;
         left: 50%;
        transform: translateX(-50%);
         min-height: 1em;
         min-height: 1em;
         width: 170px;
         width: 170px;
Line 30: Line 29:
      
      
     /* Container appear above target */
     /* Container appear above target */
     .tooltip-container-above {
     .tt-container-above {
         bottom: 90%;
         bottom: 90%;
         transform: translate(-50%, 3px);
         transform: translate(-50%, 3px);
Line 36: Line 35:
      
      
     /* Container appear below target */
     /* Container appear below target */
     .tooltip-container-below {
     .tt-container-below {
         top: 90%;
         top: 90%;
         transform: translate(-50%, -3px);
         transform: translate(-50%, -3px);
Line 44: Line 43:
      
      
     /* The TOOLTIP itself */
     /* The TOOLTIP itself */
     .tt12345 {
     .tt-tooltip {
         background: #fff;
         background: #fff;
         border-radius: 4px;
         border-radius: 4px;
Line 52: Line 51:
         height: min-content;
         height: min-content;
         word-wrap: break-word;
         word-wrap: break-word;
         /* z-index: 999;*/
         z-index: 999;
        text-align: center;
     }
     }
      
      
Line 58: Line 58:
     /* CHEVRON CLASSES */
     /* CHEVRON CLASSES */
     /* Shared class */
     /* Shared class */
     .chevron {
     .tt-chevron {
         position: absolute;
         position: absolute;
         left: 50%;
         left: 50%;
Line 69: Line 69:
      
      
     /* When tooltip is above */
     /* When tooltip is above */
     .tooltip-container-above .chevron {
     .tt-container-above .tt-chevron {
         top: 95%;
         top: 95%;
         border-width: 9px 9px 0 9px;
         border-width: 9px 9px 0 9px;
Line 76: Line 76:
      
      
     /* When tooltip is below */
     /* When tooltip is below */
     .tooltip-container-below .chevron {
     .tt-container-below .tt-chevron {
         bottom: 95%;
         bottom: 95%;
         border-width: 0 9px 9px 9px;
         border-width: 0 9px 9px 9px;
Line 85: Line 85:
      
      
     /* HOVER ANIMATION CLASSES */
     /* HOVER ANIMATION CLASSES */
     /* Above tooltip fade-in */
     /* Tooltip fade-in */
     .tooltip-target:hover .tooltip-container {
     .tt-target:hover .tt-container {
         opacity: 1;
         opacity: 1;
         transform: translate(-50%, 0);
         transform: translate(-50%, 0);
Line 94: Line 94:
         -ms-user-select: auto;
         -ms-user-select: auto;
     }
     }
   
 
     /* Text bold on hover */
     /* Text bold on hover */
     .tooltip-target:hover {
     .tt-target:hover {
         border-bottom: 0.0625em dashed;
         border-bottom: 0.0625em dashed;
     }
     }

Revision as of 19:07, 10 June 2025

We love DC[2][3]

  1. ^ wjdid
  2. ^ qwoidjqwoi
  3. ^ e9qjr