User:Saag/common.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
No edit summary
Saag (talk | contribs)
Undo revision 3467 by Saag (talk)
Tag: Undo
Line 1: Line 1:
/* Container for the hover element */
.hover-to-show {
  position: relative; /* Ensure that the hover-to-show element is the reference point for the absolutely positioned element */
}
.hide {
.hide {
   display: none;
   display: none;
   opacity: 0;
   opacity: 0;
   transition: opacity 0.5s ease;
   transition: opacity 0.5s ease;
  position: absolute; /* Change to absolute to make positioning relative to .hover-to-show */
  top: 100%; /* Adjust to position the element below the hover-to-show element */
  left: 0; /* Align horizontally, modify if you need to offset horizontally */
  z-index: 2;
  cursor: pointer;
}
}


.hover-to-show:hover + .hide {
.hover-to-show:hover + .hide {
  display: block;
display: block;
  opacity: 1;
    position: fixed;
    top: inherit;
z-index: 2;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease;
}
}

Revision as of 18:34, 6 September 2024

.hide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hover-to-show:hover + .hide {
	display: block;
    position: fixed; 
    top: inherit;
	z-index: 2;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease;
}