MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
  .toolstips {
  .tooltip-box {
  position: relative;
    position: absolute;
  display: inline-block;
    background-color: #333;
  cursor: pointer;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}
}


.toolstips .toolstipstext {
.tooltip {
  visibility: hidden;
    cursor: pointer;
  width: 120px;
    border-bottom: 1px dotted;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%; /* Position above the text */
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}
 
.toolstips:hover .toolstipstext {
  visibility: visible;
  opacity: 1;
}
}


Navigation menu