User:Saag/common.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
No edit summary
Tag: Manual revert
Saag (talk | contribs)
No edit summary
Line 14: Line 14:
   position: absolute;
   position: absolute;
   z-index: -1;
   z-index: -1;
   content: "";
   /*content: "";*/
  text-align:left;
   right: calc(50% - 10px);
   right: calc(50% - 10px);
   top: -8px;
   top: -8px;

Revision as of 19:17, 6 September 2024

.popover__wrapper {
  position: relative;
  display: inline-block;
}
.popover__content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: -150px;
  transform: translate(0, 10px);
  width: auto;
}
.popover__content:before {
  position: absolute;
  z-index: -1;
  /*content: "";*/
  text-align:left;
  right: calc(50% - 10px);
  top: -8px;
  transition-duration: 0.3s;
  transition-property: transform;
}
.popover__wrapper:hover + .popover__content {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -20px);
  transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}