Template:Tt/styles.css: Difference between revisions

Template page
(Undo revision 326869 by Kaladin (talk))
Tag: Undo
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
.has-tt {
.has-tt {
  /*position: relative;*/
   display: inline;
   display: inline;
}
}
Line 11: Line 10:
.has-tt:hover .tt-wrapper {
.has-tt:hover .tt-wrapper {
   visibility: visible;
   visibility: visible;
  opacity: 0.7;
}
}


Line 17: Line 15:
  display: block;
  display: block;
  position: relative;
  position: relative;
    top: 2em;
width: max-content;
    right: 100%;
max-width: 400px;
  width: 140px;
padding: 6px 12px;
  height: 96px;
color: #FFFFFF;
  color: #FFFFFF;
background: #353535;
  background: #000000;
text-align: center;
  line-height: 96px;
border-radius: 8px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 4px 3px 10px #800000;
}
}


.tt-after {
.tt-after {
  display: block;
  content: '';
  position: relative;
position: absolute;
    top: 2em;
  bottom: 100%;
    right: 100%;
   left: 50%;
   width: 140px;
   margin-left: -8px;
   height: 96px;
   width: 0;
  /*margin-left: -76px;*/
   height: 0;
   color: #FFFFFF;
   border-bottom: 8px solid #000000;
   background: #000000;
   border-right: 8px solid transparent;
  line-height: 96px;
   border-left: 8px solid transparent;
   text-align: center;
   border-radius: 8px;
   box-shadow: 4px 3px 10px #800000;
}
}

Latest revision as of 12:44, 6 May 2025

.has-tt {
  display: inline;
}

.tt-wrapper {
  position: absolute;
  visibility: hidden;
}

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

.tt {
 display: block;
 position: relative;
 width: max-content;
 max-width: 400px;
 padding: 6px 12px;
 color: #FFFFFF;
 background: #353535;
 text-align: center;
 border-radius: 8px;
}

.tt-after {
 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;
}