Template:Tt/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 25: Line 25:
}
}


.tt-after {
.tt:after, .tt:before {
  content: '';
  content: '';
  position: absolute;
  position: absolute;

Revision as of 15:17, 5 May 2025

.has-tt {
 position: relative; 
 display: inline;
 border-bottom: 1px dashed white;
}


.has-tt:hover >.tt {
  visibility: visible;
}

.tt {
 visibility: hidden;
 display: block;
 position: relative;
  top: 2em;
  right: 100%;
 width: max-content;
 max-width: 400px;
 padding: 6px 12px;
 color: #FFFFFF;
 background: #353535;
 text-align: center;
 border-radius: 8px;
}

.tt:after, .tt:before {
 content: '';
 position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -8px;
  width: 0;
  height: 0;
  border-bottom: 8px solid #000000;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
}